aws-sdk-cloudformation 1.70.0 → 1.72.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,200 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::CloudFormation
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::CloudFormation::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::CloudFormation::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::CloudFormation::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :activate_type
60
+ Aws::CloudFormation::Endpoints::ActivateType.build(context)
61
+ when :batch_describe_type_configurations
62
+ Aws::CloudFormation::Endpoints::BatchDescribeTypeConfigurations.build(context)
63
+ when :cancel_update_stack
64
+ Aws::CloudFormation::Endpoints::CancelUpdateStack.build(context)
65
+ when :continue_update_rollback
66
+ Aws::CloudFormation::Endpoints::ContinueUpdateRollback.build(context)
67
+ when :create_change_set
68
+ Aws::CloudFormation::Endpoints::CreateChangeSet.build(context)
69
+ when :create_stack
70
+ Aws::CloudFormation::Endpoints::CreateStack.build(context)
71
+ when :create_stack_instances
72
+ Aws::CloudFormation::Endpoints::CreateStackInstances.build(context)
73
+ when :create_stack_set
74
+ Aws::CloudFormation::Endpoints::CreateStackSet.build(context)
75
+ when :deactivate_type
76
+ Aws::CloudFormation::Endpoints::DeactivateType.build(context)
77
+ when :delete_change_set
78
+ Aws::CloudFormation::Endpoints::DeleteChangeSet.build(context)
79
+ when :delete_stack
80
+ Aws::CloudFormation::Endpoints::DeleteStack.build(context)
81
+ when :delete_stack_instances
82
+ Aws::CloudFormation::Endpoints::DeleteStackInstances.build(context)
83
+ when :delete_stack_set
84
+ Aws::CloudFormation::Endpoints::DeleteStackSet.build(context)
85
+ when :deregister_type
86
+ Aws::CloudFormation::Endpoints::DeregisterType.build(context)
87
+ when :describe_account_limits
88
+ Aws::CloudFormation::Endpoints::DescribeAccountLimits.build(context)
89
+ when :describe_change_set
90
+ Aws::CloudFormation::Endpoints::DescribeChangeSet.build(context)
91
+ when :describe_change_set_hooks
92
+ Aws::CloudFormation::Endpoints::DescribeChangeSetHooks.build(context)
93
+ when :describe_publisher
94
+ Aws::CloudFormation::Endpoints::DescribePublisher.build(context)
95
+ when :describe_stack_drift_detection_status
96
+ Aws::CloudFormation::Endpoints::DescribeStackDriftDetectionStatus.build(context)
97
+ when :describe_stack_events
98
+ Aws::CloudFormation::Endpoints::DescribeStackEvents.build(context)
99
+ when :describe_stack_instance
100
+ Aws::CloudFormation::Endpoints::DescribeStackInstance.build(context)
101
+ when :describe_stack_resource
102
+ Aws::CloudFormation::Endpoints::DescribeStackResource.build(context)
103
+ when :describe_stack_resource_drifts
104
+ Aws::CloudFormation::Endpoints::DescribeStackResourceDrifts.build(context)
105
+ when :describe_stack_resources
106
+ Aws::CloudFormation::Endpoints::DescribeStackResources.build(context)
107
+ when :describe_stack_set
108
+ Aws::CloudFormation::Endpoints::DescribeStackSet.build(context)
109
+ when :describe_stack_set_operation
110
+ Aws::CloudFormation::Endpoints::DescribeStackSetOperation.build(context)
111
+ when :describe_stacks
112
+ Aws::CloudFormation::Endpoints::DescribeStacks.build(context)
113
+ when :describe_type
114
+ Aws::CloudFormation::Endpoints::DescribeType.build(context)
115
+ when :describe_type_registration
116
+ Aws::CloudFormation::Endpoints::DescribeTypeRegistration.build(context)
117
+ when :detect_stack_drift
118
+ Aws::CloudFormation::Endpoints::DetectStackDrift.build(context)
119
+ when :detect_stack_resource_drift
120
+ Aws::CloudFormation::Endpoints::DetectStackResourceDrift.build(context)
121
+ when :detect_stack_set_drift
122
+ Aws::CloudFormation::Endpoints::DetectStackSetDrift.build(context)
123
+ when :estimate_template_cost
124
+ Aws::CloudFormation::Endpoints::EstimateTemplateCost.build(context)
125
+ when :execute_change_set
126
+ Aws::CloudFormation::Endpoints::ExecuteChangeSet.build(context)
127
+ when :get_stack_policy
128
+ Aws::CloudFormation::Endpoints::GetStackPolicy.build(context)
129
+ when :get_template
130
+ Aws::CloudFormation::Endpoints::GetTemplate.build(context)
131
+ when :get_template_summary
132
+ Aws::CloudFormation::Endpoints::GetTemplateSummary.build(context)
133
+ when :import_stacks_to_stack_set
134
+ Aws::CloudFormation::Endpoints::ImportStacksToStackSet.build(context)
135
+ when :list_change_sets
136
+ Aws::CloudFormation::Endpoints::ListChangeSets.build(context)
137
+ when :list_exports
138
+ Aws::CloudFormation::Endpoints::ListExports.build(context)
139
+ when :list_imports
140
+ Aws::CloudFormation::Endpoints::ListImports.build(context)
141
+ when :list_stack_instances
142
+ Aws::CloudFormation::Endpoints::ListStackInstances.build(context)
143
+ when :list_stack_resources
144
+ Aws::CloudFormation::Endpoints::ListStackResources.build(context)
145
+ when :list_stack_set_operation_results
146
+ Aws::CloudFormation::Endpoints::ListStackSetOperationResults.build(context)
147
+ when :list_stack_set_operations
148
+ Aws::CloudFormation::Endpoints::ListStackSetOperations.build(context)
149
+ when :list_stack_sets
150
+ Aws::CloudFormation::Endpoints::ListStackSets.build(context)
151
+ when :list_stacks
152
+ Aws::CloudFormation::Endpoints::ListStacks.build(context)
153
+ when :list_type_registrations
154
+ Aws::CloudFormation::Endpoints::ListTypeRegistrations.build(context)
155
+ when :list_type_versions
156
+ Aws::CloudFormation::Endpoints::ListTypeVersions.build(context)
157
+ when :list_types
158
+ Aws::CloudFormation::Endpoints::ListTypes.build(context)
159
+ when :publish_type
160
+ Aws::CloudFormation::Endpoints::PublishType.build(context)
161
+ when :record_handler_progress
162
+ Aws::CloudFormation::Endpoints::RecordHandlerProgress.build(context)
163
+ when :register_publisher
164
+ Aws::CloudFormation::Endpoints::RegisterPublisher.build(context)
165
+ when :register_type
166
+ Aws::CloudFormation::Endpoints::RegisterType.build(context)
167
+ when :rollback_stack
168
+ Aws::CloudFormation::Endpoints::RollbackStack.build(context)
169
+ when :set_stack_policy
170
+ Aws::CloudFormation::Endpoints::SetStackPolicy.build(context)
171
+ when :set_type_configuration
172
+ Aws::CloudFormation::Endpoints::SetTypeConfiguration.build(context)
173
+ when :set_type_default_version
174
+ Aws::CloudFormation::Endpoints::SetTypeDefaultVersion.build(context)
175
+ when :signal_resource
176
+ Aws::CloudFormation::Endpoints::SignalResource.build(context)
177
+ when :stop_stack_set_operation
178
+ Aws::CloudFormation::Endpoints::StopStackSetOperation.build(context)
179
+ when :test_type
180
+ Aws::CloudFormation::Endpoints::TestType.build(context)
181
+ when :update_stack
182
+ Aws::CloudFormation::Endpoints::UpdateStack.build(context)
183
+ when :update_stack_instances
184
+ Aws::CloudFormation::Endpoints::UpdateStackInstances.build(context)
185
+ when :update_stack_set
186
+ Aws::CloudFormation::Endpoints::UpdateStackSet.build(context)
187
+ when :update_termination_protection
188
+ Aws::CloudFormation::Endpoints::UpdateTerminationProtection.build(context)
189
+ when :validate_template
190
+ Aws::CloudFormation::Endpoints::ValidateTemplate.build(context)
191
+ end
192
+ end
193
+ end
194
+
195
+ def add_handlers(handlers, _config)
196
+ handlers.add(Handler, step: :build, priority: 75)
197
+ end
198
+ end
199
+ end
200
+ end
@@ -2295,8 +2295,8 @@ module Aws::CloudFormation
2295
2295
  # `Accounts` parameter. This enables user to avoid certain accounts
