aws-sdk-cloudformation 1.170.0 → 1.171.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8ad69cc9aa4b7b9d013208cbeebca650a4daf22fc2e7d154bf6844a51eb97b5
4
- data.tar.gz: c013c9bc5d68d15e33f32505b6cc4ff0ba0222d80e02150146ba5b61e9cd8c62
3
+ metadata.gz: 79a259ab4d583b473ad9b63883b95c52be050a2845864ab124d3ed1ec2e2d2e2
4
+ data.tar.gz: 90f45a7276c80df03461bfe3a371ac352202be71cf6542a64f7175a1561a1d01
5
5
  SHA512:
6
- metadata.gz: fed6dece2b6f659fe6aaf529dedd7e1fb058162c4970c83ee79e23a82d13d18d1b6e6922ecdc9c4a7a045db6de7fb477f20523d4cb9db09e6d1d5455ad14efe3
7
- data.tar.gz: eb5a170ee8c0b94146bbf4686efce438cb47c9e9396205d627c843cff03f23435b5744920eb067a15470d43895b7358e060a6fc00ff8e141234a7d97da5d07e2
6
+ metadata.gz: a374ef2e0fc206d53e767cc240337a2f9d6f30218ad61a6e22313f74cd9a38fa2a50adc525fb688d68b1420ebd68eec39fb8a00077c2f49f41fce91d4e194cf5
7
+ data.tar.gz: b3dcc324c7bbc713084effcc64625bb74e0ec7784554dda43b08f149a583604d3f8c6b96485bbc2b2d4c1df93be8e6e2cb57025909308ec1d0d79d7d00dba174
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.171.0 (2026-11-13)
5
+ ------------------
6
+
7
+ * Feature - AWS CloudFormation introduces stack aliases, which let you refer to an existing stack by a new name without deleting and recreating it. Manage aliases with SetAlias and RemoveAlias, and use an alias in place of the stack name in operations such as UpdateStack.
8
+
4
9
  1.170.0 (2026-11-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.170.0
1
+ 1.171.0
@@ -4264,6 +4264,7 @@ module Aws::CloudFormation
4264
4264
  # resp.stacks[0].last_operations #=> Array
4265
4265
  # resp.stacks[0].last_operations[0].operation_type #=> String, one of "CREATE_STACK", "UPDATE_STACK", "DELETE_STACK", "CONTINUE_ROLLBACK", "ROLLBACK", "CREATE_CHANGESET"
4266
4266
  # resp.stacks[0].last_operations[0].operation_id #=> String
4267
+ # resp.stacks[0].alias_name #=> String
4267
4268
  # resp.next_token #=> String
4268
4269
  #
4269
4270
  #
@@ -7485,6 +7486,39 @@ module Aws::CloudFormation
7485
7486
  req.send_request(options)
7486
7487
  end
7487
7488
 
7489
+ # Removes an alias from a stack. After the alias is removed
7490
+ # successfully, it can no longer be used to reference the stack in API
7491
+ # calls.
7492
+ #
7493
+ # @option params [required, String] :alias_name
7494
+ # The alias name to remove.
7495
+ #
7496
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7497
+ #
7498
+ #
7499
+ # @example Example: Example – Remove an alias from a stack
7500
+ #
7501
+ # # The following example removes the alias MyAlias from your stack:
7502
+ #
7503
+ # resp = client.remove_alias({
7504
+ # alias_name: "MyAlias",
7505
+ # })
7506
+ #
7507
+ # @example Request syntax with placeholder values
7508
+ #
7509
+ # resp = client.remove_alias({
7510
+ # alias_name: "AliasName", # required
7511
+ # })
7512
+ #
7513
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RemoveAlias AWS API Documentation
7514
+ #
7515
+ # @overload remove_alias(params = {})
7516
+ # @param [Hash] params ({})
7517
+ def remove_alias(params = {}, options = {})
7518
+ req = build_request(:remove_alias, params)
7519
+ req.send_request(options)
7520
+ end
7521
+
7488
7522
  # When specifying `RollbackStack`, you preserve the state of previously
7489
7523
  # provisioned resources when an operation fails. You can check the
7490
7524
  # status of the stack through the DescribeStacks operation.
@@ -7559,6 +7593,64 @@ module Aws::CloudFormation
7559
7593
  req.send_request(options)
7560
7594
  end
7561
7595
 
7596
+ # Assigns an alias to an existing stack. An alias is an alternative name
7597
+ # for a stack that can be used in place of the stack name in any
7598
+ # CloudFormation API call that accepts the `StackName` parameter. This
7599
+ # enables you to effectively rename a stack without recreating it.
7600
+ #
7601
+ # After setting an alias, both the original stack name and the alias
7602
+ # resolve to the same stack. Setting an alias does not change the
7603
+ # stack's ARN, physical resource IDs, or any deployed resources.
7604
+ #
7605
+ # <note markdown="1"> Each stack can have at most one alias. To change a stack's alias,
7606
+ # first remove the existing alias using RemoveAlias, then set a new one.
7607
+ #
7608
+ # </note>
7609
+ #
7610
+ # @option params [required, String] :stack_name
7611
+ # The name or unique stack ID of the stack to assign an alias to.
7612
+ #
7613
+ # @option params [required, String] :alias_name
7614
+ # The alias to assign to the stack. The alias can then be used in place
7615
+ # of the stack name in any API call that accepts `StackName`.
7616
+ #
7617
+ # The name must be unique within the same account and Region. It cannot
7618
+ # match an existing stack name or another active alias.
7619
+ #
7620
+ # <note markdown="1"> An alias name can contain only alphanumeric characters
7621
+ # (case-sensitive) and hyphens. It must start with an alphabetic
7622
+ # character and can't be longer than 128 characters.
7623
+ #
7624
+ # </note>
7625
+ #
7626
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7627
+ #
7628
+ #
7629
+ # @example Example: Example – Set an alias for a stack
7630
+ #
7631
+ # # The following example assigns the alias MyAlias to the stack MyStack:
7632
+ #
7633
+ # resp = client.set_alias({
7634
+ # alias_name: "MyAlias",
7635
+ # stack_name: "MyStack",
7636
+ # })
7637
+ #
7638
+ # @example Request syntax with placeholder values
7639
+ #
7640
+ # resp = client.set_alias({
7641
+ # stack_name: "StackName", # required
7642
+ # alias_name: "AliasName", # required
7643
+ # })
7644
+ #
7645
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetAlias AWS API Documentation
7646
+ #
7647
+ # @overload set_alias(params = {})
7648
+ # @param [Hash] params ({})
7649
+ def set_alias(params = {}, options = {})
7650
+ req = build_request(:set_alias, params)
7651
+ req.send_request(options)
7652
+ end
7653
+
7562
7654
  # Sets a stack policy for a specified stack.
7563
7655
  #
7564
7656
  # @option params [required, String] :stack_name
@@ -9232,7 +9324,7 @@ module Aws::CloudFormation
9232
9324
  tracer: tracer
9233
9325
  )
