File Coverage

blib/lib/Paws/Lambda/GetPolicy.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Lambda::GetPolicy;
3 1     1   357 use Moose;
  1         3  
  1         7  
4             has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName' , required => 1);
5             has Qualifier => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'Qualifier' );
6              
7 1     1   5503 use MooseX::ClassAttribute;
  1         4  
  1         6  
8              
9             class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetPolicy');
10             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/policy');
11             class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::GetPolicyResponse');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::Lambda::GetPolicy - Arguments for method GetPolicy on Paws::Lambda
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method GetPolicy on the
25             AWS Lambda service. Use the attributes of this class
26             as arguments to method GetPolicy.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetPolicy.
29              
30             As an example:
31              
32             $service_obj->GetPolicy(Att1 => $value1, Att2 => $value2, ...);
33              
34             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> FunctionName => Str
40              
41             Function name whose resource policy you want to retrieve.
42              
43             You can specify the function name (for example, C<Thumbnail>) or you
44             can specify Amazon Resource Name (ARN) of the function (for example,
45             C<arn:aws:lambda:us-west-2:account-id:function:ThumbNail>). If you are
46             using versioning, you can also provide a qualified function ARN (ARN
47             that is qualified with function version or alias name as suffix). AWS
48             Lambda also allows you to specify only the function name with the
49             account ID qualifier (for example, C<account-id:Thumbnail>). Note that
50             the length constraint applies only to the ARN. If you specify only the
51             function name, it is limited to 64 characters in length.
52              
53              
54              
55             =head2 Qualifier => Str
56              
57             You can specify this optional query parameter to specify a function
58             version or an alias name in which case this API will return all
59             permissions associated with the specific qualified ARN. If you don't
60             provide this parameter, the API will return permissions that apply to
61             the unqualified function ARN.
62              
63              
64              
65              
66             =head1 SEE ALSO
67              
68             This class forms part of L<Paws>, documenting arguments for method GetPolicy in L<Paws::Lambda>
69              
70             =head1 BUGS and CONTRIBUTIONS
71              
72             The source code is located here: https://github.com/pplu/aws-sdk-perl
73              
74             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
75              
76             =cut
77