blib/lib/Paws/ElasticBeanstalk/CreateConfigurationTemplate.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/CreateApplicationVersion.pm ↑ Summary blib/lib/Paws/ElasticBeanstalk/CreateEnvironment.pm »
1  
2 package Paws::ElasticBeanstalk::CreateConfigurationTemplate;
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 Description => (is => 'ro', isa => 'Str');
6 1 has EnvironmentId => (is => 'ro', isa => 'Str');
7 1 has OptionSettings => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::ConfigurationOptionSetting]');
8 1 has PlatformArn => (is => 'ro', isa => 'Str');
9 1 has SolutionStackName => (is => 'ro', isa => 'Str');
10 1 has SourceConfiguration => (is => 'ro', isa => 'Paws::ElasticBeanstalk::SourceConfiguration');
11 1 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::Tag]');
12 1 has TemplateName => (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 => 'CreateConfigurationTemplate');
17 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticBeanstalk::ConfigurationSettingsDescription');
18 1 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateConfigurationTemplateResult');
19 1 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::ElasticBeanstalk::CreateConfigurationTemplate - Arguments for method CreateConfigurationTemplate on L<Paws::ElasticBeanstalk>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateConfigurationTemplate on the
30 L<AWS Elastic Beanstalk|Paws::ElasticBeanstalk> service. Use the attributes of this class
31 as arguments to method CreateConfigurationTemplate.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateConfigurationTemplate.
34  
35 =head1 SYNOPSIS
36  
37 my $elasticbeanstalk = Paws->service('ElasticBeanstalk');
38 # To create a configuration template
39 # The following operation creates a configuration template named my-app-v1 from
40 # the settings applied to an environment with the id e-rpqsewtp2j:
41 my $ConfigurationSettingsDescription =
42 $elasticbeanstalk->CreateConfigurationTemplate(
43 'ApplicationName' => 'my-app',
44 'EnvironmentId' => 'e-rpqsewtp2j',
45 'TemplateName' => 'my-app-v1'
46 );
47  
48 # Results:
49 my $ApplicationName = $ConfigurationSettingsDescription->ApplicationName;
50 my $DateCreated = $ConfigurationSettingsDescription->DateCreated;
51 my $DateUpdated = $ConfigurationSettingsDescription->DateUpdated;
52 my $SolutionStackName =
53 $ConfigurationSettingsDescription->SolutionStackName;
54 my $TemplateName = $ConfigurationSettingsDescription->TemplateName;
55  
56 # Returns a L<Paws::ElasticBeanstalk::ConfigurationSettingsDescription> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk/CreateConfigurationTemplate>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 B<REQUIRED> ApplicationName => Str
65  
66 The name of the Elastic Beanstalk application to associate with this
67 configuration template.
68  
69  
70  
71 =head2 Description => Str
72  
73 An optional description for this configuration.
74  
75  
76  
77 =head2 EnvironmentId => Str
78  
79 The ID of an environment whose settings you want to use to create the
80 configuration template. You must specify C<EnvironmentId> if you don't
81 specify C<PlatformArn>, C<SolutionStackName>, or
82 C<SourceConfiguration>.
83  
84  
85  
86 =head2 OptionSettings => ArrayRef[L<Paws::ElasticBeanstalk::ConfigurationOptionSetting>]
87  
88 Option values for the Elastic Beanstalk configuration, such as the
89 instance type. If specified, these values override the values obtained
90 from the solution stack or the source configuration template. For a
91 complete list of Elastic Beanstalk configuration options, see Option
92 Values
93 (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html)
94 in the I<AWS Elastic Beanstalk Developer Guide>.
95  
96  
97  
98 =head2 PlatformArn => Str
99  
100 The Amazon Resource Name (ARN) of the custom platform. For more
101 information, see Custom Platforms
102 (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html)
103 in the I<AWS Elastic Beanstalk Developer Guide>.
104  
105 If you specify C<PlatformArn>, then don't specify C<SolutionStackName>.
106  
107  
108  
109 =head2 SolutionStackName => Str
110  
111 The name of an Elastic Beanstalk solution stack (platform version) that
112 this configuration uses. For example, C<64bit Amazon Linux 2013.09
113 running Tomcat 7 Java 7>. A solution stack specifies the operating
114 system, runtime, and application server for a configuration template.
115 It also determines the set of configuration options as well as the
116 possible and default values. For more information, see Supported
117 Platforms
118 (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html)
119 in the I<AWS Elastic Beanstalk Developer Guide>.
120  
121 You must specify C<SolutionStackName> if you don't specify
122 C<PlatformArn>, C<EnvironmentId>, or C<SourceConfiguration>.
123  
124 Use the C<ListAvailableSolutionStacks>
125 (https://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_ListAvailableSolutionStacks.html)
126 API to obtain a list of available solution stacks.
127  
128  
129  
130 =head2 SourceConfiguration => L<Paws::ElasticBeanstalk::SourceConfiguration>
131  
132 An Elastic Beanstalk configuration template to base this one on. If
133 specified, Elastic Beanstalk uses the configuration values from the
134 specified configuration template to create a new configuration.
135  
136 Values specified in C<OptionSettings> override any values obtained from
137 the C<SourceConfiguration>.
138  
139 You must specify C<SourceConfiguration> if you don't specify
140 C<PlatformArn>, C<EnvironmentId>, or C<SolutionStackName>.
141  
142 Constraint: If both solution stack name and source configuration are
143 specified, the solution stack of the source configuration template must
144 match the specified solution stack name.
145  
146  
147  
148 =head2 Tags => ArrayRef[L<Paws::ElasticBeanstalk::Tag>]
149  
150 Specifies the tags applied to the configuration template.
151  
152  
153  
154 =head2 B<REQUIRED> TemplateName => Str
155  
156 The name of the configuration template.
157  
158 Constraint: This name must be unique per application.
159  
160  
161  
162  
163 =head1 SEE ALSO
164  
165 This class forms part of L<Paws>, documenting arguments for method CreateConfigurationTemplate in L<Paws::ElasticBeanstalk>
166  
167 =head1 BUGS and CONTRIBUTIONS
168  
169 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
170  
171 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
172  
173 =cut
174  
« blib/lib/Paws/ElasticBeanstalk/CreateApplicationVersion.pm ↑ Summary blib/lib/Paws/ElasticBeanstalk/CreateEnvironment.pm »