9234
9326
  context[:gem_name] = 'aws-sdk-cloudformation'
9235
- context[:gem_version] = '1.170.0'
9327
+ context[:gem_version] = '1.171.0'
9236
9328
  Seahorse::Client::Request.new(handlers, context)
9237
9329
  end
9238
9330
 
@@ -31,6 +31,7 @@ module Aws::CloudFormation
31
31
  AfterContext = Shapes::StringShape.new(name: 'AfterContext')
32
32
  AfterValue = Shapes::StringShape.new(name: 'AfterValue')
33
33
  AfterValueFrom = Shapes::StringShape.new(name: 'AfterValueFrom')
34
+ AliasName = Shapes::StringShape.new(name: 'AliasName')
34
35
  AllowedValue = Shapes::StringShape.new(name: 'AllowedValue')
35
36
  AllowedValues = Shapes::ListShape.new(name: 'AllowedValues')
36
37
  AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException', error: {"code" => "AlreadyExistsException", "httpStatusCode" => 400, "senderFault" => true})
@@ -406,6 +407,7 @@ module Aws::CloudFormation
406
407
  RelatedResources = Shapes::ListShape.new(name: 'RelatedResources')
407
408
  RemediationMessageRemediationMessage = Shapes::StringShape.new(name: 'RemediationMessageRemediationMessage')
408
409
  RemediationMessageStatusMessage = Shapes::StringShape.new(name: 'RemediationMessageStatusMessage')
