aws-sdk-cloudformation 1.28.0 → 1.29.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: c39da5ffd54a084841e6717105a27605fabad086
4
- data.tar.gz: 96b615ed56e4cd111be23c1e2ebee2ce4648c16f
3
+ metadata.gz: 6b59f86483fa5b82941570227948692914749d62
4
+ data.tar.gz: 7af00c5d073de106ec1529d4b33ac650e47466b3
5
5
  SHA512:
6
- metadata.gz: d5a3356e4569f93efe98e506fb66bedb824c205fad3f00fd3f4947922ed5ba89d2f85ac5acd21cc4de8851b9e10c949dd9fafc36bcedba7b623b8f0e0649a1e3
7
- data.tar.gz: 0f43051817a10eacd017f6dfe318b6c06fd865683d9767df41176014a0e1c307ad1130012d28ada42a5b8e62558632070948bbe2b1698748de3816915dd5e4fa
6
+ metadata.gz: 25201c6a6f308318ac4464b02d2e5d22b02d9d8018f5d1a6c2cb29ad0ea98ff246d2f7ca4d46e16da0fc1401d4c3b54cc5e00ccf46db31ca3c04be62196f6b60
7
+ data.tar.gz: d2ef3d37989076ea979899b87293ab89c6e1ee2aafdd19ed702bc9c6c831d49b996e44f323322ec943ce9596c81691e1f908ec582e526cdd1137e43c0c2f1274
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-cloudformation/customizations'
47
47
  # @service
48
48
  module Aws::CloudFormation
49
49
 
50
- GEM_VERSION = '1.28.0'
50
+ GEM_VERSION = '1.29.0'
51
51
 
52
52
  end
@@ -1925,6 +1925,8 @@ module Aws::CloudFormation
1925
1925
  # resp.stack_instance.parameter_overrides[0].resolved_value #=> String
1926
1926
  # resp.stack_instance.status #=> String, one of "CURRENT", "OUTDATED", "INOPERABLE"
1927
1927
  # resp.stack_instance.status_reason #=> String
1928
+ # resp.stack_instance.drift_status #=> String, one of "DRIFTED", "IN_SYNC", "UNKNOWN", "NOT_CHECKED"
1929
+ # resp.stack_instance.last_drift_check_timestamp #=> Time
1928
1930
  #
1929
1931
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance AWS API Documentation
1930
1932
  #
@@ -2218,6 +2220,14 @@ module Aws::CloudFormation
2218
2220
  # resp.stack_set.stack_set_arn #=> String
2219
2221
  # resp.stack_set.administration_role_arn #=> String
2220
2222
  # resp.stack_set.execution_role_name #=> String
2223
+ # resp.stack_set.stack_set_drift_detection_details.drift_status #=> String, one of "DRIFTED", "IN_SYNC", "NOT_CHECKED"
2224
+ # resp.stack_set.stack_set_drift_detection_details.drift_detection_status #=> String, one of "COMPLETED", "FAILED", "PARTIAL_SUCCESS", "IN_PROGRESS", "STOPPED"
2225
+ # resp.stack_set.stack_set_drift_detection_details.last_drift_check_timestamp #=> Time
2226
+ # resp.stack_set.stack_set_drift_detection_details.total_stack_instances_count #=> Integer
2227
+ # resp.stack_set.stack_set_drift_detection_details.drifted_stack_instances_count #=> Integer
2228
+ # resp.stack_set.stack_set_drift_detection_details.in_sync_stack_instances_count #=> Integer
2229
+ # resp.stack_set.stack_set_drift_detection_details.in_progress_stack_instances_count #=> Integer
2230
+ # resp.stack_set.stack_set_drift_detection_details.failed_stack_instances_count #=> Integer
2221
2231
  #
2222
2232
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet AWS API Documentation
2223
2233
  #
@@ -2252,7 +2262,7 @@ module Aws::CloudFormation
2252
2262
  #
2253
2263
  # resp.stack_set_operation.operation_id #=> String
2254
2264
  # resp.stack_set_operation.stack_set_id #=> String
2255
- # resp.stack_set_operation.action #=> String, one of "CREATE", "UPDATE", "DELETE"
2265
+ # resp.stack_set_operation.action #=> String, one of "CREATE", "UPDATE", "DELETE", "DETECT_DRIFT"
2256
2266
  # resp.stack_set_operation.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "STOPPING", "STOPPED"
2257
2267
  # resp.stack_set_operation.operation_preferences.region_order #=> Array
2258
2268
  # resp.stack_set_operation.operation_preferences.region_order[0] #=> String
@@ -2265,6 +2275,14 @@ module Aws::CloudFormation
2265
2275
  # resp.stack_set_operation.execution_role_name #=> String
2266
2276
  # resp.stack_set_operation.creation_timestamp #=> Time
2267
2277
  # resp.stack_set_operation.end_timestamp #=> Time