2296
2296
  # within an OU such as suspended accounts.
2297
2297
  #
2298
- # * `UNION`\: (default value) StackSets includes additional accounts
2299
- # deployment targets.
2298
+ # * `UNION`\: StackSets includes additional accounts deployment
2299
+ # targets.
2300
2300
  #
2301
2301
  # This is the default value if `AccountFilterType` is not provided.
2302
2302
  # This enables user to update an entire OU and individual accounts
@@ -4708,7 +4708,7 @@ module Aws::CloudFormation
4708
4708
  # max_results: 1,
4709
4709
  # filters: [
4710
4710
  # {
4711
- # name: "DETAILED_STATUS", # accepts DETAILED_STATUS
4711
+ # name: "DETAILED_STATUS", # accepts DETAILED_STATUS, LAST_OPERATION_ID
4712
4712
  # values: "StackInstanceFilterValues",
4713
4713
  # },
4714
4714
  # ],
@@ -4739,7 +4739,7 @@ module Aws::CloudFormation
4739
4739
  # @return [Integer]
4740
4740
  #
4741
4741
  # @!attribute [rw] filters
4742
- # The status that stack instances are filtered by.
4742
+ # The filter to apply to stack instances
4743
4743
  # @return [Array<Types::StackInstanceFilter>]