410
+ RemoveAliasInput = Shapes::StructureShape.new(name: 'RemoveAliasInput')
409
411
  Replacement = Shapes::StringShape.new(name: 'Replacement')
410
412
  RequestToken = Shapes::StringShape.new(name: 'RequestToken')
411
413
  RequiredActivatedType = Shapes::StructureShape.new(name: 'RequiredActivatedType')
@@ -488,6 +490,7 @@ module Aws::CloudFormation
488
490
  ScannedResourceIdentifiers = Shapes::ListShape.new(name: 'ScannedResourceIdentifiers')
489
491
  ScannedResources = Shapes::ListShape.new(name: 'ScannedResources')
490
492
  Scope = Shapes::ListShape.new(name: 'Scope')
493
+ SetAliasInput = Shapes::StructureShape.new(name: 'SetAliasInput')
491
494
  SetStackPolicyInput = Shapes::StructureShape.new(name: 'SetStackPolicyInput')
492
495
  SetTypeConfigurationInput = Shapes::StructureShape.new(name: 'SetTypeConfigurationInput')
493
496
  SetTypeConfigurationOutput = Shapes::StructureShape.new(name: 'SetTypeConfigurationOutput')
@@ -1779,6 +1782,9 @@ module Aws::CloudFormation
1779
1782
 
1780
1783
  RelatedResources.member = Shapes::ShapeRef.new(shape: ScannedResource)
1781
1784
 
1785
+ RemoveAliasInput.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasName, required: true, location_name: "AliasName"))
1786
+ RemoveAliasInput.struct_class = Types::RemoveAliasInput
1787
+
1782
1788
  RequiredActivatedType.add_member(:type_name_alias, Shapes::ShapeRef.new(shape: TypeName, location_name: "TypeNameAlias"))
1783
1789
  RequiredActivatedType.add_member(:original_type_name, Shapes::ShapeRef.new(shape: TypeName, location_name: "OriginalTypeName"))
1784
1790
  RequiredActivatedType.add_member(:publisher_id, Shapes::ShapeRef.new(shape: PublisherId, location_name: "PublisherId"))
@@ -1942,6 +1948,10 @@ module Aws::CloudFormation
1942
1948
 
1943
1949
  Scope.member = Shapes::ShapeRef.new(shape: ResourceAttribute)
1944
1950
 
1951
+ SetAliasInput.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, required: true, location_name: "StackName"))
1952
+ SetAliasInput.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasName, required: true, location_name: "AliasName"))
1953
+ SetAliasInput.struct_class = Types::SetAliasInput
1954
+
1945
1955
  SetStackPolicyInput.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, required: true, location_name: "StackName"))
1946
1956
  SetStackPolicyInput.add_member(:stack_policy_body, Shapes::ShapeRef.new(shape: StackPolicyBody, location_name: "StackPolicyBody"))
1947
1957
  SetStackPolicyInput.add_member(:stack_policy_url, Shapes::ShapeRef.new(shape: StackPolicyURL, location_name: "StackPolicyURL"))
@@ -1998,6 +2008,7 @@ module Aws::CloudFormation
1998
2008
  Stack.add_member(:deletion_mode, Shapes::ShapeRef.new(shape: DeletionMode, location_name: "DeletionMode"))
1999
2009
  Stack.add_member(:detailed_status, Shapes::ShapeRef.new(shape: DetailedStatus, location_name: "DetailedStatus"))
2000
2010
  Stack.add_member(:last_operations, Shapes::ShapeRef.new(shape: LastOperations, location_name: "LastOperations"))
2011
+ Stack.add_member(:alias_name, Shapes::ShapeRef.new(shape: AliasName, location_name: "AliasName"))
2001
2012
  Stack.struct_class = Types::Stack
2002
2013
 
2003
2014
  StackDefinition.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, location_name: "StackName"))
@@ -3420,6 +3431,14 @@ module Aws::CloudFormation
3420
3431
  o.errors << Shapes::ShapeRef.new(shape: CFNRegistryException)
3421
3432
  end)
3422
3433
 