2278
+ # resp.stack_set_operation.stack_set_drift_detection_details.drift_status #=> String, one of "DRIFTED", "IN_SYNC", "NOT_CHECKED"
2279
+ # resp.stack_set_operation.stack_set_drift_detection_details.drift_detection_status #=> String, one of "COMPLETED", "FAILED", "PARTIAL_SUCCESS", "IN_PROGRESS", "STOPPED"
2280
+ # resp.stack_set_operation.stack_set_drift_detection_details.last_drift_check_timestamp #=> Time
2281
+ # resp.stack_set_operation.stack_set_drift_detection_details.total_stack_instances_count #=> Integer
2282
+ # resp.stack_set_operation.stack_set_drift_detection_details.drifted_stack_instances_count #=> Integer
2283
+ # resp.stack_set_operation.stack_set_drift_detection_details.in_sync_stack_instances_count #=> Integer
2284
+ # resp.stack_set_operation.stack_set_drift_detection_details.in_progress_stack_instances_count #=> Integer
2285
+ # resp.stack_set_operation.stack_set_drift_detection_details.failed_stack_instances_count #=> Integer
2268
2286
  #
2269
2287
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation AWS API Documentation
2270
2288
  #
@@ -2626,6 +2644,100 @@ module Aws::CloudFormation
2626
2644
  req.send_request(options)
2627
2645
  end
2628
2646
 
2647
+ # Detect drift on a stack set. When CloudFormation performs drift
2648
+ # detection on a stack set, it performs drift detection on the stack
2649
+ # associated with each stack instance in the stack set. For more
2650
+ # information, see [How CloudFormation Performs Drift Detection on a
2651
+ # Stack Set][1].
2652
+ #
2653
+ # `DetectStackSetDrift` returns the `OperationId` of the stack set drift
2654
+ # detection operation. Use this operation id with `
2655
+ # DescribeStackSetOperation ` to monitor the progress of the drift
2656
+ # detection operation. The drift detection operation may take some time,
2657
+ # depending on the number of stack instances included in the stack set,
2658
+ # as well as the number of resources included in each stack.
2659
+ #
2660
+ # Once the operation has completed, use the following actions to return
2661
+ # drift information:
2662
+ #
2663
+ # * Use ` DescribeStackSet ` to return detailed informaiton about the
2664
+ # stack set, including detailed information about the last *completed*
2665
+ # drift operation performed on the stack set. (Information about drift
2666
+ # operations that are in progress is not included.)
2667
+ #
2668
+ # * Use ` ListStackInstances ` to return a list of stack instances
2669
+ # belonging to the stack set, including the drift status and last
2670
+ # drift time checked of each instance.
2671
+ #
2672
+ # * Use ` DescribeStackInstance ` to return detailed information about a
2673
+ # specific stack instance, including its drift status and last drift
2674
+ # time checked.
2675
+ #
2676
+ # For more information on performing a drift detection operation on a
2677
+ # stack set, see [Detecting Unmanaged Changes in Stack Sets][1].
2678
+ #
2679
+ # You can only run a single drift detection operation on a given stack
2680
+ # set at one time.
2681
+ #
2682
+ # To stop a drift detection stack set operation, use `
2683
+ # StopStackSetOperation `.
2684
+ #
2685
+ #
2686
+ #
2687
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html
2688
+ #
2689
+ # @option params [required, String] :stack_set_name
2690
+ # The name of the stack set on which to perform the drift detection
2691
+ # operation.
2692
+ #
2693
+ # @option params [Types::StackSetOperationPreferences] :operation_preferences
2694
+ # The user-specified preferences for how AWS CloudFormation performs a
2695
+ # stack set operation.
2696
+ #
2697
+ # For more information on maximum concurrent accounts and failure
2698
+ # tolerance, see [Stack set operation options][1].
2699
+ #
2700
+ #
2701
+ #
2702
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options
2703
+ #
2704
+ # @option params [String] :operation_id
2705
+ # *The ID of the stack set operation.*
2706
+ #
2707
+ # **A suitable default value is auto-generated.** You should normally
2708
+ # not need to pass this option.**
2709
+ #
2710
+ # @return [Types::DetectStackSetDriftOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2711
+ #
2712
+ # * {Types::DetectStackSetDriftOutput#operation_id #operation_id} => String
2713
+ #
2714
+ # @example Request syntax with placeholder values
2715
+ #
2716
+ # resp = client.detect_stack_set_drift({
2717
+ # stack_set_name: "StackSetNameOrId", # required
2718
+ # operation_preferences: {
2719
+ # region_order: ["Region"],
2720
+ # failure_tolerance_count: 1,
2721
+ # failure_tolerance_percentage: 1,
2722
+ # max_concurrent_count: 1,
2723
+ # max_concurrent_percentage: 1,
2724
+ # },
2725
+ # operation_id: "ClientRequestToken",
2726
+ # })
2727
+ #
2728
+ # @example Response structure
2729
+ #
2730
+ # resp.operation_id #=> String
2731
+ #
2732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift AWS API Documentation
2733
+ #
2734
+ # @overload detect_stack_set_drift(params = {})
2735
+ # @param [Hash] params ({})
2736
+ def detect_stack_set_drift(params = {}, options = {})
2737
+ req = build_request(:detect_stack_set_drift, params)
2738
+ req.send_request(options)
2739
+ end
2740
+
2629
2741
  # Returns the estimated monthly cost of a template. The return value is
2630
2742
  # an AWS Simple Monthly Calculator URL with a query string that
2631
2743
  # describes the resources required to run the template.
@@ -3134,6 +3246,8 @@ module Aws::CloudFormation
3134
3246
  # resp.summaries[0].stack_id #=> String
3135
3247
  # resp.summaries[0].status #=> String, one of "CURRENT", "OUTDATED", "INOPERABLE"