4744
4744
  #
4745
4745
  # @!attribute [rw] stack_instance_account
@@ -4876,6 +4876,12 @@ module Aws::CloudFormation
4876
4876
  # next_token: "NextToken",
4877
4877
  # max_results: 1,
4878
4878
  # call_as: "SELF", # accepts SELF, DELEGATED_ADMIN
4879
+ # filters: [
4880
+ # {
4881
+ # name: "OPERATION_RESULT_STATUS", # accepts OPERATION_RESULT_STATUS
4882
+ # values: "OperationResultFilterValues",
4883
+ # },
4884
+ # ],
4879
4885
  # }
4880
4886
  #
4881
4887
  # @!attribute [rw] stack_set_name
@@ -4927,6 +4933,10 @@ module Aws::CloudFormation
4927
4933
  # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html
4928
4934
  # @return [String]
4929
4935
  #
4936
+ # @!attribute [rw] filters
4937
+ # The filter to apply to operation results.
4938
+ # @return [Array<Types::OperationResultFilter>]
4939
+ #
4930
4940
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResultsInput AWS API Documentation
4931
4941
  #
4932
4942
  class ListStackSetOperationResultsInput < Struct.new(
@@ -4934,7 +4944,8 @@ module Aws::CloudFormation
4934
4944
  :operation_id,
4935
4945
  :next_token,
4936
4946
  :max_results,
4937
- :call_as)
4947
+ :call_as,
4948
+ :filters)
4938
4949
  SENSITIVE = []
4939
4950
  include Aws::Structure
4940
4951
  end
@@ -5667,6 +5678,33 @@ module Aws::CloudFormation
5667
5678
  #
5668
5679
  class OperationNotFoundException < Aws::EmptyStructure; end
5669
5680
 
5681
+ # The status that operation results are filtered by.
5682
+ #
5683
+ # @note When making an API call, you may pass OperationResultFilter
5684
+ # data as a hash:
5685
+ #
5686
+ # {
5687
+ # name: "OPERATION_RESULT_STATUS", # accepts OPERATION_RESULT_STATUS
5688
+ # values: "OperationResultFilterValues",
5689
+ # }
5690
+ #
5691
+ # @!attribute [rw] name
5692
+ # The type of filter to apply.
5693
+ # @return [String]
5694
+ #
5695
+ # @!attribute [rw] values
5696
+ # The value to filter by.
5697
+ # @return [String]
5698
+ #
5699
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/OperationResultFilter AWS API Documentation
5700
+ #
5701
+ class OperationResultFilter < Struct.new(
5702
+ :name,
5703
+ :values)
5704
+ SENSITIVE = []
5705
+ include Aws::Structure
5706
+ end
5707
+
5670
5708
  # Error reserved for use by the [CloudFormation CLI][1]. CloudFormation
