aws-sdk-arcregionswitch 1.20.0 → 1.21.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: 1d0e02408287749d07e1b77e20066024a05a0d7eb9f2d67bb8bcf1504ff085d8
4
- data.tar.gz: 06037e20fa21bb2d59cb65a87e46d9831e2b444704fad15ea4916cdedb14d308
3
+ metadata.gz: 368c1498b076fed0b5885711fb70ae8e51a80b0dbb9cae793d70d220b600509c
4
+ data.tar.gz: ac069898d245d89f17c8911c56e82456e75c13a208a01de9f429db6b8cc5c5df
5
5
  SHA512:
6
- metadata.gz: d65651490a0fb8e0b0ab18686b94caca7c017dd66914ea214c871f329e3eb444011a4add2d03ea509e39297365f4215a57d14afd55907d96496f197ea318d581
7
- data.tar.gz: c3713a0903a10169eddfbc5cebc3ae9b013bbba573489c658dd4b7762b58f75d0f7fa48d9581a1918bdbea2da864e060d39c1aa02ce2767f4d275ddcd19d907d
6
+ metadata.gz: 7a95c0f5ddc3f8f6df0577580c315a3cc4df69cf811e710103454cf476aacabbaba036545073c035fa2492562e71c2a9aac58105046adab7b21b7e1557d7e69c
7
+ data.tar.gz: e586357e2eb3e89f64b0409e3d7618e1efe308404d57d944aec4dd7f48e3ceaae08e296b2418249998b1f7b31fe8369a332ca963d520f3ac6672babe5d5ec7eb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.21.0 (2026-07-22)
5
+ ------------------
6
+
7
+ * Feature - Adds support for a client token in StartPlanExecution to make plan execution requests idempotent for safe retries.
8
+
4
9
  1.20.0 (2026-07-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.20.0
1
+ 1.21.0
@@ -2202,6 +2202,21 @@ module Aws::ARCRegionswitch
2202
2202
  # opposite region post-recovery is ran in. Required when starting a
2203
2203
  # post-recovery execution.
2204
2204
  #
2205
+ # @option params [String] :client_token
2206
+ # A unique, case-sensitive identifier to ensure that the operation
2207
+ # completes no more than one time. If this token matches a previous
2208
+ # request, the service ignores the request and returns the result of the
2209
+ # original successful request. If you don't provide a client token, the
2210
+ # service automatically generates one. For more information about
2211
+ # idempotency, see [Making retries safe with idempotent APIs][1].
2212
+ #
2213
+ # **A suitable default value is auto-generated.** You should normally
2214
+ # not need to pass this option.**
2215
+ #
2216
+ #
2217
+ #
2218
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
2219
+ #
2205
2220
  # @return [Types::StartPlanExecutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2206
2221
  #
2207
2222
  # * {Types::StartPlanExecutionResponse#execution_id #execution_id} => String
@@ -2220,6 +2235,7 @@ module Aws::ARCRegionswitch
2220
2235
  # comment: "ExecutionComment",
2221
2236
  # latest_version: "String",
2222
2237
  # recovery_execution_id: "RecoveryExecutionId",
2238
+ # client_token: "StartPlanExecutionRequestClientTokenString",
2223
2239
  # })
2224
2240
  #
2225
2241
  # @example Response structure
@@ -2855,7 +2871,7 @@ module Aws::ARCRegionswitch
2855
2871
  tracer: tracer
2856
2872
  )
2857
2873
  context[:gem_name] = 'aws-sdk-arcregionswitch'
2858
- context[:gem_version] = '1.20.0'
2874
+ context[:gem_version] = '1.21.0'
2859
2875
  Seahorse::Client::Request.new(handlers, context)
2860
2876
  end
2861
2877
 
@@ -43,6 +43,7 @@ module Aws::ARCRegionswitch
43
43
  AuroraServerlessScalingConfigurationTimeoutMinutesInteger = Shapes::IntegerShape.new(name: 'AuroraServerlessScalingConfigurationTimeoutMinutesInteger')
44
44
  CancelPlanExecutionRequest = Shapes::StructureShape.new(name: 'CancelPlanExecutionRequest')
45
45
  CancelPlanExecutionResponse = Shapes::StructureShape.new(name: 'CancelPlanExecutionResponse')
46
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
46
47
  CreatePlanRequest = Shapes::StructureShape.new(name: 'CreatePlanRequest')
