aws-sdk-cloudformation 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 002d893fc2c977f2d7750ad13111bc530072310a
4
- data.tar.gz: 046dd6819b7db08e45900e2db4a3b96260985ae9
3
+ metadata.gz: b9cf10e3312d639cd2da6e5deb373983993af918
4
+ data.tar.gz: 79e597c1a6e1aadc7b1b8d42dd3fa1c92837ad10
5
5
  SHA512:
6
- metadata.gz: 9f262c161decee207e2c683d749eda6b70e41aad372f61c2c0239175da975a3f19edd7ba452c2952a6a2948b0b5b83d823aa3227a0a18da60f1a7db22ad3b580
7
- data.tar.gz: f86d200de56fc44573b16fa074971d1a721fc71775af0f1dcb0115c2f9bfb6f89b8742fb6ea7ce2d7e5827b281081ccead91e8905d4a940ac92cb0cb7ab3ba28
6
+ metadata.gz: d4abc371c00c356f137141608a2781af9017262d1235393f423e68e4e74010158aa9e6afed6c78eb539fe2b4c4bf5554be81643df5436da544f9a30eac2cdae5
7
+ data.tar.gz: a5feee862f1553c596aafdd566fb2d35269ab7e32ba681238c421e8963f392cca1ff01a7df7fe96d90865149828aaa9bce8a95f305e31a1d4ba7b6c10cdc5a28
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-cloudformation/customizations'
47
47
  # @service
48
48
  module Aws::CloudFormation
49
49
 
50
- GEM_VERSION = '1.1.0'
50
+ GEM_VERSION = '1.2.0'
51
51
 
52
52
  end
@@ -722,6 +722,22 @@ module Aws::CloudFormation
722
722
  # token in the following format:
723
723
  # `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`.
724
724
  #
725
+ # @option params [Boolean] :enable_termination_protection
726
+ # Whether to enable termination protection on the specified stack. If a
727
+ # user attempts to delete a stack with termination protection enabled,
728
+ # the operation fails and the stack remains unchanged. For more
729
+ # information, see [Protecting a Stack From Being Deleted][1] in the
730
+ # *AWS CloudFormation User Guide*. Termination protection is disabled on
731
+ # stacks by default.
732
+ #
733
+ # For [nested stacks][2], termination protection is set on the root
734
+ # stack and cannot be changed directly on the nested stack.
735
+ #
736
+ #
737
+ #
738
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
739
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
740
+ #
725
741
  # @return [Types::CreateStackOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
726
742
  #
727
743
  # * {Types::CreateStackOutput#stack_id #stack_id} => String
@@ -764,6 +780,7 @@ module Aws::CloudFormation
764
780
  # },
765
781
  # ],
766
782
  # client_request_token: "ClientRequestToken",
783
+ # enable_termination_protection: false,
767
784
  # })
768
785
  #
769
786
  # @example Response structure
@@ -1737,6 +1754,7 @@ module Aws::CloudFormation
1737
1754
  # resp.stacks[0].parameters[0].parameter_value #=> String
1738
1755
  # resp.stacks[0].parameters[0].use_previous_value #=> Boolean
1739
1756
  # resp.stacks[0].creation_time #=> Time
1757
+ # resp.stacks[0].deletion_time #=> Time
1740
1758
  # resp.stacks[0].last_updated_time #=> Time
1741
1759
  # resp.stacks[0].rollback_configuration.rollback_triggers #=> Array
1742
1760
  # resp.stacks[0].rollback_configuration.rollback_triggers[0].arn #=> String
@@ -1759,6 +1777,9 @@ module Aws::CloudFormation
1759
1777
  # resp.stacks[0].tags #=> Array
1760
1778
  # resp.stacks[0].tags[0].key #=> String
1761
1779
  # resp.stacks[0].tags[0].value #=> String
1780
+ # resp.stacks[0].enable_termination_protection #=> Boolean
1781
+ # resp.stacks[0].parent_id #=> String
1782
+ # resp.stacks[0].root_id #=> String
1762
1783
  # resp.next_token #=> String
1763
1784
  #
1764
1785
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks AWS API Documentation
@@ -2537,6 +2558,8 @@ module Aws::CloudFormation
2537
2558
  # resp.stack_summaries[0].deletion_time #=> Time