3136
3248
  # resp.summaries[0].status_reason #=> String
3249
+ # resp.summaries[0].drift_status #=> String, one of "DRIFTED", "IN_SYNC", "UNKNOWN", "NOT_CHECKED"
3250
+ # resp.summaries[0].last_drift_check_timestamp #=> Time
3137
3251
  # resp.next_token #=> String
3138
3252
  #
3139
3253
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances AWS API Documentation
@@ -3296,7 +3410,7 @@ module Aws::CloudFormation
3296
3410
  #
3297
3411
  # resp.summaries #=> Array
3298
3412
  # resp.summaries[0].operation_id #=> String
3299
- # resp.summaries[0].action #=> String, one of "CREATE", "UPDATE", "DELETE"
3413
+ # resp.summaries[0].action #=> String, one of "CREATE", "UPDATE", "DELETE", "DETECT_DRIFT"
3300
3414
  # resp.summaries[0].status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "STOPPING", "STOPPED"
3301
3415
  # resp.summaries[0].creation_timestamp #=> Time
3302
3416
  # resp.summaries[0].end_timestamp #=> Time
@@ -3352,6 +3466,8 @@ module Aws::CloudFormation
3352
3466
  # resp.summaries[0].stack_set_id #=> String
3353
3467
  # resp.summaries[0].description #=> String
3354
3468
  # resp.summaries[0].status #=> String, one of "ACTIVE", "DELETED"
3469
+ # resp.summaries[0].drift_status #=> String, one of "DRIFTED", "IN_SYNC", "UNKNOWN", "NOT_CHECKED"
3470
+ # resp.summaries[0].last_drift_check_timestamp #=> Time
3355
3471
  # resp.next_token #=> String
3356
3472
  #
3357
3473
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets AWS API Documentation
@@ -4903,7 +5019,7 @@ module Aws::CloudFormation
4903
5019
  params: params,
4904
5020
  config: config)
4905
5021
  context[:gem_name] = 'aws-sdk-cloudformation'
4906
- context[:gem_version] = '1.28.0'
5022
+ context[:gem_version] = '1.29.0'
4907
5023
  Seahorse::Client::Request.new(handlers, context)
4908
5024
  end
4909
5025
 
@@ -100,8 +100,11 @@ module Aws::CloudFormation
100
100
  DetectStackDriftOutput = Shapes::StructureShape.new(name: 'DetectStackDriftOutput')
101
101
  DetectStackResourceDriftInput = Shapes::StructureShape.new(name: 'DetectStackResourceDriftInput')
102
102
  DetectStackResourceDriftOutput = Shapes::StructureShape.new(name: 'DetectStackResourceDriftOutput')
103
+ DetectStackSetDriftInput = Shapes::StructureShape.new(name: 'DetectStackSetDriftInput')
104
+ DetectStackSetDriftOutput = Shapes::StructureShape.new(name: 'DetectStackSetDriftOutput')
103
105
  DifferenceType = Shapes::StringShape.new(name: 'DifferenceType')
104
106
  DisableRollback = Shapes::BooleanShape.new(name: 'DisableRollback')
107
+ DriftedStackInstancesCount = Shapes::IntegerShape.new(name: 'DriftedStackInstancesCount')
105
108
  EnableTerminationProtection = Shapes::BooleanShape.new(name: 'EnableTerminationProtection')
106
109
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
107
110
  EstimateTemplateCostInput = Shapes::StructureShape.new(name: 'EstimateTemplateCostInput')
@@ -116,6 +119,7 @@ module Aws::CloudFormation
116
119
  ExportName = Shapes::StringShape.new(name: 'ExportName')
117
120
  ExportValue = Shapes::StringShape.new(name: 'ExportValue')
118
121
  Exports = Shapes::ListShape.new(name: 'Exports')
122
+ FailedStackInstancesCount = Shapes::IntegerShape.new(name: 'FailedStackInstancesCount')
119
123
  FailureToleranceCount = Shapes::IntegerShape.new(name: 'FailureToleranceCount')
120
124
  FailureTolerancePercentage = Shapes::IntegerShape.new(name: 'FailureTolerancePercentage')
121
125
  GetStackPolicyInput = Shapes::StructureShape.new(name: 'GetStackPolicyInput')
@@ -126,6 +130,8 @@ module Aws::CloudFormation
126
130
  GetTemplateSummaryOutput = Shapes::StructureShape.new(name: 'GetTemplateSummaryOutput')
127
131
  HandlerErrorCode = Shapes::StringShape.new(name: 'HandlerErrorCode')
128
132
  Imports = Shapes::ListShape.new(name: 'Imports')
133
+ InProgressStackInstancesCount = Shapes::IntegerShape.new(name: 'InProgressStackInstancesCount')
134
+ InSyncStackInstancesCount = Shapes::IntegerShape.new(name: 'InSyncStackInstancesCount')
129
135
  InsufficientCapabilitiesException = Shapes::StructureShape.new(name: 'InsufficientCapabilitiesException')
130
136
  InvalidChangeSetStatusException = Shapes::StructureShape.new(name: 'InvalidChangeSetStatusException')
131
137
  InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
@@ -288,6 +294,9 @@ module Aws::CloudFormation
288
294
  StackResources = Shapes::ListShape.new(name: 'StackResources')