5671
5709
  # doesn't return this error to users.
5672
5710
  #
@@ -7435,6 +7473,11 @@ module Aws::CloudFormation
7435
7473
  # stack instance on which drift detection hasn't yet been performed.
7436
7474
  # @return [Time]
7437
7475
  #
7476
+ # @!attribute [rw] last_operation_id
7477
+ # The last unique ID of a StackSet operation performed on a stack
7478
+ # instance.
7479
+ # @return [String]
7480
+ #
7438
7481
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackInstance AWS API Documentation
7439
7482
  #
7440
7483
  class StackInstance < Struct.new(
@@ -7448,7 +7491,8 @@ module Aws::CloudFormation
7448
7491
  :status_reason,
7449
7492
  :organizational_unit_id,
7450
7493
  :drift_status,
7451
- :last_drift_check_timestamp)
7494
+ :last_drift_check_timestamp,
7495
+ :last_operation_id)
7452
7496
  SENSITIVE = []
7453
7497
  include Aws::Structure
7454
7498
  end
@@ -7491,13 +7535,13 @@ module Aws::CloudFormation
7491
7535
  include Aws::Structure
7492
7536
  end
7493
7537
 
7494
- # The status that stack instances are filtered by.
7538
+ # The filter to apply to stack instances
7495
7539
  #
7496
7540
  # @note When making an API call, you may pass StackInstanceFilter
7497
7541
  # data as a hash:
7498
7542
  #
7499
7543
  # {
7500
- # name: "DETAILED_STATUS", # accepts DETAILED_STATUS
7544
+ # name: "DETAILED_STATUS", # accepts DETAILED_STATUS, LAST_OPERATION_ID
7501
7545
  # values: "StackInstanceFilterValues",
7502
7546
  # }
7503
7547
  #
@@ -7614,6 +7658,11 @@ module Aws::CloudFormation
7614
7658
  # stack instance on which drift detection hasn't yet been performed.
7615
7659
  # @return [Time]
7616
7660
  #
7661
+ # @!attribute [rw] last_operation_id
7662
+ # The last unique ID of a StackSet operation performed on a stack
7663
+ # instance.
7664
+ # @return [String]
7665
+ #
7617
7666
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackInstanceSummary AWS API Documentation
7618
7667
  #
7619
7668
  class StackInstanceSummary < Struct.new(
@@ -7626,7 +7675,8 @@ module Aws::CloudFormation
7626
7675
  :stack_instance_status,
7627
7676
  :organizational_unit_id,
7628
7677
  :drift_status,
7629
- :last_drift_check_timestamp)
7678
+ :last_drift_check_timestamp,
7679
+ :last_operation_id)
7630
7680
  SENSITIVE = []
7631
7681
  include Aws::Structure
7632
7682
  end
@@ -8480,6 +8530,10 @@ module Aws::CloudFormation
8480
8530
  # The status of the operation in details.
8481
8531
  # @return [String]
8482
8532
  #
8533
+ # @!attribute [rw] status_details
8534
+ # Detailed information about the StackSet operation.
8535
+ # @return [Types::StackSetOperationStatusDetails]
8536
+ #
8483
8537
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSetOperation AWS API Documentation
8484
8538
  #
8485
8539
  class StackSetOperation < Struct.new(
@@ -8495,7 +8549,8 @@ module Aws::CloudFormation
8495
8549
  :end_timestamp,
8496
8550
  :deployment_targets,
8497
8551
  :stack_set_drift_detection_details,
8498
- :status_reason)
8552
+ :status_reason,
8553
+ :status_details)
8499
8554
  SENSITIVE = []
8500
8555
  include Aws::Structure
8501
8556
  end
@@ -8680,6 +8735,21 @@ module Aws::CloudFormation
8680
8735
  include Aws::Structure
8681
8736
  end
8682
8737
 