2538
2559
  # resp.stack_summaries[0].stack_status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_FAILED", "CREATE_COMPLETE", "ROLLBACK_IN_PROGRESS", "ROLLBACK_FAILED", "ROLLBACK_COMPLETE", "DELETE_IN_PROGRESS", "DELETE_FAILED", "DELETE_COMPLETE", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_ROLLBACK_IN_PROGRESS", "UPDATE_ROLLBACK_FAILED", "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", "UPDATE_ROLLBACK_COMPLETE", "REVIEW_IN_PROGRESS"
2539
2560
  # resp.stack_summaries[0].stack_status_reason #=> String
2561
+ # resp.stack_summaries[0].parent_id #=> String
2562
+ # resp.stack_summaries[0].root_id #=> String
2540
2563
  # resp.next_token #=> String
2541
2564
  #
2542
2565
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks AWS API Documentation
@@ -3122,6 +3145,51 @@ module Aws::CloudFormation
3122
3145
  req.send_request(options)
3123
3146
  end
3124
3147
 
3148
+ # Updates termination protection for the specified stack. If a user
3149
+ # attempts to delete a stack with termination protection enabled, the
3150
+ # operation fails and the stack remains unchanged. For more information,
3151
+ # see [Protecting a Stack From Being Deleted][1] in the *AWS
3152
+ # CloudFormation User Guide*.
3153
+ #
3154
+ # For [nested stacks][2], termination protection is set on the root
3155
+ # stack and cannot be changed directly on the nested stack.
3156
+ #
3157
+ #
3158
+ #
3159
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
3160
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
3161
+ #
3162
+ # @option params [required, Boolean] :enable_termination_protection
3163
+ # Whether to enable termination protection on the specified stack.
3164
+ #
3165
+ # @option params [required, String] :stack_name
3166
+ # The name or unique ID of the stack for which you want to set
3167
+ # termination protection.
3168
+ #
3169
+ # @return [Types::UpdateTerminationProtectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3170
+ #
3171
+ # * {Types::UpdateTerminationProtectionOutput#stack_id #stack_id} => String
3172
+ #
3173
+ # @example Request syntax with placeholder values
3174
+ #
3175
+ # resp = client.update_termination_protection({
3176
+ # enable_termination_protection: false, # required
3177
+ # stack_name: "StackNameOrId", # required
3178
+ # })
3179
+ #
3180
+ # @example Response structure
3181
+ #
3182
+ # resp.stack_id #=> String
3183
+ #
3184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection AWS API Documentation
3185
+ #
3186
+ # @overload update_termination_protection(params = {})
3187
+ # @param [Hash] params ({})
3188
+ def update_termination_protection(params = {}, options = {})
3189
+ req = build_request(:update_termination_protection, params)
3190
+ req.send_request(options)
3191
+ end
3192
+
3125
3193
  # Validates a specified template. AWS CloudFormation first checks if the
3126
3194
  # template is valid JSON. If it isn't, AWS CloudFormation checks if the
3127
3195
  # template is valid YAML. If both these checks fail, AWS CloudFormation
@@ -3203,7 +3271,7 @@ module Aws::CloudFormation
3203
3271
  params: params,
3204
3272
  config: config)
3205
3273
  context[:gem_name] = 'aws-sdk-cloudformation'
3206
- context[:gem_version] = '1.1.0'
3274
+ context[:gem_version] = '1.2.0'
3207
3275
  Seahorse::Client::Request.new(handlers, context)
3208
3276
  end
3209
3277
 
@@ -83,6 +83,7 @@ module Aws::CloudFormation
83
83
  DescribeStacksOutput = Shapes::StructureShape.new(name: 'DescribeStacksOutput')
84
84
  Description = Shapes::StringShape.new(name: 'Description')
85
85
  DisableRollback = Shapes::BooleanShape.new(name: 'DisableRollback')
86
+ EnableTerminationProtection = Shapes::BooleanShape.new(name: 'EnableTerminationProtection')
86
87
  EstimateTemplateCostInput = Shapes::StructureShape.new(name: 'EstimateTemplateCostInput')