289
295
  StackSet = Shapes::StructureShape.new(name: 'StackSet')
290
296
  StackSetARN = Shapes::StringShape.new(name: 'StackSetARN')
297
+ StackSetDriftDetectionDetails = Shapes::StructureShape.new(name: 'StackSetDriftDetectionDetails')
298
+ StackSetDriftDetectionStatus = Shapes::StringShape.new(name: 'StackSetDriftDetectionStatus')
299
+ StackSetDriftStatus = Shapes::StringShape.new(name: 'StackSetDriftStatus')
291
300
  StackSetId = Shapes::StringShape.new(name: 'StackSetId')
292
301
  StackSetName = Shapes::StringShape.new(name: 'StackSetName')
293
302
  StackSetNameOrId = Shapes::StringShape.new(name: 'StackSetNameOrId')
@@ -329,6 +338,7 @@ module Aws::CloudFormation
329
338
  TimeoutMinutes = Shapes::IntegerShape.new(name: 'TimeoutMinutes')
330
339
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
331
340
  TokenAlreadyExistsException = Shapes::StructureShape.new(name: 'TokenAlreadyExistsException')
341
+ TotalStackInstancesCount = Shapes::IntegerShape.new(name: 'TotalStackInstancesCount')
332
342
  TransformName = Shapes::StringShape.new(name: 'TransformName')
333
343
  TransformsList = Shapes::ListShape.new(name: 'TransformsList')
334
344
  Type = Shapes::StringShape.new(name: 'Type')
@@ -664,6 +674,14 @@ module Aws::CloudFormation
664
674
  DetectStackResourceDriftOutput.add_member(:stack_resource_drift, Shapes::ShapeRef.new(shape: StackResourceDrift, required: true, location_name: "StackResourceDrift"))
665
675
  DetectStackResourceDriftOutput.struct_class = Types::DetectStackResourceDriftOutput
666
676
 
677
+ DetectStackSetDriftInput.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetNameOrId, required: true, location_name: "StackSetName"))
678
+ DetectStackSetDriftInput.add_member(:operation_preferences, Shapes::ShapeRef.new(shape: StackSetOperationPreferences, location_name: "OperationPreferences"))
679
+ DetectStackSetDriftInput.add_member(:operation_id, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "OperationId", metadata: {"idempotencyToken"=>true}))
680
+ DetectStackSetDriftInput.struct_class = Types::DetectStackSetDriftInput
681
+
682
+ DetectStackSetDriftOutput.add_member(:operation_id, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "OperationId"))
683
+ DetectStackSetDriftOutput.struct_class = Types::DetectStackSetDriftOutput
684
+
667
685
  EstimateTemplateCostInput.add_member(:template_body, Shapes::ShapeRef.new(shape: TemplateBody, location_name: "TemplateBody"))
668
686
  EstimateTemplateCostInput.add_member(:template_url, Shapes::ShapeRef.new(shape: TemplateURL, location_name: "TemplateURL"))
669
687
  EstimateTemplateCostInput.add_member(:parameters, Shapes::ShapeRef.new(shape: Parameters, location_name: "Parameters"))
@@ -1042,6 +1060,8 @@ module Aws::CloudFormation
1042
1060
  StackInstance.add_member(:parameter_overrides, Shapes::ShapeRef.new(shape: Parameters, location_name: "ParameterOverrides"))
1043
1061
  StackInstance.add_member(:status, Shapes::ShapeRef.new(shape: StackInstanceStatus, location_name: "Status"))
1044
1062
  StackInstance.add_member(:status_reason, Shapes::ShapeRef.new(shape: Reason, location_name: "StatusReason"))
1063
+ StackInstance.add_member(:drift_status, Shapes::ShapeRef.new(shape: StackDriftStatus, location_name: "DriftStatus"))
1064
+ StackInstance.add_member(:last_drift_check_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastDriftCheckTimestamp"))
1045
1065
  StackInstance.struct_class = Types::StackInstance
1046
1066
 
1047
1067
  StackInstanceSummaries.member = Shapes::ShapeRef.new(shape: StackInstanceSummary)
@@ -1052,6 +1072,8 @@ module Aws::CloudFormation
1052
1072
  StackInstanceSummary.add_member(:stack_id, Shapes::ShapeRef.new(shape: StackId, location_name: "StackId"))
1053
1073
  StackInstanceSummary.add_member(:status, Shapes::ShapeRef.new(shape: StackInstanceStatus, location_name: "Status"))
1054
1074
  StackInstanceSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: Reason, location_name: "StatusReason"))
1075
+ StackInstanceSummary.add_member(:drift_status, Shapes::ShapeRef.new(shape: StackDriftStatus, location_name: "DriftStatus"))
1076
+ StackInstanceSummary.add_member(:last_drift_check_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastDriftCheckTimestamp"))
1055
1077
  StackInstanceSummary.struct_class = Types::StackInstanceSummary
1056
1078
 
1057
1079
  StackResource.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, location_name: "StackName"))
@@ -1127,8 +1149,19 @@ module Aws::CloudFormation
1127
1149
  StackSet.add_member(:stack_set_arn, Shapes::ShapeRef.new(shape: StackSetARN, location_name: "StackSetARN"))
1128
1150
  StackSet.add_member(:administration_role_arn, Shapes::ShapeRef.new(shape: RoleARN, location_name: "AdministrationRoleARN"))
