blib/lib/Paws/ElasticBeanstalk/CreateApplicationVersion.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/ElasticBeanstalk/CreateApplication.pm ↑ Summary blib/lib/Paws/ElasticBeanstalk/CreateConfigurationTemplate.pm »
1  
2 package Paws::ElasticBeanstalk::CreateApplicationVersion;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
5 1 has AutoCreateApplication => (is => 'ro', isa => 'Bool');
6 1 has BuildConfiguration => (is => 'ro', isa => 'Paws::ElasticBeanstalk::BuildConfiguration');
7 1 has Description => (is => 'ro', isa => 'Str');
8 1 has Process => (is => 'ro', isa => 'Bool');
9 1 has SourceBuildInformation => (is => 'ro', isa => 'Paws::ElasticBeanstalk::SourceBuildInformation');
10 1 has SourceBundle => (is => 'ro', isa => 'Paws::ElasticBeanstalk::S3Location');
11 1 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::Tag]');
12 1 has VersionLabel => (is => 'ro', isa => 'Str', required => 1);
13  
14 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApplicationVersion');
17 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticBeanstalk::ApplicationVersionDescriptionMessage');
18 1 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateApplicationVersionResult');
19 1 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::ElasticBeanstalk::CreateApplicationVersion - Arguments for method CreateApplicationVersion on L<Paws::ElasticBeanstalk>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateApplicationVersion on the
30 L<AWS Elastic Beanstalk|Paws::ElasticBeanstalk> service. Use the attributes of this class
31 as arguments to method CreateApplicationVersion.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApplicationVersion.
34  
35 =head1 SYNOPSIS
36  
37 my $elasticbeanstalk = Paws->service('ElasticBeanstalk');
38 # To create a new application
39 # The following operation creates a new version (v1) of an application named
40 # my-app:
41 my $ApplicationVersionDescriptionMessage =
42 $elasticbeanstalk->CreateApplicationVersion(
43 'ApplicationName' => 'my-app',
44 'AutoCreateApplication' => 1,
45 'Description' => 'my-app-v1',
46 'Process' => 1,
47 'SourceBundle' => {
48 'S3Bucket' => 'my-bucket',
49 'S3Key' => 'sample.war'
50 },
51 'VersionLabel' => 'v1'
52 );
53  
54 # Results:
55 my $ApplicationVersion =
56 $ApplicationVersionDescriptionMessage->ApplicationVersion;
57  
58 # Returns a L<Paws::ElasticBeanstalk::ApplicationVersionDescriptionMessage> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk/CreateApplicationVersion>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 B<REQUIRED> ApplicationName => Str
67  
68 The name of the application. If no application is found with this name,
69 and C<AutoCreateApplication> is C<false>, returns an
70 C<InvalidParameterValue> error.
71  
72  
73  
74 =head2 AutoCreateApplication => Bool
75  
76 Set to C<true> to create an application with the specified name if it
77 doesn't already exist.
78  
79  
80  
81 =head2 BuildConfiguration => L<Paws::ElasticBeanstalk::BuildConfiguration>
82  
83 Settings for an AWS CodeBuild build.
84  
85  
86  
87 =head2 Description => Str
88  
89 A description of this application version.
90  
91  
92  
93 =head2 Process => Bool
94  
95 Pre-processes and validates the environment manifest (C<env.yaml>) and
96 configuration files (C<*.config> files in the C<.ebextensions> folder)
97 in the source bundle. Validating configuration files can identify
98 issues prior to deploying the application version to an environment.
99  
100 You must turn processing on for application versions that you create
101 using AWS CodeBuild or AWS CodeCommit. For application versions built
102 from a source bundle in Amazon S3, processing is optional.
103  
104 The C<Process> option validates Elastic Beanstalk configuration files.
105 It doesn't validate your application's configuration files, like proxy
106 server or Docker configuration.
107  
108  
109  
110 =head2 SourceBuildInformation => L<Paws::ElasticBeanstalk::SourceBuildInformation>
111  
112 Specify a commit in an AWS CodeCommit Git repository to use as the
113 source code for the application version.
114  
115  
116  
117 =head2 SourceBundle => L<Paws::ElasticBeanstalk::S3Location>
118  
119 The Amazon S3 bucket and key that identify the location of the source
120 bundle for this version.
121  
122 The Amazon S3 bucket must be in the same region as the environment.
123  
124 Specify a source bundle in S3 or a commit in an AWS CodeCommit
125 repository (with C<SourceBuildInformation>), but not both. If neither
126 C<SourceBundle> nor C<SourceBuildInformation> are provided, Elastic
127 Beanstalk uses a sample application.
128  
129  
130  
131 =head2 Tags => ArrayRef[L<Paws::ElasticBeanstalk::Tag>]
132  
133 Specifies the tags applied to the application version.
134  
135 Elastic Beanstalk applies these tags only to the application version.
136 Environments that use the application version don't inherit the tags.
137  
138  
139  
140 =head2 B<REQUIRED> VersionLabel => Str
141  
142 A label identifying this version.
143  
144 Constraint: Must be unique per application. If an application version
145 already exists with this label for the specified application, AWS
146 Elastic Beanstalk returns an C<InvalidParameterValue> error.
147  
148  
149  
150  
151 =head1 SEE ALSO
152  
153 This class forms part of L<Paws>, documenting arguments for method CreateApplicationVersion in L<Paws::ElasticBeanstalk>
154  
155 =head1 BUGS and CONTRIBUTIONS
156  
157 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
158  
159 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
160  
161 =cut
162  
« blib/lib/Paws/ElasticBeanstalk/CreateApplication.pm ↑ Summary blib/lib/Paws/ElasticBeanstalk/CreateConfigurationTemplate.pm »