87
88
  EstimateTemplateCostOutput = Shapes::StructureShape.new(name: 'EstimateTemplateCostOutput')
88
89
  EvaluationType = Shapes::StringShape.new(name: 'EvaluationType')
@@ -254,6 +255,8 @@ module Aws::CloudFormation
254
255
  UpdateStackOutput = Shapes::StructureShape.new(name: 'UpdateStackOutput')
255
256
  UpdateStackSetInput = Shapes::StructureShape.new(name: 'UpdateStackSetInput')
256
257
  UpdateStackSetOutput = Shapes::StructureShape.new(name: 'UpdateStackSetOutput')
258
+ UpdateTerminationProtectionInput = Shapes::StructureShape.new(name: 'UpdateTerminationProtectionInput')
259
+ UpdateTerminationProtectionOutput = Shapes::StructureShape.new(name: 'UpdateTerminationProtectionOutput')
257
260
  Url = Shapes::StringShape.new(name: 'Url')
258
261
  UsePreviousTemplate = Shapes::BooleanShape.new(name: 'UsePreviousTemplate')
259
262
  UsePreviousValue = Shapes::BooleanShape.new(name: 'UsePreviousValue')
@@ -345,6 +348,7 @@ module Aws::CloudFormation
345
348
  CreateStackInput.add_member(:stack_policy_url, Shapes::ShapeRef.new(shape: StackPolicyURL, location_name: "StackPolicyURL"))
346
349
  CreateStackInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
347
350
  CreateStackInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken"))
351
+ CreateStackInput.add_member(:enable_termination_protection, Shapes::ShapeRef.new(shape: EnableTerminationProtection, location_name: "EnableTerminationProtection"))
348
352
  CreateStackInput.struct_class = Types::CreateStackInput
349
353
 
350
354
  CreateStackInstancesInput.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetName, required: true, location_name: "StackSetName"))
@@ -705,6 +709,7 @@ module Aws::CloudFormation
705
709
  Stack.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
706
710
  Stack.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "Parameters"))
707
711
  Stack.add_member(:creation_time, Shapes::ShapeRef.new(shape: CreationTime, required: true, location_name: "CreationTime"))
712
+ Stack.add_member(:deletion_time, Shapes::ShapeRef.new(shape: DeletionTime, location_name: "DeletionTime"))
708
713
  Stack.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: LastUpdatedTime, location_name: "LastUpdatedTime"))
709
714
  Stack.add_member(:rollback_configuration, Shapes::ShapeRef.new(shape: RollbackConfiguration, location_name: "RollbackConfiguration"))
710
715
  Stack.add_member(:stack_status, Shapes::ShapeRef.new(shape: StackStatus, required: true, location_name: "StackStatus"))
@@ -716,6 +721,9 @@ module Aws::CloudFormation
716
721
  Stack.add_member(:outputs, Shapes::ShapeRef.new(shape: Outputs, location_name: "Outputs"))
717
722
  Stack.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleARN, location_name: "RoleARN"))
718
723
  Stack.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
724
+ Stack.add_member(:enable_termination_protection, Shapes::ShapeRef.new(shape: EnableTerminationProtection, location_name: "EnableTerminationProtection"))
725
+ Stack.add_member(:parent_id, Shapes::ShapeRef.new(shape: StackId, location_name: "ParentId"))
726
+ Stack.add_member(:root_id, Shapes::ShapeRef.new(shape: StackId, location_name: "RootId"))
719
727
  Stack.struct_class = Types::Stack
720
728
 
721
729
  StackEvent.add_member(:stack_id, Shapes::ShapeRef.new(shape: StackId, required: true, location_name: "StackId"))
@@ -851,6 +859,8 @@ module Aws::CloudFormation
851
859
  StackSummary.add_member(:deletion_time, Shapes::ShapeRef.new(shape: DeletionTime, location_name: "DeletionTime"))
852
860
  StackSummary.add_member(:stack_status, Shapes::ShapeRef.new(shape: StackStatus, required: true, location_name: "StackStatus"))
853
861
  StackSummary.add_member(:stack_status_reason, Shapes::ShapeRef.new(shape: StackStatusReason, location_name: "StackStatusReason"))
