blib/lib/Paws/Lambda/PublishVersion.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::PublishVersion;
3 use Moose;
4 has CodeSha256 => (is => 'ro', isa => 'Str');
5 has Description => (is => 'ro', isa => 'Str');
6 has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1);
7 has RevisionId => (is => 'ro', isa => 'Str');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PublishVersion');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/versions');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::FunctionConfiguration');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Lambda::PublishVersion - Arguments for method PublishVersion on L<Paws::Lambda>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method PublishVersion on the
26 L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class
27 as arguments to method PublishVersion.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PublishVersion.
30  
31 =head1 SYNOPSIS
32  
33 my $lambda = Paws->service('Lambda');
34 # To publish a version of a Lambda function
35 # This operation publishes a version of a Lambda function
36 my $FunctionConfiguration = $lambda->PublishVersion(
37 'CodeSha256' => '',
38 'Description' => '',
39 'FunctionName' => 'myFunction'
40 );
41  
42 # Results:
43 my $CodeSha256 = $FunctionConfiguration->CodeSha256;
44 my $CodeSize = $FunctionConfiguration->CodeSize;
45 my $Description = $FunctionConfiguration->Description;
46 my $Environment = $FunctionConfiguration->Environment;
47 my $FunctionArn = $FunctionConfiguration->FunctionArn;
48 my $FunctionName = $FunctionConfiguration->FunctionName;
49 my $Handler = $FunctionConfiguration->Handler;
50 my $KMSKeyArn = $FunctionConfiguration->KMSKeyArn;
51 my $LastModified = $FunctionConfiguration->LastModified;
52 my $LastUpdateStatus = $FunctionConfiguration->LastUpdateStatus;
53 my $MemorySize = $FunctionConfiguration->MemorySize;
54 my $RevisionId = $FunctionConfiguration->RevisionId;
55 my $Role = $FunctionConfiguration->Role;
56 my $Runtime = $FunctionConfiguration->Runtime;
57 my $State = $FunctionConfiguration->State;
58 my $Timeout = $FunctionConfiguration->Timeout;
59 my $TracingConfig = $FunctionConfiguration->TracingConfig;
60 my $Version = $FunctionConfiguration->Version;
61  
62 # Returns a L<Paws::Lambda::FunctionConfiguration> object.
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/PublishVersion>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 CodeSha256 => Str
71  
72 Only publish a version if the hash value matches the value that's
73 specified. Use this option to avoid publishing a version if the
74 function code has changed since you last updated it. You can get the
75 hash for the version that you uploaded from the output of
76 UpdateFunctionCode.
77  
78  
79  
80 =head2 Description => Str
81  
82 A description for the version to override the description in the
83 function configuration.
84  
85  
86  
87 =head2 B<REQUIRED> FunctionName => Str
88  
89 The name of the Lambda function.
90  
91 B<Name formats>
92  
93 =over
94  
95 =item *
96  
97 B<Function name> - C<MyFunction>.
98  
99 =item *
100  
101 B<Function ARN> -
102 C<arn:aws:lambda:us-west-2:123456789012:function:MyFunction>.
103  
104 =item *
105  
106 B<Partial ARN> - C<123456789012:function:MyFunction>.
107  
108 =back
109  
110 The length constraint applies only to the full ARN. If you specify only
111 the function name, it is limited to 64 characters in length.
112  
113  
114  
115 =head2 RevisionId => Str
116  
117 Only update the function if the revision ID matches the ID that's
118 specified. Use this option to avoid publishing a version if the
119 function configuration has changed since you last updated it.
120  
121  
122  
123  
124 =head1 SEE ALSO
125  
126 This class forms part of L<Paws>, documenting arguments for method PublishVersion in L<Paws::Lambda>
127  
128 =head1 BUGS and CONTRIBUTIONS
129  
130 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
131  
132 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
133  
134 =cut
135