File Coverage

blib/lib/Paws/ElasticBeanstalk/CreateEnvironment.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ElasticBeanstalk::CreateEnvironment;
3 1     1   547 use Moose;
  1     1   2  
  1         7  
  1         703  
  1         4  
  1         8  
4             has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
5             has CNAMEPrefix => (is => 'ro', isa => 'Str');
6             has Description => (is => 'ro', isa => 'Str');
7             has EnvironmentName => (is => 'ro', isa => 'Str');
8             has GroupName => (is => 'ro', isa => 'Str');
9             has OptionSettings => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::ConfigurationOptionSetting]');
10             has OptionsToRemove => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::OptionSpecification]');
11             has PlatformArn => (is => 'ro', isa => 'Str');
12             has SolutionStackName => (is => 'ro', isa => 'Str');
13             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::Tag]');
14             has TemplateName => (is => 'ro', isa => 'Str');
15             has Tier => (is => 'ro', isa => 'Paws::ElasticBeanstalk::EnvironmentTier');
16             has VersionLabel => (is => 'ro', isa => 'Str');
17              
18 1     1   6130 use MooseX::ClassAttribute;
  1     1   2  
  1         7  
  1         8595  
  1         3  
  1         8  
19              
20             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEnvironment');
21             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticBeanstalk::EnvironmentDescription');
22             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateEnvironmentResult');
23             1;
24              
25             ### main pod documentation begin ###
26              
27             =head1 NAME
28              
29             Paws::ElasticBeanstalk::CreateEnvironment - Arguments for method CreateEnvironment on Paws::ElasticBeanstalk
30              
31             =head1 DESCRIPTION
32              
33             This class represents the parameters used for calling the method CreateEnvironment on the
34             AWS Elastic Beanstalk service. Use the attributes of this class
35             as arguments to method CreateEnvironment.
36              
37             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEnvironment.
38              
39             As an example:
40              
41             $service_obj->CreateEnvironment(Att1 => $value1, Att2 => $value2, ...);
42              
43             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.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 B<REQUIRED> ApplicationName => Str
49              
50             The name of the application that contains the version to be deployed.
51              
52             If no application is found with this name, C<CreateEnvironment> returns
53             an C<InvalidParameterValue> error.
54              
55              
56              
57             =head2 CNAMEPrefix => Str
58              
59             If specified, the environment attempts to use this value as the prefix
60             for the CNAME. If not specified, the CNAME is generated automatically
61             by appending a random alphanumeric string to the environment name.
62              
63              
64              
65             =head2 Description => Str
66              
67             Describes this environment.
68              
69              
70              
71             =head2 EnvironmentName => Str
72              
73             A unique name for the deployment environment. Used in the application
74             URL.
75              
76             Constraint: Must be from 4 to 40 characters in length. The name can
77             contain only letters, numbers, and hyphens. It cannot start or end with
78             a hyphen. This name must be unique in your account. If the specified
79             name already exists, AWS Elastic Beanstalk returns an
80             C<InvalidParameterValue> error.
81              
82             Default: If the CNAME parameter is not specified, the environment name
83             becomes part of the CNAME, and therefore part of the visible URL for
84             your application.
85              
86              
87              
88             =head2 GroupName => Str
89              
90             The name of the group to which the target environment belongs. Specify
91             a group name only if the environment's name is specified in an
92             environment manifest and not with the environment name parameter. See
93             Environment Manifest (env.yaml) for details.
94              
95              
96              
97             =head2 OptionSettings => ArrayRef[L<Paws::ElasticBeanstalk::ConfigurationOptionSetting>]
98              
99             If specified, AWS Elastic Beanstalk sets the specified configuration
100             options to the requested value in the configuration set for the new
101             environment. These override the values obtained from the solution stack
102             or the configuration template.
103              
104              
105              
106             =head2 OptionsToRemove => ArrayRef[L<Paws::ElasticBeanstalk::OptionSpecification>]
107              
108             A list of custom user-defined configuration options to remove from the
109             configuration set for this new environment.
110              
111              
112              
113             =head2 PlatformArn => Str
114              
115             The ARN of the custom platform.
116              
117              
118              
119             =head2 SolutionStackName => Str
120              
121             This is an alternative to specifying a template name. If specified, AWS
122             Elastic Beanstalk sets the configuration values to the default values
123             associated with the specified solution stack.
124              
125              
126              
127             =head2 Tags => ArrayRef[L<Paws::ElasticBeanstalk::Tag>]
128              
129             This specifies the tags applied to resources in the environment.
130              
131              
132              
133             =head2 TemplateName => Str
134              
135             The name of the configuration template to use in deployment. If no
136             configuration template is found with this name, AWS Elastic Beanstalk
137             returns an C<InvalidParameterValue> error.
138              
139              
140              
141             =head2 Tier => L<Paws::ElasticBeanstalk::EnvironmentTier>
142              
143             This specifies the tier to use for creating this environment.
144              
145              
146              
147             =head2 VersionLabel => Str
148              
149             The name of the application version to deploy.
150              
151             If the specified application has no associated application versions,
152             AWS Elastic Beanstalk C<UpdateEnvironment> returns an
153             C<InvalidParameterValue> error.
154              
155             Default: If not specified, AWS Elastic Beanstalk attempts to launch the
156             sample application in the container.
157              
158              
159              
160              
161             =head1 SEE ALSO
162              
163             This class forms part of L<Paws>, documenting arguments for method CreateEnvironment in L<Paws::ElasticBeanstalk>
164              
165             =head1 BUGS and CONTRIBUTIONS
166              
167             The source code is located here: https://github.com/pplu/aws-sdk-perl
168              
169             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
170              
171             =cut
172