862
+ StackSummary.add_member(:parent_id, Shapes::ShapeRef.new(shape: StackId, location_name: "ParentId"))
863
+ StackSummary.add_member(:root_id, Shapes::ShapeRef.new(shape: StackId, location_name: "RootId"))
854
864
  StackSummary.struct_class = Types::StackSummary
855
865
 
856
866
  Stacks.member = Shapes::ShapeRef.new(shape: Stack)
@@ -915,6 +925,13 @@ module Aws::CloudFormation
915
925
  UpdateStackSetOutput.add_member(:operation_id, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "OperationId"))
916
926
  UpdateStackSetOutput.struct_class = Types::UpdateStackSetOutput
917
927
 
928
+ UpdateTerminationProtectionInput.add_member(:enable_termination_protection, Shapes::ShapeRef.new(shape: EnableTerminationProtection, required: true, location_name: "EnableTerminationProtection"))
929
+ UpdateTerminationProtectionInput.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackNameOrId, required: true, location_name: "StackName"))
930
+ UpdateTerminationProtectionInput.struct_class = Types::UpdateTerminationProtectionInput
931
+
932
+ UpdateTerminationProtectionOutput.add_member(:stack_id, Shapes::ShapeRef.new(shape: StackId, location_name: "StackId"))
933
+ UpdateTerminationProtectionOutput.struct_class = Types::UpdateTerminationProtectionOutput
934
+
918
935
  ValidateTemplateInput.add_member(:template_body, Shapes::ShapeRef.new(shape: TemplateBody, location_name: "TemplateBody"))
919
936
  ValidateTemplateInput.add_member(:template_url, Shapes::ShapeRef.new(shape: TemplateURL, location_name: "TemplateURL"))
920
937
  ValidateTemplateInput.struct_class = Types::ValidateTemplateInput
@@ -1327,6 +1344,14 @@ module Aws::CloudFormation
1327
1344
  o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
1328
1345
  end)
1329
1346
 