1129
1151
  StackSet.add_member(:execution_role_name, Shapes::ShapeRef.new(shape: ExecutionRoleName, location_name: "ExecutionRoleName"))
1152
+ StackSet.add_member(:stack_set_drift_detection_details, Shapes::ShapeRef.new(shape: StackSetDriftDetectionDetails, location_name: "StackSetDriftDetectionDetails"))
1130
1153
  StackSet.struct_class = Types::StackSet
1131
1154
 
1155
+ StackSetDriftDetectionDetails.add_member(:drift_status, Shapes::ShapeRef.new(shape: StackSetDriftStatus, location_name: "DriftStatus"))
1156
+ StackSetDriftDetectionDetails.add_member(:drift_detection_status, Shapes::ShapeRef.new(shape: StackSetDriftDetectionStatus, location_name: "DriftDetectionStatus"))
1157
+ StackSetDriftDetectionDetails.add_member(:last_drift_check_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastDriftCheckTimestamp"))
1158
+ StackSetDriftDetectionDetails.add_member(:total_stack_instances_count, Shapes::ShapeRef.new(shape: TotalStackInstancesCount, location_name: "TotalStackInstancesCount"))
1159
+ StackSetDriftDetectionDetails.add_member(:drifted_stack_instances_count, Shapes::ShapeRef.new(shape: DriftedStackInstancesCount, location_name: "DriftedStackInstancesCount"))
1160
+ StackSetDriftDetectionDetails.add_member(:in_sync_stack_instances_count, Shapes::ShapeRef.new(shape: InSyncStackInstancesCount, location_name: "InSyncStackInstancesCount"))
1161
+ StackSetDriftDetectionDetails.add_member(:in_progress_stack_instances_count, Shapes::ShapeRef.new(shape: InProgressStackInstancesCount, location_name: "InProgressStackInstancesCount"))
1162
+ StackSetDriftDetectionDetails.add_member(:failed_stack_instances_count, Shapes::ShapeRef.new(shape: FailedStackInstancesCount, location_name: "FailedStackInstancesCount"))
1163
+ StackSetDriftDetectionDetails.struct_class = Types::StackSetDriftDetectionDetails
1164
+
1132
1165
  StackSetOperation.add_member(:operation_id, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "OperationId"))
1133
1166
  StackSetOperation.add_member(:stack_set_id, Shapes::ShapeRef.new(shape: StackSetId, location_name: "StackSetId"))
1134
1167
  StackSetOperation.add_member(:action, Shapes::ShapeRef.new(shape: StackSetOperationAction, location_name: "Action"))
@@ -1139,6 +1172,7 @@ module Aws::CloudFormation
1139
1172
  StackSetOperation.add_member(:execution_role_name, Shapes::ShapeRef.new(shape: ExecutionRoleName, location_name: "ExecutionRoleName"))
1140
1173
  StackSetOperation.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimestamp"))
1141
1174
  StackSetOperation.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTimestamp"))
1175
+ StackSetOperation.add_member(:stack_set_drift_detection_details, Shapes::ShapeRef.new(shape: StackSetDriftDetectionDetails, location_name: "StackSetDriftDetectionDetails"))
1142
1176
  StackSetOperation.struct_class = Types::StackSetOperation
1143
1177
 
1144
1178
  StackSetOperationPreferences.add_member(:region_order, Shapes::ShapeRef.new(shape: RegionList, location_name: "RegionOrder"))
@@ -1172,6 +1206,8 @@ module Aws::CloudFormation
1172
1206
  StackSetSummary.add_member(:stack_set_id, Shapes::ShapeRef.new(shape: StackSetId, location_name: "StackSetId"))
1173
1207
  StackSetSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
1174
1208
  StackSetSummary.add_member(:status, Shapes::ShapeRef.new(shape: StackSetStatus, location_name: "Status"))
1209
+ StackSetSummary.add_member(:drift_status, Shapes::ShapeRef.new(shape: StackDriftStatus, location_name: "DriftStatus"))
1210
+ StackSetSummary.add_member(:last_drift_check_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastDriftCheckTimestamp"))
1175
1211
  StackSetSummary.struct_class = Types::StackSetSummary
1176
1212
 
1177
1213
  StackStatusFilter.member = Shapes::ShapeRef.new(shape: StackStatus)
@@ -1585,6 +1621,17 @@ module Aws::CloudFormation
1585
1621
  o.output = Shapes::ShapeRef.new(shape: DetectStackResourceDriftOutput)
1586
1622
  end)
1587
1623
 