47
48
  CreatePlanRequestRecoveryTimeObjectiveMinutesInteger = Shapes::IntegerShape.new(name: 'CreatePlanRequestRecoveryTimeObjectiveMinutesInteger')
48
49
  CreatePlanResponse = Shapes::StructureShape.new(name: 'CreatePlanResponse')
@@ -217,6 +218,7 @@ module Aws::ARCRegionswitch
217
218
  Service = Shapes::StructureShape.new(name: 'Service')
218
219
  ServiceList = Shapes::ListShape.new(name: 'ServiceList')
219
220
  StartPlanExecutionRequest = Shapes::StructureShape.new(name: 'StartPlanExecutionRequest')
221
+ StartPlanExecutionRequestClientTokenString = Shapes::StringShape.new(name: 'StartPlanExecutionRequestClientTokenString')
220
222
  StartPlanExecutionResponse = Shapes::StructureShape.new(name: 'StartPlanExecutionResponse')
221
223
  Step = Shapes::StructureShape.new(name: 'Step')
222
224
  StepName = Shapes::StringShape.new(name: 'StepName')
@@ -347,6 +349,11 @@ module Aws::ARCRegionswitch
347
349
 
348
350
  CancelPlanExecutionResponse.struct_class = Types::CancelPlanExecutionResponse
349
351
 
352
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
353
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
354
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
355
+ ConflictException.struct_class = Types::ConflictException
356
+
350
357
  CreatePlanRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
351
358
  CreatePlanRequest.add_member(:workflows, Shapes::ShapeRef.new(shape: WorkflowList, required: true, location_name: "workflows"))
352
359
  CreatePlanRequest.add_member(:execution_role, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "executionRole"))
@@ -827,6 +834,7 @@ module Aws::ARCRegionswitch
827
834
  StartPlanExecutionRequest.add_member(:comment, Shapes::ShapeRef.new(shape: ExecutionComment, location_name: "comment"))
828
835
  StartPlanExecutionRequest.add_member(:latest_version, Shapes::ShapeRef.new(shape: String, location_name: "latestVersion"))
829
836
  StartPlanExecutionRequest.add_member(:recovery_execution_id, Shapes::ShapeRef.new(shape: RecoveryExecutionId, location_name: "recoveryExecutionId"))
837
+ StartPlanExecutionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: StartPlanExecutionRequestClientTokenString, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
830
838
  StartPlanExecutionRequest.struct_class = Types::StartPlanExecutionRequest
831
839
 
832
840
  StartPlanExecutionResponse.add_member(:execution_id, Shapes::ShapeRef.new(shape: ExecutionId, location_name: "executionId"))
@@ -1150,6 +1158,7 @@ module Aws::ARCRegionswitch
1150
1158
  o.errors << Shapes::ShapeRef.new(shape: IllegalStateException)
1151
1159
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1152
1160
  o.errors << Shapes::ShapeRef.new(shape: IllegalArgumentException)
1161
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1153
1162
  end)
1154
1163
 
1155
1164
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -28,6 +28,7 @@ module Aws::ARCRegionswitch
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {AccessDeniedException}
31
+ # * {ConflictException}
31
32
  # * {IllegalArgumentException}
32
33
  # * {IllegalStateException}
33
34
  # * {InternalServerException}
@@ -54,6 +55,31 @@ module Aws::ARCRegionswitch
54
55
  end
55
56
  end
56
57
 
58
+ class ConflictException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::ARCRegionswitch::Types::ConflictException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+
67
+ # @return [String]
68
+ def message
69
+ @message || @data[:message]
70
+ end
71
+
72
+ # @return [String]
73
+ def resource_id
74
+ @data[:resource_id]
75
+ end
76
+
77
+ # @return [String]
78
+ def resource_type
79
+ @data[:resource_type]
80
+ end
81
+ end
82
+
57
83
  class IllegalArgumentException < ServiceError
58
84
 
59
85
  # @param [Seahorse::Client::RequestContext] context
@@ -432,6 +432,32 @@ module Aws::ARCRegionswitch
432
432
  #
433
433
  class CancelPlanExecutionResponse < Aws::EmptyStructure; end
434
434
 