3434
+ api.add_operation(:remove_alias, Seahorse::Model::Operation.new.tap do |o|
3435
+ o.name = "RemoveAlias"
3436
+ o.http_method = "POST"
3437
+ o.http_request_uri = "/"
3438
+ o.input = Shapes::ShapeRef.new(shape: RemoveAliasInput)
3439
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3440
+ end)
3441
+
3423
3442
  api.add_operation(:rollback_stack, Seahorse::Model::Operation.new.tap do |o|
3424
3443
  o.name = "RollbackStack"
3425
3444
  o.http_method = "POST"
@@ -3429,6 +3448,16 @@ module Aws::CloudFormation
3429
3448
  o.errors << Shapes::ShapeRef.new(shape: TokenAlreadyExistsException)
3430
3449
  end)
3431
3450
 
3451
+ api.add_operation(:set_alias, Seahorse::Model::Operation.new.tap do |o|
3452
+ o.name = "SetAlias"
3453
+ o.http_method = "POST"
3454
+ o.http_request_uri = "/"
3455
+ o.input = Shapes::ShapeRef.new(shape: SetAliasInput)
3456
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3457
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
3458
+ o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsException)
3459
+ end)
3460
+
3432
3461
  api.add_operation(:set_stack_policy, Seahorse::Model::Operation.new.tap do |o|
3433
3462
  o.name = "SetStackPolicy"
3434
3463
  o.http_method = "POST"
@@ -257,6 +257,14 @@ module Aws::CloudFormation
257
257
  data[:last_operations]
258
258
  end
259
259
 
260
+ # The alias assigned to the stack, if one has been set. An alias is an
261
+ # alternative name that can be used in place of the stack name in any
262
+ # CloudFormation API call that accepts the `StackName` parameter.
263
+ # @return [String]
264
+ def alias_name
265
+ data[:alias_name]
266
+ end
267
+
260
268
  # @!endgroup
261
269
 
262
270
  # @return [Client]
@@ -7520,6 +7520,20 @@ module Aws::CloudFormation
7520
7520
  include Aws::Structure
7521
7521
  end
7522
7522
 
7523
+ # The input for the RemoveAlias action.
7524
+ #
7525
+ # @!attribute [rw] alias_name
7526
+ # The alias name to remove.
7527
+ # @return [String]
7528
+ #
7529
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RemoveAliasInput AWS API Documentation
7530
+ #
7531
+ class RemoveAliasInput < Struct.new(
7532
+ :alias_name)
7533
+ SENSITIVE = []
7534
+ include Aws::Structure
7535
+ end
7536
+
7523
7537
  # For extensions that are modules, a public third-party extension that
7524
7538
  # must be activated in your account in order for the module itself to be
7525
7539
  # activated.
@@ -8514,6 +8528,35 @@ module Aws::CloudFormation
8514
8528
  include Aws::Structure
8515
8529
  end
8516
8530
 
8531
+ # The input for the SetAlias action.
8532
+ #
8533
+ # @!attribute [rw] stack_name
8534
+ # The name or unique stack ID of the stack to assign an alias to.
8535
+ # @return [String]
8536
+ #
8537
+ # @!attribute [rw] alias_name
8538
+ # The alias to assign to the stack. The alias can then be used in
8539
+ # place of the stack name in any API call that accepts `StackName`.
8540
+ #
8541
+ # The name must be unique within the same account and Region. It
8542
+ # cannot match an existing stack name or another active alias.
8543
+ #
8544
+ # <note markdown="1"> An alias name can contain only alphanumeric characters
8545
+ # (case-sensitive) and hyphens. It must start with an alphabetic
8546
+ # character and can't be longer than 128 characters.
8547
+ #
8548
+ # </note>
8549
+ # @return [String]
8550
+ #
8551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetAliasInput AWS API Documentation
8552
+ #
8553
+ class SetAliasInput < Struct.new(
8554
+ :stack_name,
8555
+ :alias_name)
8556
+ SENSITIVE = []
8557
+ include Aws::Structure
8558
+ end
8559
+
8517
8560
  # The input for the SetStackPolicy action.
8518
8561
  #
8519
8562
  # @!attribute [rw] stack_name
@@ -8890,6 +8933,12 @@ module Aws::CloudFormation
8890
8933
  # stack.
8891
8934
  # @return [Array<Types::OperationEntry>]
8892
8935
  #
8936
+ # @!attribute [rw] alias_name
8937
+ # The alias assigned to the stack, if one has been set. An alias is an
8938
+ # alternative name that can be used in place of the stack name in any
8939
+ # CloudFormation API call that accepts the `StackName` parameter.
8940
+ # @return [String]
8941
+ #
8893
8942
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Stack AWS API Documentation
8894
8943
  #
8895
8944
  class Stack < Struct.new(
@@ -8919,7 +8968,8 @@ module Aws::CloudFormation
8919
8968
  :retain_except_on_create,
8920
8969
  :deletion_mode,
8921
8970
  :detailed_status,
8922
- :last_operations)
8971
+ :last_operations,
8972
+ :alias_name)
8923
8973
  SENSITIVE = []