8738
+ # Detailed information about the StackSet operation.
8739
+ #
8740
+ # @!attribute [rw] failed_stack_instances_count
8741
+ # The number of stack instances for which the StackSet operation
8742
+ # failed.
8743
+ # @return [Integer]
8744
+ #
8745
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSetOperationStatusDetails AWS API Documentation
8746
+ #
8747
+ class StackSetOperationStatusDetails < Struct.new(
8748
+ :failed_stack_instances_count)
8749
+ SENSITIVE = []
8750
+ include Aws::Structure
8751
+ end
8752
+
8683
8753
  # The structures that contain summary information about the specified
8684
8754
  # operation.
8685
8755
  #
@@ -8747,6 +8817,22 @@ module Aws::CloudFormation
8747
8817
  # The status of the operation in details.
8748
8818
  # @return [String]
8749
8819
  #
8820
+ # @!attribute [rw] status_details
8821
+ # Detailed information about the stack set operation.
8822
+ # @return [Types::StackSetOperationStatusDetails]
8823
+ #
8824
+ # @!attribute [rw] operation_preferences
8825
+ # The user-specified preferences for how CloudFormation performs a
8826
+ # stack set operation.
8827
+ #
8828
+ # For more information about maximum concurrent accounts and failure
8829
+ # tolerance, see [Stack set operation options][1].
8830
+ #
8831
+ #
8832
+ #
8833
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options
8834
+ # @return [Types::StackSetOperationPreferences]
8835
+ #
8750
8836
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StackSetOperationSummary AWS API Documentation
8751
8837
  #
8752
8838
  class StackSetOperationSummary < Struct.new(
@@ -8755,7 +8841,9 @@ module Aws::CloudFormation
8755
8841
  :status,
8756
8842
  :creation_timestamp,
8757
8843
  :end_timestamp,
8758
- :status_reason)
8844
+ :status_reason,
8845
+ :status_details,
8846
+ :operation_preferences)
8759
8847
  SENSITIVE = []
8760
8848
  include Aws::Structure
8761
8849
  end
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-cloudformation/types'
15
15
  require_relative 'aws-sdk-cloudformation/client_api'
16
+ require_relative 'aws-sdk-cloudformation/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-cloudformation/client'
17
18
  require_relative 'aws-sdk-cloudformation/errors'
18
19
  require_relative 'aws-sdk-cloudformation/waiters'
19
20
  require_relative 'aws-sdk-cloudformation/resource'
21
+ require_relative 'aws-sdk-cloudformation/endpoint_parameters'
22
+ require_relative 'aws-sdk-cloudformation/endpoint_provider'
23
+ require_relative 'aws-sdk-cloudformation/endpoints'
20
24
  require_relative 'aws-sdk-cloudformation/event'
21
25
  require_relative 'aws-sdk-cloudformation/stack'
22
26
  require_relative 'aws-sdk-cloudformation/stack_resource'
@@ -53,6 +57,6 @@ require_relative 'aws-sdk-cloudformation/customizations'
53
57
  # @!group service
54
58
  module Aws::CloudFormation
55
59
 
56
- GEM_VERSION = '1.70.0'
60
+ GEM_VERSION = '1.72.0'
57
61
 
58
62
  end
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.70.0
4
+ version: 1.72.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: 2022-07-06 00:00:00.000000000 Z
11
+ date: 2022-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,8 +59,12 @@ files:
59
59
  - lib/aws-sdk-cloudformation/client.rb
60
60
  - lib/aws-sdk-cloudformation/client_api.rb
61
61
  - lib/aws-sdk-cloudformation/customizations.rb
62
+ - lib/aws-sdk-cloudformation/endpoint_parameters.rb
63
+ - lib/aws-sdk-cloudformation/endpoint_provider.rb
64
+ - lib/aws-sdk-cloudformation/endpoints.rb
62
65
  - lib/aws-sdk-cloudformation/errors.rb
63
66
  - lib/aws-sdk-cloudformation/event.rb
67
+ - lib/aws-sdk-cloudformation/plugins/endpoints.rb
64
68
  - lib/aws-sdk-cloudformation/resource.rb
65
69
  - lib/aws-sdk-cloudformation/stack.rb
66
70
  - lib/aws-sdk-cloudformation/stack_resource.rb