435
+ # The client token was already used with different request parameters. A
436
+ # client token must map to the same parameters for every request. To
437
+ # retry this operation, provide a new client token.
438
+ #
439
+ # @!attribute [rw] message
440
+ # @return [String]
441
+ #
442
+ # @!attribute [rw] resource_id
443
+ # The identifier of the resource involved in the client token
444
+ # conflict.
445
+ # @return [String]
446
+ #
447
+ # @!attribute [rw] resource_type
448
+ # The type of the resource involved in the client token conflict.
449
+ # @return [String]
450
+ #
451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/ConflictException AWS API Documentation
452
+ #
453
+ class ConflictException < Struct.new(
454
+ :message,
455
+ :resource_id,
456
+ :resource_type)
457
+ SENSITIVE = []
458
+ include Aws::Structure
459
+ end
460
+
435
461
  # @!attribute [rw] description
436
462
  # The description of a Region switch plan.
437
463
  # @return [String]
@@ -2502,6 +2528,23 @@ module Aws::ARCRegionswitch
2502
2528
  # post-recovery execution.
2503
2529
  # @return [String]
2504
2530
  #
2531
+ # @!attribute [rw] client_token
2532
+ # A unique, case-sensitive identifier to ensure that the operation
2533
+ # completes no more than one time. If this token matches a previous
2534
+ # request, the service ignores the request and returns the result of
2535
+ # the original successful request. If you don't provide a client
2536
+ # token, the service automatically generates one. For more information
2537
+ # about idempotency, see [Making retries safe with idempotent
2538
+ # APIs][1].
2539
+ #
2540
+ # **A suitable default value is auto-generated.** You should normally
2541
+ # not need to pass this option.
2542
+ #
2543
+ #
2544
+ #
2545
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
2546
+ # @return [String]
2547
+ #
2505
2548
  # @see http://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/StartPlanExecutionRequest AWS API Documentation
2506
2549
  #
2507
2550
  class StartPlanExecutionRequest < Struct.new(
@@ -2511,7 +2554,8 @@ module Aws::ARCRegionswitch
2511
2554
  :mode,
2512
2555
  :comment,
2513
2556
  :latest_version,
2514
- :recovery_execution_id)
2557
+ :recovery_execution_id,
2558
+ :client_token)
2515
2559
  SENSITIVE = []
2516
2560
  include Aws::Structure
2517
2561
  end
@@ -55,7 +55,7 @@ module Aws::ARCRegionswitch
55
55
  autoload :EndpointProvider, 'aws-sdk-arcregionswitch/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-arcregionswitch/endpoints'
57
57
 
58
- GEM_VERSION = '1.20.0'
58
+ GEM_VERSION = '1.21.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -318,7 +318,8 @@ module Aws
318
318
  ?mode: ("graceful" | "ungraceful"),
319
319
  ?comment: ::String,
320
320
  ?latest_version: ::String,
321
- ?recovery_execution_id: ::String
321
+ ?recovery_execution_id: ::String,
322
+ ?client_token: ::String
322
323
  ) -> _StartPlanExecutionResponseSuccess
323
324
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPlanExecutionResponseSuccess
324
325
 
data/sig/errors.rbs CHANGED
@@ -14,6 +14,11 @@ module Aws
14
14
  class AccessDeniedException < ::Aws::Errors::ServiceError
15
15
  def message: () -> ::String
16
16
  end
17
+ class ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ def resource_id: () -> ::String
20
+ def resource_type: () -> ::String
21
+ end
17
22
  class IllegalArgumentException < ::Aws::Errors::ServiceError
18
23
  def message: () -> ::String
19
24
  end
data/sig/types.rbs CHANGED
@@ -117,6 +117,13 @@ module Aws::ARCRegionswitch
117
117
  class CancelPlanExecutionResponse < Aws::EmptyStructure
118
118
  end
119
119
 
120
+ class ConflictException
121
+ attr_accessor message: ::String
122
+ attr_accessor resource_id: ::String
123
+ attr_accessor resource_type: ::String
124
+ SENSITIVE: []
125
+ end
126
+
120
127
  class CreatePlanRequest
121
128
  attr_accessor description: ::String
122
129
  attr_accessor workflows: ::Array[Types::Workflow]
@@ -715,6 +722,7 @@ module Aws::ARCRegionswitch
715
722
  attr_accessor comment: ::String
716
723
  attr_accessor latest_version: ::String
717
724
  attr_accessor recovery_execution_id: ::String
725
+ attr_accessor client_token: ::String
718
726
  SENSITIVE: []
719
727
  end
720
728
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-arcregionswitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.0
4
+ version: 1.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services