1624
+ api.add_operation(:detect_stack_set_drift, Seahorse::Model::Operation.new.tap do |o|
1625
+ o.name = "DetectStackSetDrift"
1626
+ o.http_method = "POST"
1627
+ o.http_request_uri = "/"
1628
+ o.input = Shapes::ShapeRef.new(shape: DetectStackSetDriftInput)
1629
+ o.output = Shapes::ShapeRef.new(shape: DetectStackSetDriftOutput)
1630
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
1631
+ o.errors << Shapes::ShapeRef.new(shape: OperationInProgressException)
1632
+ o.errors << Shapes::ShapeRef.new(shape: StackSetNotFoundException)
1633
+ end)
1634
+
1588
1635
  api.add_operation(:estimate_template_cost, Seahorse::Model::Operation.new.tap do |o|
1589
1636
  o.name = "EstimateTemplateCost"
1590
1637
  o.http_method = "POST"
@@ -2673,6 +2673,68 @@ module Aws::CloudFormation
2673
2673
  include Aws::Structure
2674
2674
  end
2675
2675
 
2676
+ # @note When making an API call, you may pass DetectStackSetDriftInput
2677
+ # data as a hash:
2678
+ #
2679
+ # {
2680
+ # stack_set_name: "StackSetNameOrId", # required
2681
+ # operation_preferences: {
2682
+ # region_order: ["Region"],
2683
+ # failure_tolerance_count: 1,
2684
+ # failure_tolerance_percentage: 1,
2685
+ # max_concurrent_count: 1,
2686
+ # max_concurrent_percentage: 1,
2687
+ # },
2688
+ # operation_id: "ClientRequestToken",
2689
+ # }
2690
+ #
2691
+ # @!attribute [rw] stack_set_name
2692
+ # The name of the stack set on which to perform the drift detection
2693
+ # operation.
2694
+ # @return [String]
2695
+ #
2696
+ # @!attribute [rw] operation_preferences
2697
+ # The user-specified preferences for how AWS CloudFormation performs a
2698
+ # stack set operation.
2699
+ #
2700
+ # For more information on maximum concurrent accounts and failure
2701
+ # tolerance, see [Stack set operation options][1].
2702
+ #
2703
+ #
2704
+ #
2705
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options
2706
+ # @return [Types::StackSetOperationPreferences]
2707
+ #
2708
+ # @!attribute [rw] operation_id
2709
+ # *The ID of the stack set operation.*
2710
+ #
2711
+ # **A suitable default value is auto-generated.** You should normally
2712
+ # not need to pass this option.
2713
+ # @return [String]
2714
+ #
2715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDriftInput AWS API Documentation
2716
+ #
2717
+ class DetectStackSetDriftInput < Struct.new(
2718
+ :stack_set_name,
2719
+ :operation_preferences,
2720
+ :operation_id)
2721
+ include Aws::Structure
2722
+ end
2723
+
2724
+ # @!attribute [rw] operation_id
2725
+ # The ID of the drift detection stack set operation.
2726
+ #
2727
+ # you can use this operation id with ` DescribeStackSetOperation ` to
2728
+ # monitor the progress of the drift detection operation.
2729
+ # @return [String]
2730
+ #
2731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDriftOutput AWS API Documentation
2732
+ #
2733
+ class DetectStackSetDriftOutput < Struct.new(
2734
+ :operation_id)
2735
+ include Aws::Structure
2736
+ end
2737
+
2676
2738
  # The input for an EstimateTemplateCost action.
2677
2739
  #
2678
2740
  # @note When making an API call, you may pass EstimateTemplateCostInput
@@ -5179,6 +5241,31 @@ module Aws::CloudFormation
5179
5241
  # this stack instance.
5180
5242
  # @return [String]
5181
5243
  #
5244
+ # @!attribute [rw] drift_status
5245
+ # Status of the stack instance's actual configuration compared to the
5246
+ # expected template and parameter configuration of the stack set to
5247
+ # which it belongs.
5248
+ #
5249
+ # * `DRIFTED`\: The stack differs from the expected template and
5250
+ # parameter configuration of the stack set to which it belongs. A
5251
+ # stack instance is considered to have drifted if one or more of the
5252
+ # resources in the associated stack have drifted.
5253
+ #
5254
+ # * `NOT_CHECKED`\: AWS CloudFormation has not checked if the stack
5255
+ # instance differs from its expected stack set configuration.
5256
+ #
5257
+ # * `IN_SYNC`\: The stack instance's actual configuration matches its
5258
+ # expected stack set configuration.
5259
+ #
5260
+ # * `UNKNOWN`\: This value is reserved for future use.
5261
+ # @return [String]
5262
+ #
5263
+ # @!attribute [rw] last_drift_check_timestamp
5264
+ # Most recent time when CloudFormation performed a drift detection
5265
+ # operation on the stack instance. This value will be `NULL` for any
5266
+ # stack instance on which drift detection has not yet been performed.
5267
+ # @return [Time]
5268
+ #
5182
5269
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackInstance AWS API Documentation
5183
5270
  #
5184
5271
  class StackInstance < Struct.new(
@@ -5188,7 +5275,9 @@ module Aws::CloudFormation
5188
5275
  :stack_id,
5189
5276
  :parameter_overrides,
5190
5277
  :status,
5191
- :status_reason)
5278
+ :status_reason,
5279
+ :drift_status,
5280
+ :last_drift_check_timestamp)
5192
5281
  include Aws::Structure
5193
5282
  end
5194
5283
 
@@ -5243,6 +5332,31 @@ module Aws::CloudFormation
5243
5332
  # instance.
5244
5333
  # @return [String]
5245
5334
  #
