aws-sdk-cloudformation 1.77.0 → 1.79.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,20 @@
11
11
  module Aws::CloudFormation
12
12
  module Endpoints
13
13
 
14
+ class ActivateOrganizationsAccess
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::CloudFormation::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
14
28
  class ActivateType
15
29
  def self.build(context)
16
30
  unless context.config.regional_endpoint
@@ -123,6 +137,20 @@ module Aws::CloudFormation
123
137
  end
124
138
  end
125
139
 
140
+ class DeactivateOrganizationsAccess
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::CloudFormation::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
126
154
  class DeactivateType
127
155
  def self.build(context)
128
156
  unless context.config.regional_endpoint
@@ -249,6 +277,20 @@ module Aws::CloudFormation
249
277
  end
250
278
  end
251
279
 
280
+ class DescribeOrganizationsAccess
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::CloudFormation::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
252
294
  class DescribePublisher
253
295
  def self.build(context)
254
296
  unless context.config.regional_endpoint
@@ -275,7 +275,9 @@ module Aws::CloudFormation
275
275
  :retry
276
276
  end
277
277
  end
278
- Aws::Waiters::Waiter.new(options).wait({})
278
+ Aws::Plugins::UserAgent.feature('resource') do
279
+ Aws::Waiters::Waiter.new(options).wait({})
280
+ end
279
281
  end
280
282
 
281
283
  # @deprecated
@@ -56,6 +56,8 @@ module Aws::CloudFormation
56
56
 
57
57
  def parameters_for_operation(context)
58
58
  case context.operation_name
59
+ when :activate_organizations_access
60
+ Aws::CloudFormation::Endpoints::ActivateOrganizationsAccess.build(context)
59
61
  when :activate_type
60
62
  Aws::CloudFormation::Endpoints::ActivateType.build(context)
61
63
  when :batch_describe_type_configurations
@@ -72,6 +74,8 @@ module Aws::CloudFormation
72
74
  Aws::CloudFormation::Endpoints::CreateStackInstances.build(context)
73
75
  when :create_stack_set
74
76
  Aws::CloudFormation::Endpoints::CreateStackSet.build(context)
77
+ when :deactivate_organizations_access
78
+ Aws::CloudFormation::Endpoints::DeactivateOrganizationsAccess.build(context)
75
79
  when :deactivate_type
76
80
  Aws::CloudFormation::Endpoints::DeactivateType.build(context)
77
81
  when :delete_change_set
@@ -90,6 +94,8 @@ module Aws::CloudFormation
90
94
  Aws::CloudFormation::Endpoints::DescribeChangeSet.build(context)
91
95
  when :describe_change_set_hooks
92
96
  Aws::CloudFormation::Endpoints::DescribeChangeSetHooks.build(context)
97
+ when :describe_organizations_access
98
+ Aws::CloudFormation::Endpoints::DescribeOrganizationsAccess.build(context)
93
99
  when :describe_publisher
94
100
  Aws::CloudFormation::Endpoints::DescribePublisher.build(context)
95
101
  when :describe_stack_drift_detection_status
@@ -317,7 +317,9 @@ module Aws::CloudFormation
317
317
  # [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
318
318
  # @return [Stack]
319
319
  def create_stack(options = {})