1347
+ api.add_operation(:update_termination_protection, Seahorse::Model::Operation.new.tap do |o|
1348
+ o.name = "UpdateTerminationProtection"
1349
+ o.http_method = "POST"
1350
+ o.http_request_uri = "/"
1351
+ o.input = Shapes::ShapeRef.new(shape: UpdateTerminationProtectionInput)
1352
+ o.output = Shapes::ShapeRef.new(shape: UpdateTerminationProtectionOutput)
1353
+ end)
1354
+
1330
1355
  api.add_operation(:validate_template, Seahorse::Model::Operation.new.tap do |o|
1331
1356
  o.name = "ValidateTemplate"
1332
1357
  o.http_method = "POST"
@@ -59,6 +59,7 @@ module Aws::CloudFormation
59
59
  # },
60
60
  # ],
61
61
  # client_request_token: "ClientRequestToken",
62
+ # enable_termination_protection: false,
62
63
  # })
63
64
  # @param [Hash] options ({})
64
65
  # @option options [required, String] :stack_name
@@ -231,6 +232,21 @@ module Aws::CloudFormation
231
232
  # stack using the console, each stack event would be assigned the same
232
233
  # token in the following format:
233
234
  # `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`.
235
+ # @option options [Boolean] :enable_termination_protection
236
+ # Whether to enable termination protection on the specified stack. If a
237
+ # user attempts to delete a stack with termination protection enabled,
238
+ # the operation fails and the stack remains unchanged. For more
239
+ # information, see [Protecting a Stack From Being Deleted][1] in the
240
+ # *AWS CloudFormation User Guide*. Termination protection is disabled on
241
+ # stacks by default.
242
+ #
243
+ # For [nested stacks][2], termination protection is set on the root
244
+ # stack and cannot be changed directly on the nested stack.
245
+ #
246
+ #
247
+ #
248
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
249
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
234
250
  # @return [Stack]
235
251
  def create_stack(options = {})
236
252
  resp = @client.create_stack(options)
@@ -61,6 +61,12 @@ module Aws::CloudFormation
61
61
  data[:creation_time]
62
62
  end
63
63
 
64
+ # The time the stack was deleted.
65
+ # @return [Time]
66
+ def deletion_time
67
+ data[:deletion_time]
68
+ end
69
+
64
70
  # The time the stack was last updated. This field will only be returned
65
71
  # if the stack has been updated at least once.
66
72
  # @return [Time]
@@ -137,6 +143,52 @@ module Aws::CloudFormation
137
143
  data[:tags]
138
144
  end
139
145
 
146
+ # Whether termination protection is enabled for the stack.
147
+ #
148
+ # For [nested stacks][1], termination protection is set on the root
149
+ # stack and cannot be changed directly on the nested stack. For more
150
+ # information, see [Protecting a Stack From Being Deleted][2] in the
151
+ # *AWS CloudFormation User Guide*.
152
+ #
153
+ #
154
+ #
155
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
156
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
157
+ # @return [Boolean]
158
+ def enable_termination_protection
159
+ data[:enable_termination_protection]
160
+ end
161
+
162
+ # For nested stacks--stacks created as resources for another stack--the
163
+ # stack ID of the direct parent of this stack. For the first level of
164
+ # nested stacks, the root stack is also the parent stack.
165
+ #
166
+ # For more information, see [Working with Nested Stacks][1] in the *AWS
167
+ # CloudFormation User Guide*.
168
+ #
169
+ #
170
+ #
171
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
172
+ # @return [String]
173
+ def parent_id
174
+ data[:parent_id]
175
+ end
176
+
177
+ # For nested stacks--stacks created as resources for another stack--the
178
+ # stack ID of the the top-level stack to which the nested stack
179
+ # ultimately belongs.
180
+ #
181
+ # For more information, see [Working with Nested Stacks][1] in the *AWS
182
+ # CloudFormation User Guide*.
183
+ #
184
+ #
185
+ #
186
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
187
+ # @return [String]
188
+ def root_id
189
+ data[:root_id]
190
+ end
191
+
140
192
  # @!endgroup
141
193
 
142
194
  # @return [Client]
@@ -356,6 +408,7 @@ module Aws::CloudFormation
356
408
  # },
357
409
  # ],
358
410
  # client_request_token: "ClientRequestToken",
411
+ # enable_termination_protection: false,
359
412
  # })
360
413
  # @param [Hash] options ({})
361
414
  # @option options [String] :template_body
@@ -519,6 +572,21 @@ module Aws::CloudFormation
519
572
  # stack using the console, each stack event would be assigned the same
520
573
  # token in the following format:
521
574
  # `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`.
575
+ # @option options [Boolean] :enable_termination_protection
576
+ # Whether to enable termination protection on the specified stack. If a
577
+ # user attempts to delete a stack with termination protection enabled,
578
+ # the operation fails and the stack remains unchanged. For more
579
+ # information, see [Protecting a Stack From Being Deleted][1] in the
580
+ # *AWS CloudFormation User Guide*. Termination protection is disabled on
581
+ # stacks by default.
582
+ #
583
+ # For [nested stacks][2], termination protection is set on the root
584
+ # stack and cannot be changed directly on the nested stack.
585
+ #
586
+ #
587
+ #
588
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
589
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
522
590
  # @return [Types::CreateStackOutput]
523
591
  def create(options = {})
524
592
  options = options.merge(stack_name: @name)
@@ -607,6 +607,7 @@ module Aws::CloudFormation
607
607
  # },
608
608
  # ],
609
609
  # client_request_token: "ClientRequestToken",
610
+ # enable_termination_protection: false,
610
611
  # }
611
612
  #
612
613
  # @!attribute [rw] stack_name
@@ -814,6 +815,23 @@ module Aws::CloudFormation
814
815
  # `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`.
815
816
  # @return [String]
816
817
  #
818
+ # @!attribute [rw] enable_termination_protection
819
+ # Whether to enable termination protection on the specified stack. If
820
+ # a user attempts to delete a stack with termination protection
821
+ # enabled, the operation fails and the stack remains unchanged. For
822
+ # more information, see [Protecting a Stack From Being Deleted][1] in
823
+ # the *AWS CloudFormation User Guide*. Termination protection is
824
+ # disabled on stacks by default.
825
+ #
826
+ # For [nested stacks][2], termination protection is set on the root
827
+ # stack and cannot be changed directly on the nested stack.
828
+ #
829
+ #
830
+ #
831
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
832
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
833
+ # @return [Boolean]
834
+ #
817
835
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInput AWS API Documentation
818
836
  #
819
837
  class CreateStackInput < Struct.new(
@@ -832,7 +850,8 @@ module Aws::CloudFormation
832
850
  :stack_policy_body,
833
851
  :stack_policy_url,
834
852
  :tags,
835
- :client_request_token)
853
+ :client_request_token,
854
+ :enable_termination_protection)
836
855
  include Aws::Structure