8924
8974
  include Aws::Structure
8925
8975
  end
@@ -59,7 +59,7 @@ module Aws::CloudFormation
59
59
  autoload :StackResource, 'aws-sdk-cloudformation/stack_resource'
60
60
  autoload :StackResourceSummary, 'aws-sdk-cloudformation/stack_resource_summary'
61
61
 
62
- GEM_VERSION = '1.170.0'
62
+ GEM_VERSION = '1.171.0'
63
63
 
64
64
  end
65
65
 
data/sig/client.rbs CHANGED
@@ -1356,6 +1356,12 @@ module Aws
1356
1356
  ) -> _RegisterTypeResponseSuccess
1357
1357
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RegisterTypeResponseSuccess
1358
1358
 
1359
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFormation/Client.html#remove_alias-instance_method
1360
+ def remove_alias: (
1361
+ alias_name: ::String
1362
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1363
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1364
+
1359
1365
  interface _RollbackStackResponseSuccess
1360
1366
  include ::Seahorse::Client::_ResponseSuccess[Types::RollbackStackOutput]
1361
1367
  def stack_id: () -> ::String
@@ -1374,6 +1380,13 @@ module Aws
1374
1380
  ) -> _RollbackStackResponseSuccess
1375
1381
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RollbackStackResponseSuccess
1376
1382
 
1383
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFormation/Client.html#set_alias-instance_method
1384
+ def set_alias: (
1385
+ stack_name: ::String,
1386
+ alias_name: ::String
1387
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1388
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1389
+
1377
1390
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFormation/Client.html#set_stack_policy-instance_method
1378
1391
  def set_stack_policy: (
1379
1392
  stack_name: ::String,
data/sig/stack.rbs CHANGED
@@ -96,6 +96,9 @@ module Aws
96
96
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFormation/Stack.html#last_operations-instance_method
97
97
  def last_operations: () -> ::Array[Types::OperationEntry]
98
98
 
99
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFormation/Stack.html#alias_name-instance_method
100
+ def alias_name: () -> ::String
101
+
99
102
  def client: () -> Client
100
103
 
101
104
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudFormation/Stack.html#load-instance_method
data/sig/types.rbs CHANGED
@@ -1409,6 +1409,11 @@ module Aws::CloudFormation
1409
1409
  SENSITIVE: []
1410
1410
  end
1411
1411
 
1412
+ class RemoveAliasInput
1413
+ attr_accessor alias_name: ::String
1414
+ SENSITIVE: []
1415
+ end
1416
+
1412
1417
  class RequiredActivatedType
1413
1418
  attr_accessor type_name_alias: ::String
1414
1419
  attr_accessor original_type_name: ::String
@@ -1572,6 +1577,12 @@ module Aws::CloudFormation
1572
1577
  SENSITIVE: []
1573
1578
  end
1574
1579
 
1580
+ class SetAliasInput
1581
+ attr_accessor stack_name: ::String
1582
+ attr_accessor alias_name: ::String
1583
+ SENSITIVE: []
1584
+ end
1585
+
1575
1586
  class SetStackPolicyInput
1576
1587
  attr_accessor stack_name: ::String
1577
1588
  attr_accessor stack_policy_body: ::String
@@ -1640,6 +1651,7 @@ module Aws::CloudFormation
1640
1651
  attr_accessor deletion_mode: ("STANDARD" | "FORCE_DELETE_STACK")
1641
1652
  attr_accessor detailed_status: ("CONFIGURATION_COMPLETE" | "VALIDATION_FAILED")
1642
1653
  attr_accessor last_operations: ::Array[Types::OperationEntry]
1654
+ attr_accessor alias_name: ::String
1643
1655
  SENSITIVE: []
1644
1656
  end
1645
1657
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.170.0
4
+ version: 1.171.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services