blib/lib/Paws/Lambda/PutProvisionedConcurrencyConfig.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lambda::PutProvisionedConcurrencyConfig;
3 use Moose;
4 has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1);
5 has ProvisionedConcurrentExecutions => (is => 'ro', isa => 'Int', required => 1);
6 has Qualifier => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'Qualifier', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutProvisionedConcurrencyConfig');
11 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2019-09-30/functions/{FunctionName}/provisioned-concurrency');
12 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::PutProvisionedConcurrencyConfigResponse');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Lambda::PutProvisionedConcurrencyConfig - Arguments for method PutProvisionedConcurrencyConfig on L<Paws::Lambda>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method PutProvisionedConcurrencyConfig on the
25 L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class
26 as arguments to method PutProvisionedConcurrencyConfig.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutProvisionedConcurrencyConfig.
29  
30 =head1 SYNOPSIS
31  
32 my $lambda = Paws->service('Lambda');
33 # To allocate provisioned concurrency
34 # The following example allocates 100 provisioned concurrency for the BLUE alias
35 # of the specified function.
36 my $PutProvisionedConcurrencyConfigResponse =
37 $lambda->PutProvisionedConcurrencyConfig(
38 'FunctionName' => 'my-function',
39 'ProvisionedConcurrentExecutions' => 100,
40 'Qualifier' => 'BLUE'
41 );
42  
43 # Results:
44 my $AllocatedProvisionedConcurrentExecutions =
45 $PutProvisionedConcurrencyConfigResponse
46 ->AllocatedProvisionedConcurrentExecutions;
47 my $LastModified = $PutProvisionedConcurrencyConfigResponse->LastModified;
48 my $RequestedProvisionedConcurrentExecutions =
49 $PutProvisionedConcurrencyConfigResponse
50 ->RequestedProvisionedConcurrentExecutions;
51 my $Status = $PutProvisionedConcurrencyConfigResponse->Status;
52  
53 # Returns a L<Paws::Lambda::PutProvisionedConcurrencyConfigResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/PutProvisionedConcurrencyConfig>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> FunctionName => Str
62  
63 The name of the Lambda function.
64  
65 B<Name formats>
66  
67 =over
68  
69 =item *
70  
71 B<Function name> - C<my-function>.
72  
73 =item *
74  
75 B<Function ARN> -
76 C<arn:aws:lambda:us-west-2:123456789012:function:my-function>.
77  
78 =item *
79  
80 B<Partial ARN> - C<123456789012:function:my-function>.
81  
82 =back
83  
84 The length constraint applies only to the full ARN. If you specify only
85 the function name, it is limited to 64 characters in length.
86  
87  
88  
89 =head2 B<REQUIRED> ProvisionedConcurrentExecutions => Int
90  
91 The amount of provisioned concurrency to allocate for the version or
92 alias.
93  
94  
95  
96 =head2 B<REQUIRED> Qualifier => Str
97  
98 The version number or alias name.
99  
100  
101  
102  
103 =head1 SEE ALSO
104  
105 This class forms part of L<Paws>, documenting arguments for method PutProvisionedConcurrencyConfig in L<Paws::Lambda>
106  
107 =head1 BUGS and CONTRIBUTIONS
108  
109 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
110  
111 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
112  
113 =cut
114