837
856
  end
838
857
 
@@ -3289,6 +3308,10 @@ module Aws::CloudFormation
3289
3308
  # The time at which the stack was created.
3290
3309
  # @return [Time]
3291
3310
  #
3311
+ # @!attribute [rw] deletion_time
3312
+ # The time the stack was deleted.
3313
+ # @return [Time]
3314
+ #
3292
3315
  # @!attribute [rw] last_updated_time
3293
3316
  # The time the stack was last updated. This field will only be
3294
3317
  # returned if the stack has been updated at least once.
@@ -3343,6 +3366,47 @@ module Aws::CloudFormation
3343
3366
  # A list of `Tag`s that specify information about the stack.
3344
3367
  # @return [Array<Types::Tag>]
3345
3368
  #
3369
+ # @!attribute [rw] enable_termination_protection
3370
+ # Whether termination protection is enabled for the stack.
3371
+ #
3372
+ # For [nested stacks][1], termination protection is set on the root
3373
+ # stack and cannot be changed directly on the nested stack. For more
3374
+ # information, see [Protecting a Stack From Being Deleted][2] in the
3375
+ # *AWS CloudFormation User Guide*.
3376
+ #
3377
+ #
3378
+ #
3379
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
3380
+ # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
3381
+ # @return [Boolean]
3382
+ #
3383
+ # @!attribute [rw] parent_id
3384
+ # For nested stacks--stacks created as resources for another
3385
+ # stack--the stack ID of the direct parent of this stack. For the
3386
+ # first level of nested stacks, the root stack is also the parent
3387
+ # stack.
3388
+ #
3389
+ # For more information, see [Working with Nested Stacks][1] in the
3390
+ # *AWS CloudFormation User Guide*.
3391
+ #
3392
+ #
3393
+ #
3394
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
3395
+ # @return [String]
3396
+ #
3397
+ # @!attribute [rw] root_id
3398
+ # For nested stacks--stacks created as resources for another
3399
+ # stack--the stack ID of the the top-level stack to which the nested
3400
+ # stack ultimately belongs.
3401
+ #
3402
+ # For more information, see [Working with Nested Stacks][1] in the
3403
+ # *AWS CloudFormation User Guide*.
3404
+ #
3405
+ #
3406
+ #
3407
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
3408
+ # @return [String]
3409
+ #
3346
3410
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Stack AWS API Documentation
3347
3411
  #
3348
3412
  class Stack < Struct.new(
@@ -3352,6 +3416,7 @@ module Aws::CloudFormation
3352
3416
  :description,
3353
3417
  :parameters,
3354
3418
  :creation_time,
3419
+ :deletion_time,
3355
3420
  :last_updated_time,
3356
3421
  :rollback_configuration,
3357
3422
  :stack_status,
@@ -3362,7 +3427,10 @@ module Aws::CloudFormation
3362
3427
  :capabilities,
3363
3428
  :outputs,
3364
3429
  :role_arn,
3365
- :tags)
3430
+ :tags,
3431
+ :enable_termination_protection,
3432
+ :parent_id,
3433
+ :root_id)
3366
3434
  include Aws::Structure
3367
3435
  end
3368
3436
 
@@ -3958,6 +4026,11 @@ module Aws::CloudFormation
3958
4026
  # `FailureToleranceCount`—`MaxConcurrentCount` is at most one more
3959
4027
  # than the `FailureToleranceCount` .
3960
4028
  #
4029
+ # Note that this setting lets you specify the *maximum* for
4030
+ # operations. For large deployments, under certain circumstances the
4031
+ # actual number of accounts acted upon concurrently may be lower due
4032
+ # to service throttling.
4033
+ #
3961
4034
  # Conditional: You must specify either `MaxConcurrentCount` or
