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

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lambda::PublishLayerVersion;
3 use Moose;
4 has CompatibleRuntimes => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has Content => (is => 'ro', isa => 'Paws::Lambda::LayerVersionContentInput', required => 1);
6 has Description => (is => 'ro', isa => 'Str');
7 has LayerName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'LayerName', required => 1);
8 has LicenseInfo => (is => 'ro', isa => 'Str');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PublishLayerVersion');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2018-10-31/layers/{LayerName}/versions');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::PublishLayerVersionResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Lambda::PublishLayerVersion - Arguments for method PublishLayerVersion on L<Paws::Lambda>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method PublishLayerVersion on the
27 L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class
28 as arguments to method PublishLayerVersion.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PublishLayerVersion.
31  
32 =head1 SYNOPSIS
33  
34 my $lambda = Paws->service('Lambda');
35 # To create a Lambda layer version
36 # The following example creates a new Python library layer version. The command
37 # retrieves the layer content a file named layer.zip in the specified S3 bucket.
38 my $PublishLayerVersionResponse = $lambda->PublishLayerVersion(
39 'CompatibleRuntimes' => [ 'python3.6', 'python3.7' ],
40 'Content' => {
41 'S3Bucket' => 'lambda-layers-us-west-2-123456789012',
42 'S3Key' => 'layer.zip'
43 },
44 'Description' => 'My Python layer',
45 'LayerName' => 'my-layer',
46 'LicenseInfo' => 'MIT'
47 );
48  
49 # Results:
50 my $CompatibleRuntimes = $PublishLayerVersionResponse->CompatibleRuntimes;
51 my $Content = $PublishLayerVersionResponse->Content;
52 my $CreatedDate = $PublishLayerVersionResponse->CreatedDate;
53 my $Description = $PublishLayerVersionResponse->Description;
54 my $LayerArn = $PublishLayerVersionResponse->LayerArn;
55 my $LayerVersionArn = $PublishLayerVersionResponse->LayerVersionArn;
56 my $LicenseInfo = $PublishLayerVersionResponse->LicenseInfo;
57 my $Version = $PublishLayerVersionResponse->Version;
58  
59 # Returns a L<Paws::Lambda::PublishLayerVersionResponse> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/PublishLayerVersion>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 CompatibleRuntimes => ArrayRef[Str|Undef]
68  
69 A list of compatible function runtimes
70 (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
71 Used for filtering with ListLayers and ListLayerVersions.
72  
73  
74  
75 =head2 B<REQUIRED> Content => L<Paws::Lambda::LayerVersionContentInput>
76  
77 The function layer archive.
78  
79  
80  
81 =head2 Description => Str
82  
83 The description of the version.
84  
85  
86  
87 =head2 B<REQUIRED> LayerName => Str
88  
89 The name or Amazon Resource Name (ARN) of the layer.
90  
91  
92  
93 =head2 LicenseInfo => Str
94  
95 The layer's software license. It can be any of the following:
96  
97 =over
98  
99 =item *
100  
101 An SPDX license identifier (https://spdx.org/licenses/). For example,
102 C<MIT>.
103  
104 =item *
105  
106 The URL of a license hosted on the internet. For example,
107 C<https://opensource.org/licenses/MIT>.
108  
109 =item *
110  
111 The full text of the license.
112  
113 =back
114  
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method PublishLayerVersion in L<Paws::Lambda>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130