5335
+ # @!attribute [rw] drift_status
5336
+ # Status of the stack instance's actual configuration compared to the
5337
+ # expected template and parameter configuration of the stack set to
5338
+ # which it belongs.
5339
+ #
5340
+ # * `DRIFTED`\: The stack differs from the expected template and
5341
+ # parameter configuration of the stack set to which it belongs. A
5342
+ # stack instance is considered to have drifted if one or more of the
5343
+ # resources in the associated stack have drifted.
5344
+ #
5345
+ # * `NOT_CHECKED`\: AWS CloudFormation has not checked if the stack
5346
+ # instance differs from its expected stack set configuration.
5347
+ #
5348
+ # * `IN_SYNC`\: The stack instance's actual configuration matches its
5349
+ # expected stack set configuration.
5350
+ #
5351
+ # * `UNKNOWN`\: This value is reserved for future use.
5352
+ # @return [String]
5353
+ #
5354
+ # @!attribute [rw] last_drift_check_timestamp
5355
+ # Most recent time when CloudFormation performed a drift detection
5356
+ # operation on the stack instance. This value will be `NULL` for any
5357
+ # stack instance on which drift detection has not yet been performed.
5358
+ # @return [Time]
5359
+ #
5246
5360
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackInstanceSummary AWS API Documentation
5247
5361
  #
5248
5362
  class StackInstanceSummary < Struct.new(
@@ -5251,7 +5365,9 @@ module Aws::CloudFormation
5251
5365
  :account,
5252
5366
  :stack_id,
5253
5367
  :status,
5254
- :status_reason)
5368
+ :status_reason,
5369
+ :drift_status,
5370
+ :last_drift_check_timestamp)
5255
5371
  include Aws::Structure
5256
5372
  end
5257
5373
 
@@ -5738,6 +5854,14 @@ module Aws::CloudFormation
5738
5854
  # users and groups can include in their stack sets.
5739
5855
  # @return [String]
5740
5856
  #
5857
+ # @!attribute [rw] stack_set_drift_detection_details
5858
+ # Detailed information about the drift status of the stack set.
5859
+ #
5860
+ # For stack sets, contains information about the last *completed*
5861
+ # drift operation performed on the stack set. Information about drift
5862
+ # operations currently in progress is not included.
5863
+ # @return [Types::StackSetDriftDetectionDetails]
5864
+ #
5741
5865
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSet AWS API Documentation
5742
5866
  #
5743
5867
  class StackSet < Struct.new(
@@ -5751,7 +5875,120 @@ module Aws::CloudFormation
5751
5875
  :tags,
5752
5876
  :stack_set_arn,
5753
5877
  :administration_role_arn,
5754
- :execution_role_name)
5878
+ :execution_role_name,
5879
+ :stack_set_drift_detection_details)
5880
+ include Aws::Structure
5881
+ end
5882
+
5883
+ # Detailed information about the drift status of the stack set.
5884
+ #
5885
+ # For stack sets, contains information about the last *completed* drift
5886
+ # operation performed on the stack set. Information about drift
5887
+ # operations in-progress is not included.
5888
+ #
5889
+ # For stack set operations, includes information about drift operations
5890
+ # currently being performed on the stack set.
5891
+ #
5892
+ # For more information, see [Detecting Unmanaged Changes in Stack
5893
+ # Sets][1] in the *AWS CloudFormation User Guide*.
5894
+ #
5895
+ #
5896
+ #
5897
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html
5898
+ #
5899
+ # @!attribute [rw] drift_status
5900
+ # Status of the stack set's actual configuration compared to its
5901
+ # expected template and parameter configuration. A stack set is
5902
+ # considered to have drifted if one or more of its stack instances
5903
+ # have drifted from their expected template and parameter
5904
+ # configuration.
5905
+ #
5906
+ # * `DRIFTED`\: One or more of the stack instances belonging to the
5907
+ # stack set stack differs from the expected template and parameter
5908
+ # configuration. A stack instance is considered to have drifted if
5909
+ # one or more of the resources in the associated stack have drifted.
5910
+ #
5911
+ # * `NOT_CHECKED`\: AWS CloudFormation has not checked the stack set
5912
+ # for drift.
5913
+ #
5914
+ # * `IN_SYNC`\: All of the stack instances belonging to the stack set
5915
+ # stack match from the expected template and parameter
5916
+ # configuration.
5917
+ # @return [String]
5918
+ #
5919
+ # @!attribute [rw] drift_detection_status
5920
+ # The status of the stack set drift detection operation.
5921
+ #
5922
+ # * `COMPLETED`\: The drift detection operation completed without
5923
+ # failing on any stack instances.
5924
+ #
5925
+ # * `FAILED`\: The drift detection operation exceeded the specified
5926
+ # failure tolerance.
5927
+ #
5928
+ # * `PARTIAL_SUCCESS`\: The drift detection operation completed
5929
+ # without exceeding the failure tolerance for the operation.
5930
+ #
5931
+ # * `IN_PROGRESS`\: The drift detection operation is currently being
5932
+ # performed.
5933
+ #
5934
+ # * `STOPPED`\: The user has cancelled the drift detection operation.
5935
+ # @return [String]
5936
+ #
5937
+ # @!attribute [rw] last_drift_check_timestamp
5938
+ # Most recent time when CloudFormation performed a drift detection
5939
+ # operation on the stack set. This value will be `NULL` for any stack
5940
+ # set on which drift detection has not yet been performed.
5941
+ # @return [Time]
5942
+ #
5943
+ # @!attribute [rw] total_stack_instances_count
5944
+ # The total number of stack instances belonging to this stack set.
5945
+ #
5946
+ # The total number of stack instances is equal to the total of:
5947
+ #
5948
+ # * Stack instances that match the stack set configuration.
5949
+ #
5950
+ # * Stack instances that have drifted from the stack set
5951
+ # configuration.
5952
+ #
5953
+ # * Stack instances where the drift detection operation has failed.
5954
+ #
5955
+ # * Stack instances currently being checked for drift.
5956
+ # @return [Integer]
5957
+ #
5958
+ # @!attribute [rw] drifted_stack_instances_count
5959
+ # The number of stack instances that have drifted from the expected
5960
+ # template and parameter configuration of the stack set. A stack
5961
+ # instance is considered to have drifted if one or more of the
5962
+ # resources in the associated stack do not match their expected
5963
+ # configuration.
5964
+ # @return [Integer]
5965
+ #
5966
+ # @!attribute [rw] in_sync_stack_instances_count
5967
+ # The number of stack instances which match the expected template and
5968
+ # parameter configuration of the stack set.
5969
+ # @return [Integer]
5970
+ #
5971
+ # @!attribute [rw] in_progress_stack_instances_count
5972
+ # The number of stack instances that are currently being checked for
5973
+ # drift.
5974
+ # @return [Integer]
5975
+ #
5976
+ # @!attribute [rw] failed_stack_instances_count
5977
+ # The number of stack instances for which the drift detection
5978
+ # operation failed.
5979
+ # @return [Integer]
5980
+ #
5981
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSetDriftDetectionDetails AWS API Documentation
5982
+ #
5983
+ class StackSetDriftDetectionDetails < Struct.new(
5984
+ :drift_status,
5985
+ :drift_detection_status,
5986
+ :last_drift_check_timestamp,
5987
+ :total_stack_instances_count,
5988
+ :drifted_stack_instances_count,
5989
+ :in_sync_stack_instances_count,
5990
+ :in_progress_stack_instances_count,
5991
+ :failed_stack_instances_count)
5755
5992
  include Aws::Structure