3962
4035
  # `MaxConcurrentPercentage`, but not both.
3963
4036
  # @return [Integer]
@@ -3971,6 +4044,11 @@ module Aws::CloudFormation
3971
4044
  # This is true except in cases where rounding down would result is
3972
4045
  # zero. In this case, CloudFormation sets the number as one instead.
3973
4046
  #
4047
+ # Note that this setting lets you specify the *maximum* for
4048
+ # operations. For large deployments, under certain circumstances the
4049
+ # actual number of accounts acted upon concurrently may be lower due
4050
+ # to service throttling.
4051
+ #
3974
4052
  # Conditional: You must specify either `MaxConcurrentCount` or
3975
4053
  # `MaxConcurrentPercentage`, but not both.
3976
4054
  # @return [Integer]
@@ -4175,6 +4253,33 @@ module Aws::CloudFormation
4175
4253
  # Success/Failure message associated with the stack status.
4176
4254
  # @return [String]
4177
4255
  #
4256
+ # @!attribute [rw] parent_id
4257
+ # For nested stacks--stacks created as resources for another
4258
+ # stack--the stack ID of the direct parent of this stack. For the
4259
+ # first level of nested stacks, the root stack is also the parent
4260
+ # stack.
4261
+ #
4262
+ # For more information, see [Working with Nested Stacks][1] in the
4263
+ # *AWS CloudFormation User Guide*.
4264
+ #
4265
+ #
4266
+ #
4267
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
4268
+ # @return [String]
4269
+ #
4270
+ # @!attribute [rw] root_id
4271
+ # For nested stacks--stacks created as resources for another
4272
+ # stack--the stack ID of the the top-level stack to which the nested
4273
+ # stack ultimately belongs.
4274
+ #
4275
+ # For more information, see [Working with Nested Stacks][1] in the
4276
+ # *AWS CloudFormation User Guide*.
4277
+ #
4278
+ #
4279
+ #
4280
+ # [1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
4281
+ # @return [String]
4282
+ #
4178
4283
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSummary AWS API Documentation
4179
4284
  #
4180
4285
  class StackSummary < Struct.new(
@@ -4185,7 +4290,9 @@ module Aws::CloudFormation
4185
4290
  :last_updated_time,
4186
4291
  :deletion_time,
4187
4292
  :stack_status,
4188
- :stack_status_reason)
4293
+ :stack_status_reason,
4294
+ :parent_id,
4295
+ :root_id)
4189
4296
  include Aws::Structure
4190
4297
  end
4191
4298
 
@@ -4782,6 +4889,42 @@ module Aws::CloudFormation
4782
4889
  include Aws::Structure
4783
4890
  end
4784
4891
 
4892
+ # @note When making an API call, you may pass UpdateTerminationProtectionInput
4893
+ # data as a hash:
4894
+ #
4895
+ # {
4896
+ # enable_termination_protection: false, # required
4897
+ # stack_name: "StackNameOrId", # required
4898
+ # }
4899
+ #
4900
+ # @!attribute [rw] enable_termination_protection
4901
+ # Whether to enable termination protection on the specified stack.
4902
+ # @return [Boolean]
4903
+ #
4904
+ # @!attribute [rw] stack_name
4905
+ # The name or unique ID of the stack for which you want to set
4906
+ # termination protection.
4907
+ # @return [String]
4908
+ #
4909
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtectionInput AWS API Documentation
4910
+ #
4911
+ class UpdateTerminationProtectionInput < Struct.new(
4912
+ :enable_termination_protection,
4913
+ :stack_name)
4914
+ include Aws::Structure
4915
+ end
4916
+
4917
+ # @!attribute [rw] stack_id
4918
+ # The unique ID of the stack.
4919
+ # @return [String]
4920
+ #
4921
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtectionOutput AWS API Documentation
4922
+ #
4923
+ class UpdateTerminationProtectionOutput < Struct.new(
4924
+ :stack_id)
4925
+ include Aws::Structure
4926
+ end
4927
+
4785
4928
  # The input for ValidateTemplate action.
4786
4929
  #
4787
4930
  # @note When making an API call, you may pass ValidateTemplateInput
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-14 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core