File Coverage

blib/lib/Paws/CloudFormation/UpdateStack.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::CloudFormation::UpdateStack;
3 1     1   536 use Moose;
  1         3  
  1         7  
4             has Capabilities => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5             has ClientRequestToken => (is => 'ro', isa => 'Str');
6             has NotificationARNs => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
7             has Parameters => (is => 'ro', isa => 'ArrayRef[Paws::CloudFormation::Parameter]');
8             has ResourceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9             has RoleARN => (is => 'ro', isa => 'Str');
10             has StackName => (is => 'ro', isa => 'Str', required => 1);
11             has StackPolicyBody => (is => 'ro', isa => 'Str');
12             has StackPolicyDuringUpdateBody => (is => 'ro', isa => 'Str');
13             has StackPolicyDuringUpdateURL => (is => 'ro', isa => 'Str');
14             has StackPolicyURL => (is => 'ro', isa => 'Str');
15             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::CloudFormation::Tag]');
16             has TemplateBody => (is => 'ro', isa => 'Str');
17             has TemplateURL => (is => 'ro', isa => 'Str');
18             has UsePreviousTemplate => (is => 'ro', isa => 'Bool');
19              
20 1     1   6391 use MooseX::ClassAttribute;
  1         3  
  1         9  
21              
22             class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateStack');
23             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudFormation::UpdateStackOutput');
24             class_has _result_key => (isa => 'Str', is => 'ro', default => 'UpdateStackResult');
25             1;
26              
27             ### main pod documentation begin ###
28              
29             =head1 NAME
30              
31             Paws::CloudFormation::UpdateStack - Arguments for method UpdateStack on Paws::CloudFormation
32              
33             =head1 DESCRIPTION
34              
35             This class represents the parameters used for calling the method UpdateStack on the
36             AWS CloudFormation service. Use the attributes of this class
37             as arguments to method UpdateStack.
38              
39             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateStack.
40              
41             As an example:
42              
43             $service_obj->UpdateStack(Att1 => $value1, Att2 => $value2, ...);
44              
45             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.
46              
47             =head1 ATTRIBUTES
48              
49              
50             =head2 Capabilities => ArrayRef[Str|Undef]
51              
52             A list of values that you must specify before AWS CloudFormation can
53             update certain stacks. Some stack templates might include resources
54             that can affect permissions in your AWS account, for example, by
55             creating new AWS Identity and Access Management (IAM) users. For those
56             stacks, you must explicitly acknowledge their capabilities by
57             specifying this parameter.
58              
59             The only valid values are C<CAPABILITY_IAM> and
60             C<CAPABILITY_NAMED_IAM>. The following resources require you to specify
61             this parameter: AWS::IAM::AccessKey, AWS::IAM::Group,
62             AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role,
63             AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack
64             template contains these resources, we recommend that you review all
65             permissions associated with them and edit their permissions if
66             necessary.
67              
68             If you have IAM resources, you can specify either capability. If you
69             have IAM resources with custom names, you must specify
70             C<CAPABILITY_NAMED_IAM>. If you don't specify this parameter, this
71             action returns an C<InsufficientCapabilities> error.
72              
73             For more information, see Acknowledging IAM Resources in AWS
74             CloudFormation Templates.
75              
76              
77              
78             =head2 ClientRequestToken => Str
79              
80             A unique identifier for this C<UpdateStack> request. Specify this token
81             if you plan to retry requests so that AWS CloudFormation knows that
82             you're not attempting to update a stack with the same name. You might
83             retry C<UpdateStack> requests to ensure that AWS CloudFormation
84             successfully received them.
85              
86              
87              
88             =head2 NotificationARNs => ArrayRef[Str|Undef]
89              
90             Amazon Simple Notification Service topic Amazon Resource Names (ARNs)
91             that AWS CloudFormation associates with the stack. Specify an empty
92             list to remove all notification topics.
93              
94              
95              
96             =head2 Parameters => ArrayRef[L<Paws::CloudFormation::Parameter>]
97              
98             A list of C<Parameter> structures that specify input parameters for the
99             stack. For more information, see the Parameter data type.
100              
101              
102              
103             =head2 ResourceTypes => ArrayRef[Str|Undef]
104              
105             The template resource types that you have permissions to work with for
106             this update stack action, such as C<AWS::EC2::Instance>,
107             C<AWS::EC2::*>, or C<Custom::MyCustomInstance>.
108              
109             If the list of resource types doesn't include a resource that you're
110             updating, the stack update fails. By default, AWS CloudFormation grants
111             permissions to all resource types. AWS Identity and Access Management
112             (IAM) uses this parameter for AWS CloudFormation-specific condition
113             keys in IAM policies. For more information, see Controlling Access with
114             AWS Identity and Access Management.
115              
116              
117              
118             =head2 RoleARN => Str
119              
120             The Amazon Resource Name (ARN) of an AWS Identity and Access Management
121             (IAM) role that AWS CloudFormation assumes to update the stack. AWS
122             CloudFormation uses the role's credentials to make calls on your
123             behalf. AWS CloudFormation always uses this role for all future
124             operations on the stack. As long as users have permission to operate on
125             the stack, AWS CloudFormation uses this role even if the users don't
126             have permission to pass it. Ensure that the role grants least
127             privilege.
128              
129             If you don't specify a value, AWS CloudFormation uses the role that was
130             previously associated with the stack. If no role is available, AWS
131             CloudFormation uses a temporary session that is generated from your
132             user credentials.
133              
134              
135              
136             =head2 B<REQUIRED> StackName => Str
137              
138             The name or unique stack ID of the stack to update.
139              
140              
141              
142             =head2 StackPolicyBody => Str
143              
144             Structure containing a new stack policy body. You can specify either
145             the C<StackPolicyBody> or the C<StackPolicyURL> parameter, but not
146             both.
147              
148             You might update the stack policy, for example, in order to protect a
149             new resource that you created during a stack update. If you do not
150             specify a stack policy, the current policy that is associated with the
151             stack is unchanged.
152              
153              
154              
155             =head2 StackPolicyDuringUpdateBody => Str
156              
157             Structure containing the temporary overriding stack policy body. You
158             can specify either the C<StackPolicyDuringUpdateBody> or the
159             C<StackPolicyDuringUpdateURL> parameter, but not both.
160              
161             If you want to update protected resources, specify a temporary
162             overriding stack policy during this update. If you do not specify a
163             stack policy, the current policy that is associated with the stack will
164             be used.
165              
166              
167              
168             =head2 StackPolicyDuringUpdateURL => Str
169              
170             Location of a file containing the temporary overriding stack policy.
171             The URL must point to a policy (max size: 16KB) located in an S3 bucket
172             in the same region as the stack. You can specify either the
173             C<StackPolicyDuringUpdateBody> or the C<StackPolicyDuringUpdateURL>
174             parameter, but not both.
175              
176             If you want to update protected resources, specify a temporary
177             overriding stack policy during this update. If you do not specify a
178             stack policy, the current policy that is associated with the stack will
179             be used.
180              
181              
182              
183             =head2 StackPolicyURL => Str
184              
185             Location of a file containing the updated stack policy. The URL must
186             point to a policy (max size: 16KB) located in an S3 bucket in the same
187             region as the stack. You can specify either the C<StackPolicyBody> or
188             the C<StackPolicyURL> parameter, but not both.
189              
190             You might update the stack policy, for example, in order to protect a
191             new resource that you created during a stack update. If you do not
192             specify a stack policy, the current policy that is associated with the
193             stack is unchanged.
194              
195              
196              
197             =head2 Tags => ArrayRef[L<Paws::CloudFormation::Tag>]
198              
199             Key-value pairs to associate with this stack. AWS CloudFormation also
200             propagates these tags to supported resources in the stack. You can
201             specify a maximum number of 10 tags.
202              
203             If you don't specify this parameter, AWS CloudFormation doesn't modify
204             the stack's tags. If you specify an empty value, AWS CloudFormation
205             removes all associated tags.
206              
207              
208              
209             =head2 TemplateBody => Str
210              
211             Structure containing the template body with a minimum length of 1 byte
212             and a maximum length of 51,200 bytes. (For more information, go to
213             Template Anatomy in the AWS CloudFormation User Guide.)
214              
215             Conditional: You must specify only one of the following parameters:
216             C<TemplateBody>, C<TemplateURL>, or set the C<UsePreviousTemplate> to
217             C<true>.
218              
219              
220              
221             =head2 TemplateURL => Str
222              
223             Location of file containing the template body. The URL must point to a
224             template that is located in an Amazon S3 bucket. For more information,
225             go to Template Anatomy in the AWS CloudFormation User Guide.
226              
227             Conditional: You must specify only one of the following parameters:
228             C<TemplateBody>, C<TemplateURL>, or set the C<UsePreviousTemplate> to
229             C<true>.
230              
231              
232              
233             =head2 UsePreviousTemplate => Bool
234              
235             Reuse the existing template that is associated with the stack that you
236             are updating.
237              
238             Conditional: You must specify only one of the following parameters:
239             C<TemplateBody>, C<TemplateURL>, or set the C<UsePreviousTemplate> to
240             C<true>.
241              
242              
243              
244              
245             =head1 SEE ALSO
246              
247             This class forms part of L<Paws>, documenting arguments for method UpdateStack in L<Paws::CloudFormation>
248              
249             =head1 BUGS and CONTRIBUTIONS
250              
251             The source code is located here: https://github.com/pplu/aws-sdk-perl
252              
253             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
254              
255             =cut
256