5756
5993
  end
5757
5994
 
@@ -5847,6 +6084,22 @@ module Aws::CloudFormation
5847
6084
  # account or region.
5848
6085
  # @return [Time]
5849
6086
  #
6087
+ # @!attribute [rw] stack_set_drift_detection_details
6088
+ # Detailed information about the drift status of the stack set. This
6089
+ # includes information about drift operations currently being
6090
+ # performed on the stack set.
6091
+ #
6092
+ # this information will only be present for stack set operations whose
6093
+ # `Action` type is `DETECT_DRIFT`.
6094
+ #
6095
+ # For more information, see [Detecting Unmanaged Changes in Stack
6096
+ # Sets][1] in the AWS CloudFormation User Guide.
6097
+ #
6098
+ #
6099
+ #
6100
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html
6101
+ # @return [Types::StackSetDriftDetectionDetails]
6102
+ #
5850
6103
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSetOperation AWS API Documentation
5851
6104
  #
5852
6105
  class StackSetOperation < Struct.new(
@@ -5859,7 +6112,8 @@ module Aws::CloudFormation
5859
6112
  :administration_role_arn,
5860
6113
  :execution_role_name,
5861
6114
  :creation_timestamp,
5862
- :end_timestamp)
6115
+ :end_timestamp,
6116
+ :stack_set_drift_detection_details)
5863
6117
  include Aws::Structure
5864
6118
  end
5865
6119
 
@@ -6102,13 +6356,43 @@ module Aws::CloudFormation
6102
6356
  # The status of the stack set.
6103
6357
  # @return [String]
6104
6358
  #
6359
+ # @!attribute [rw] drift_status
6360
+ # Status of the stack set's actual configuration compared to its
6361
+ # expected template and parameter configuration. A stack set is
6362
+ # considered to have drifted if one or more of its stack instances
6363
+ # have drifted from their expected template and parameter
6364
+ # configuration.
6365
+ #
6366
+ # * `DRIFTED`\: One or more of the stack instances belonging to the
6367
+ # stack set stack differs from the expected template and parameter
6368
+ # configuration. A stack instance is considered to have drifted if
6369
+ # one or more of the resources in the associated stack have drifted.
6370
+ #
6371
+ # * `NOT_CHECKED`\: AWS CloudFormation has not checked the stack set
6372
+ # for drift.
6373
+ #
6374
+ # * `IN_SYNC`\: All of the stack instances belonging to the stack set
6375
+ # stack match from the expected template and parameter
6376
+ # configuration.
6377
+ #
6378
+ # * `UNKNOWN`\: This value is reserved for future use.
6379
+ # @return [String]
6380
+ #
6381
+ # @!attribute [rw] last_drift_check_timestamp
6382
+ # Most recent time when CloudFormation performed a drift detection
6383
+ # operation on the stack set. This value will be `NULL` for any stack
6384
+ # set on which drift detection has not yet been performed.
6385
+ # @return [Time]
6386
+ #
6105
6387
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSetSummary AWS API Documentation
6106
6388
  #
6107
6389
  class StackSetSummary < Struct.new(
6108
6390
  :stack_set_name,
6109
6391
  :stack_set_id,
6110
6392
  :description,
6111
- :status)
6393
+ :status,
6394
+ :drift_status,
6395
+ :last_drift_check_timestamp)
6112
6396
  include Aws::Structure
6113
6397
  end
6114
6398
 
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.28.0
4
+ version: 1.29.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: 2019-11-18 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core