320
- @client.create_stack(options)
320
+ Aws::Plugins::UserAgent.feature('resource') do
321
+ @client.create_stack(options)
322
+ end
321
323
  Stack.new(
322
324
  name: options[:stack_name],
323
325
  client: @client
@@ -351,6 +353,21 @@ module Aws::CloudFormation
351
353
  # })
352
354
  # @param [Hash] options ({})
353
355
  # @option options [String] :stack_name
356
+ # <note markdown="1"> If you don't pass a parameter to `StackName`, the API returns a
357
+ # response that describes all resources in the account. This requires
358
+ # `ListStacks` and `DescribeStacks` permissions.
359
+ #
360
+ # The IAM policy below can be added to IAM policies when you want to
361
+ # limit resource-level permissions and avoid returning a response when
362
+ # no parameter is sent in the request:
363
+ #
364
+ # \\\{ "Version": "2012-10-17", "Statement": \[\\\{ "Effect":
365
+ # "Deny", "Action": "cloudformation:DescribeStacks",
366
+ # "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" \\}\]
367
+ # \\}
368
+ #
369
+ # </note>
370
+ #
354
371
  # The name or the unique stack ID that's associated with the stack,
355
372
  # which aren't always interchangeable:
356
373
  #
@@ -363,7 +380,9 @@ module Aws::CloudFormation
363
380
  # @return [Stack::Collection]
364
381
  def stacks(options = {})
365
382
  batches = Enumerator.new do |y|
366
- resp = @client.describe_stacks(options)
383
+ resp = Aws::Plugins::UserAgent.feature('resource') do
384
+ @client.describe_stacks(options)
385
+ end
367
386
  resp.each_page do |page|
368
387
  batch = []
369
388
  page.data.stacks.each do |s|
@@ -195,7 +195,7 @@ module Aws::CloudFormation
195
195
  end
196
196
 
197
197
  # Information about whether a stack's actual configuration differs, or
198
- # has *drifted*, from it's expected configuration, as defined in the
198
+ # has *drifted*, from its expected configuration, as defined in the
199
199
  # stack template and any values specified as template parameters. For
200
200
  # more information, see [Detecting Unregulated Configuration Changes to
201
201
  # Stacks and Resources][1].
@@ -222,7 +222,9 @@ module Aws::CloudFormation
222
222
  #
223
223
  # @return [self]
224
224
  def load
225
- resp = @client.describe_stacks(stack_name: @name)
225
+ resp = Aws::Plugins::UserAgent.feature('resource') do
226
+ @client.describe_stacks(stack_name: @name)
227
+ end
226
228
  @data = resp.stacks[0]
227
229
  self
228
230
  end
@@ -267,7 +269,9 @@ module Aws::CloudFormation
267
269
  options, params = separate_params_and_options(options)
268
270
  waiter = Waiters::StackExists.new(options)
269
271
  yield_waiter_and_warn(waiter, &block) if block_given?
270
- waiter.wait(params.merge(stack_name: @name))
272
+ Aws::Plugins::UserAgent.feature('resource') do
273
+ waiter.wait(params.merge(stack_name: @name))
274
+ end
271
275
  Stack.new({
272
276
  name: @name,
273
277
  client: @client
@@ -368,7 +372,9 @@ module Aws::CloudFormation
368
372
  :retry
369
373
  end
370
374
  end
371
- Aws::Waiters::Waiter.new(options).wait({})
375
+ Aws::Plugins::UserAgent.feature('resource') do
376
+ Aws::Waiters::Waiter.new(options).wait({})
377
+ end
372
378
  end
373
379
 
374
380
  # @!group Actions
@@ -388,7 +394,9 @@ module Aws::CloudFormation
388
394
  # @return [EmptyStructure]
389
395
  def cancel_update(options = {})
390
396
  options = options.merge(stack_name: @name)
391
- resp = @client.cancel_update_stack(options)
397
+ resp = Aws::Plugins::UserAgent.feature('resource') do
398
+ @client.cancel_update_stack(options)
399
+ end
392
400
  resp.data
393
401
  end
394
402
 
@@ -665,7 +673,9 @@ module Aws::CloudFormation
665
673
  # @return [Types::CreateStackOutput]
666
674
  def create(options = {})
667
675
  options = options.merge(stack_name: @name)
668
- resp = @client.create_stack(options)
676
+ resp = Aws::Plugins::UserAgent.feature('resource') do
677
+ @client.create_stack(options)
678
+ end
669
679
  resp.data
670
680
  end
671
681
 
@@ -718,7 +728,9 @@ module Aws::CloudFormation
718
728
  # @return [EmptyStructure]
719
729
  def delete(options = {})
720
730
  options = options.merge(stack_name: @name)
721
- resp = @client.delete_stack(options)
731
+ resp = Aws::Plugins::UserAgent.feature('resource') do
732
+ @client.delete_stack(options)
733
+ end
722
734
  resp.data
723
735
  end
724
736
 
@@ -1000,7 +1012,9 @@ module Aws::CloudFormation
1000
1012
  # @return [Types::UpdateStackOutput]
1001
1013
  def update(options = {})
1002
1014
  options = options.merge(stack_name: @name)
1003
- resp = @client.update_stack(options)
1015
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1016
+ @client.update_stack(options)
1017
+ end
1004
1018
  resp.data
1005
1019
  end
1006
1020
 
@@ -1014,7 +1028,9 @@ module Aws::CloudFormation
1014
1028
  def events(options = {})
1015
1029
  batches = Enumerator.new do |y|
1016
1030
  options = options.merge(stack_name: @name)
1017
- resp = @client.describe_stack_events(options)
1031
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1032
+ @client.describe_stack_events(options)
1033
+ end
1018
1034
  resp.each_page do |page|
1019
1035
  batch = []
1020
1036
  page.data.stack_events.each do |s|
@@ -1048,7 +1064,9 @@ module Aws::CloudFormation
1048
1064
  def resource_summaries(options = {})
1049
1065
  batches = Enumerator.new do |y|
1050
1066
  options = options.merge(stack_name: @name)
1051
- resp = @client.list_stack_resources(options)
1067
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1068
+ @client.list_stack_resources(options)
1069
+ end
1052
1070
  resp.each_page do |page|
1053
1071
  batch = []
1054
1072
  page.data.stack_resource_summaries.each do |s|
@@ -139,10 +139,12 @@ module Aws::CloudFormation
139
139
  #
140
140
  # @return [self]
141
141
  def load
142
- resp = @client.describe_stack_resource(
142
+ resp = Aws::Plugins::UserAgent.feature('resource') do
143
+ @client.describe_stack_resource(
143
144
  logical_resource_id: @logical_id,
144
145
  stack_name: @stack_name
145
146
  )
147
+ end
146
148
  @data = resp.stack_resource_detail
147
149
  self
148
150
  end
@@ -257,7 +259,9 @@ module Aws::CloudFormation
257
259
  :retry
258
260
  end
259
261
  end
260
- Aws::Waiters::Waiter.new(options).wait({})
262
+ Aws::Plugins::UserAgent.feature('resource') do
263
+ Aws::Waiters::Waiter.new(options).wait({})
264
+ end
261
265
  end
262
266
 
263
267
  # @!group Associations
@@ -225,7 +225,9 @@ module Aws::CloudFormation
225
225
  :retry
226
226
  end
227
227
  end
228
- Aws::Waiters::Waiter.new(options).wait({})
228
+ Aws::Plugins::UserAgent.feature('resource') do
229
+ Aws::Waiters::Waiter.new(options).wait({})
230
+ end
229
231
  end
230
232
 
231
233
  # @!group Associations