aws-sdk-states 1.64.0 → 1.66.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
  SHA256:
3
- metadata.gz: 1a3b07da1011df643da50985280f253892cd6eee3c29211e60e61504d8281a1a
4
- data.tar.gz: 3fdc10c928d3c91344d80b98af0a4e281edcda6d8940596bb521563b87daf4b0
3
+ metadata.gz: 84914cab1fc014bf29c69fb9ce92f5879973d12459e367115a712fe395ae3852
4
+ data.tar.gz: 49675bde9a26be6f487e6245f3f5129cd66dba0b19d3519c6b219919d708d221
5
5
  SHA512:
6
- metadata.gz: aa5deccffbe0aed89702d087ae41f6578678ea90f9147c330044bd6ac729f2f8ba97f9f29e9fa3a1e2b85cf4eaa1f311f0f20380c28e61e623572c58adf8ae8f
7
- data.tar.gz: 4a832661178fed1bc814309724d2aa91e3790b5f9c8de2d26078a57e7e03974e09c810a981a45054399f6d349edfd4e917ab13a31d8fd44655c7b48e5bb729d3
6
+ metadata.gz: 97eae4ba397a6a94f89d80a8196dae577de68284ae45025b1131c30bc764068df4c91f81ae4aaa975262536c9c1fbbfdb54893add9ea2e27177b773549aa1c31
7
+ data.tar.gz: ed180fff91b6ddd475abf5efb322dfb1885c8a8a9cbb78534fd2f14385e33e5f991a998c9abe0ce8ae29b2942706b744f437e007f5099731b32ad2b2c1fb6f89
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.66.0 (2024-05-13)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.65.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Add new ValidateStateMachineDefinition operation, which performs syntax checking on the definition of a Amazon States Language (ASL) state machine.
13
+
4
14
  1.64.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.66.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::States
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::States
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -292,8 +301,9 @@ module Aws::States
292
301
  #
293
302
  # @option options [String] :sdk_ua_app_id
294
303
  # A unique and opaque application ID that is appended to the
295
- # User-Agent header as app/<sdk_ua_app_id>. It should have a
296
- # maximum length of 50.
304
+ # User-Agent header as app/sdk_ua_app_id. It should have a
305
+ # maximum length of 50. This variable is sourced from environment
306
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
297
307
  #
298
308
  # @option options [String] :secret_access_key
299
309
  #
@@ -347,50 +357,65 @@ module Aws::States
347
357
  # @option options [Aws::States::EndpointProvider] :endpoint_provider
348
358
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::States::EndpointParameters`
349
359
  #
350
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
351
- # requests through. Formatted like 'http://proxy.com:123'.
352
- #
353
- # @option options [Float] :http_open_timeout (15) The number of
354
- # seconds to wait when opening a HTTP session before raising a
355
- # `Timeout::Error`.
356
- #
357
- # @option options [Float] :http_read_timeout (60) The default
358
- # number of seconds to wait for response data. This value can
359
- # safely be set per-request on the session.
360
- #
361
- # @option options [Float] :http_idle_timeout (5) The number of
362
- # seconds a connection is allowed to sit idle before it is
363
- # considered stale. Stale connections are closed and removed
364
- # from the pool before making a request.
365
- #
366
- # @option options [Float] :http_continue_timeout (1) The number of
367
- # seconds to wait for a 100-continue response before sending the
368
- # request body. This option has no effect unless the request has
369
- # "Expect" header set to "100-continue". Defaults to `nil` which
370
- # disables this behaviour. This value can safely be set per
371
- # request on the session.
372
- #
373
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
- # in seconds.
375
- #
376
- # @option options [Boolean] :http_wire_trace (false) When `true`,
377
- # HTTP debug output will be sent to the `:logger`.
360
+ # @option options [Float] :http_continue_timeout (1)
361
+ # The number of seconds to wait for a 100-continue response before sending the
362
+ # request body. This option has no effect unless the request has "Expect"
363
+ # header set to "100-continue". Defaults to `nil` which disables this
364
+ # behaviour. This value can safely be set per request on the session.
365
+ #
366
+ # @option options [Float] :http_idle_timeout (5)
367
+ # The number of seconds a connection is allowed to sit idle before it
368
+ # is considered stale. Stale connections are closed and removed from the
369
+ # pool before making a request.
370
+ #
371
+ # @option options [Float] :http_open_timeout (15)
372
+ # The default number of seconds to wait for response data.
373
+ # This value can safely be set per-request on the session.
374
+ #
375
+ # @option options [URI::HTTP,String] :http_proxy
376
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
377
+ #
378
+ # @option options [Float] :http_read_timeout (60)
379
+ # The default number of seconds to wait for response data.
380
+ # This value can safely be set per-request on the session.
381
+ #
382
+ # @option options [Boolean] :http_wire_trace (false)
383
+ # When `true`, HTTP debug output will be sent to the `:logger`.
384
+ #
385
+ # @option options [Proc] :on_chunk_received
386
+ # When a Proc object is provided, it will be used as callback when each chunk
387
+ # of the response body is received. It provides three arguments: the chunk,
388
+ # the number of bytes received, and the total number of
389
+ # bytes in the response (or nil if the server did not send a `content-length`).
390
+ #
391
+ # @option options [Proc] :on_chunk_sent
392
+ # When a Proc object is provided, it will be used as callback when each chunk
393
+ # of the request body is sent. It provides three arguments: the chunk,
394
+ # the number of bytes read from the body, and the total number of
395
+ # bytes in the body.
396
+ #
397
+ # @option options [Boolean] :raise_response_errors (true)
398
+ # When `true`, response errors are raised.
399
+ #
400
+ # @option options [String] :ssl_ca_bundle
401
+ # Full path to the SSL certificate authority bundle file that should be used when
402
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
403
+ # `:ssl_ca_directory` the the system default will be used if available.
404
+ #
405
+ # @option options [String] :ssl_ca_directory
406
+ # Full path of the directory that contains the unbundled SSL certificate
407
+ # authority files for verifying peer certificates. If you do
408
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
409
+ # default will be used if available.
378
410
  #
379
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
- # SSL peer certificates are verified when establishing a
381
- # connection.
411
+ # @option options [String] :ssl_ca_store
412
+ # Sets the X509::Store to verify peer certificate.
382
413
  #
383
- # @option options [String] :ssl_ca_bundle Full path to the SSL
384
- # certificate authority bundle file that should be used when
385
- # verifying peer certificates. If you do not pass
386
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
387
- # will be used if available.
414
+ # @option options [Float] :ssl_timeout
415
+ # Sets the SSL timeout in seconds
388
416
  #
389
- # @option options [String] :ssl_ca_directory Full path of the
390
- # directory that contains the unbundled SSL certificate
391
- # authority files for verifying peer certificates. If you do
392
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
393
- # system default will be used if available.
417
+ # @option options [Boolean] :ssl_verify_peer (true)
418
+ # When `true`, SSL peer certificates are verified when establishing a connection.
394
419
  #
395
420
  def initialize(*args)
396
421
  super
@@ -3166,6 +3191,77 @@ module Aws::States
3166
3191
  req.send_request(options)
3167
3192
  end
3168
3193
 
3194
+ # Validates the syntax of a state machine definition.
3195
+ #
3196
+ # You can validate that a state machine definition is correct without
3197
+ # creating a state machine resource. Step Functions will implicitly
3198
+ # perform the same syntax check when you invoke `CreateStateMachine` and
3199
+ # `UpdateStateMachine`. State machine definitions are specified using a
3200
+ # JSON-based, structured language. For more information on Amazon States
3201
+ # Language see [Amazon States Language][1] (ASL).
3202
+ #
3203
+ # Suggested uses for `ValidateStateMachineDefinition`:
3204
+ #
3205
+ # * Integrate automated checks into your code review or Continuous
3206
+ # Integration (CI) process to validate state machine definitions
3207
+ # before starting deployments.
3208
+ #
3209
+ # * Run the validation from a Git pre-commit hook to check your state
3210
+ # machine definitions before committing them to your source
3211
+ # repository.
3212
+ #
3213
+ # <note markdown="1"> Errors found in the state machine definition will be returned in the
3214
+ # response as a list of **diagnostic elements**, rather than raise an
3215
+ # exception.
3216
+ #
3217
+ # </note>
3218
+ #
3219
+ #
3220
+ #
3221
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
3222
+ #
3223
+ # @option params [required, String] :definition
3224
+ # The Amazon States Language definition of the state machine. For more
3225
+ # information, see [Amazon States Language][1] (ASL).
3226
+ #
3227
+ #
3228
+ #
3229
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
3230
+ #
3231
+ # @option params [String] :type
3232
+ # The target type of state machine for this definition. The default is
3233
+ # `STANDARD`.
3234
+ #
3235
+ # @return [Types::ValidateStateMachineDefinitionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3236
+ #
3237
+ # * {Types::ValidateStateMachineDefinitionOutput#result #result} => String
3238
+ # * {Types::ValidateStateMachineDefinitionOutput#diagnostics #diagnostics} => Array&lt;Types::ValidateStateMachineDefinitionDiagnostic&gt;
3239
+ #
3240
+ # @example Request syntax with placeholder values
3241
+ #
3242
+ # resp = client.validate_state_machine_definition({
3243
+ # definition: "Definition", # required
3244
+ # type: "STANDARD", # accepts STANDARD, EXPRESS
3245
+ # })
3246
+ #
3247
+ # @example Response structure
3248
+ #
3249
+ # resp.result #=> String, one of "OK", "FAIL"
3250
+ # resp.diagnostics #=> Array
3251
+ # resp.diagnostics[0].severity #=> String, one of "ERROR"
3252
+ # resp.diagnostics[0].code #=> String
3253
+ # resp.diagnostics[0].message #=> String
3254
+ # resp.diagnostics[0].location #=> String
3255
+ #
3256
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinition AWS API Documentation
3257
+ #
3258
+ # @overload validate_state_machine_definition(params = {})
3259
+ # @param [Hash] params ({})
3260
+ def validate_state_machine_definition(params = {}, options = {})
3261
+ req = build_request(:validate_state_machine_definition, params)
3262
+ req.send_request(options)
3263
+ end
3264
+
3169
3265
  # @!endgroup
3170
3266
 
3171
3267
  # @param params ({})
@@ -3179,7 +3275,7 @@ module Aws::States
3179
3275
  params: params,
3180
3276
  config: config)
3181
3277
  context[:gem_name] = 'aws-sdk-states'
3182
- context[:gem_version] = '1.64.0'
3278
+ context[:gem_version] = '1.66.0'
3183
3279
  Seahorse::Client::Request.new(handlers, context)
3184
3280
  end
3185
3281
 
@@ -238,6 +238,15 @@ module Aws::States
238
238
  UpdateStateMachineAliasOutput = Shapes::StructureShape.new(name: 'UpdateStateMachineAliasOutput')
239
239
  UpdateStateMachineInput = Shapes::StructureShape.new(name: 'UpdateStateMachineInput')
240
240
  UpdateStateMachineOutput = Shapes::StructureShape.new(name: 'UpdateStateMachineOutput')
241
+ ValidateStateMachineDefinitionCode = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionCode')
242
+ ValidateStateMachineDefinitionDiagnostic = Shapes::StructureShape.new(name: 'ValidateStateMachineDefinitionDiagnostic')
243
+ ValidateStateMachineDefinitionDiagnosticList = Shapes::ListShape.new(name: 'ValidateStateMachineDefinitionDiagnosticList')
244
+ ValidateStateMachineDefinitionInput = Shapes::StructureShape.new(name: 'ValidateStateMachineDefinitionInput')
245
+ ValidateStateMachineDefinitionLocation = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionLocation')
246
+ ValidateStateMachineDefinitionMessage = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionMessage')
247
+ ValidateStateMachineDefinitionOutput = Shapes::StructureShape.new(name: 'ValidateStateMachineDefinitionOutput')
248
+ ValidateStateMachineDefinitionResultCode = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionResultCode')
249
+ ValidateStateMachineDefinitionSeverity = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionSeverity')
241
250
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
242
251
  ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
243
252
  VersionDescription = Shapes::StringShape.new(name: 'VersionDescription')
@@ -1028,6 +1037,22 @@ module Aws::States
1028
1037
  UpdateStateMachineOutput.add_member(:state_machine_version_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "stateMachineVersionArn"))
1029
1038
  UpdateStateMachineOutput.struct_class = Types::UpdateStateMachineOutput
1030
1039
 
1040
+ ValidateStateMachineDefinitionDiagnostic.add_member(:severity, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionSeverity, required: true, location_name: "severity"))
1041
+ ValidateStateMachineDefinitionDiagnostic.add_member(:code, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionCode, required: true, location_name: "code"))
1042
+ ValidateStateMachineDefinitionDiagnostic.add_member(:message, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionMessage, required: true, location_name: "message"))
1043
+ ValidateStateMachineDefinitionDiagnostic.add_member(:location, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionLocation, location_name: "location"))
1044
+ ValidateStateMachineDefinitionDiagnostic.struct_class = Types::ValidateStateMachineDefinitionDiagnostic
1045
+
1046
+ ValidateStateMachineDefinitionDiagnosticList.member = Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionDiagnostic)
1047
+
1048
+ ValidateStateMachineDefinitionInput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, required: true, location_name: "definition"))
1049
+ ValidateStateMachineDefinitionInput.add_member(:type, Shapes::ShapeRef.new(shape: StateMachineType, location_name: "type"))
1050
+ ValidateStateMachineDefinitionInput.struct_class = Types::ValidateStateMachineDefinitionInput
1051
+
1052
+ ValidateStateMachineDefinitionOutput.add_member(:result, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionResultCode, required: true, location_name: "result"))
1053
+ ValidateStateMachineDefinitionOutput.add_member(:diagnostics, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionDiagnosticList, required: true, location_name: "diagnostics"))
1054
+ ValidateStateMachineDefinitionOutput.struct_class = Types::ValidateStateMachineDefinitionOutput
1055
+
1031
1056
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1032
1057
  ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
1033
1058
  ValidationException.struct_class = Types::ValidationException
@@ -1043,6 +1068,7 @@ module Aws::States
1043
1068
  "endpointPrefix" => "states",
1044
1069
  "jsonVersion" => "1.0",
1045
1070
  "protocol" => "json",
1071
+ "protocols" => ["json"],
1046
1072
  "serviceAbbreviation" => "AWS SFN",
1047
1073
  "serviceFullName" => "AWS Step Functions",
1048
1074
  "serviceId" => "SFN",
@@ -1353,6 +1379,7 @@ module Aws::States
1353
1379
  o.errors << Shapes::ShapeRef.new(shape: ExecutionNotRedrivable)
1354
1380
  o.errors << Shapes::ShapeRef.new(shape: ExecutionLimitExceeded)
1355
1381
  o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
1382
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1356
1383
  end)
1357
1384
 
1358
1385
  api.add_operation(:send_task_failure, Seahorse::Model::Operation.new.tap do |o|
@@ -1510,6 +1537,15 @@ module Aws::States
1510
1537
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1511
1538
  o.errors << Shapes::ShapeRef.new(shape: StateMachineDeleting)
1512
1539
  end)
1540
+
1541
+ api.add_operation(:validate_state_machine_definition, Seahorse::Model::Operation.new.tap do |o|
1542
+ o.name = "ValidateStateMachineDefinition"
1543
+ o.http_method = "POST"
1544
+ o.http_request_uri = "/"
1545
+ o.input = Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionInput)
1546
+ o.output = Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionOutput)
1547
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1548
+ end)
1513
1549
  end
1514
1550
 
1515
1551
  end
@@ -516,5 +516,19 @@ module Aws::States
516
516
  end
517
517
  end
518
518
 
519
+ class ValidateStateMachineDefinition
520
+ def self.build(context)
521
+ unless context.config.regional_endpoint
522
+ endpoint = context.config.endpoint.to_s
523
+ end
524
+ Aws::States::EndpointParameters.new(
525
+ region: context.config.region,
526
+ use_dual_stack: context.config.use_dualstack_endpoint,
527
+ use_fips: context.config.use_fips_endpoint,
528
+ endpoint: endpoint,
529
+ )
530
+ end
531
+ end
532
+
519
533
  end
520
534
  end
@@ -130,6 +130,8 @@ module Aws::States
130
130
  Aws::States::Endpoints::UpdateStateMachine.build(context)
131
131
  when :update_state_machine_alias
132
132
  Aws::States::Endpoints::UpdateStateMachineAlias.build(context)
133
+ when :validate_state_machine_definition
134
+ Aws::States::Endpoints::ValidateStateMachineDefinition.build(context)
133
135
  end
134
136
  end
135
137
  end
@@ -4373,6 +4373,85 @@ module Aws::States
4373
4373
  include Aws::Structure
4374
4374
  end
4375
4375
 
4376
+ # Describes an error found during validation. Validation errors found in
4377
+ # the definition return in the response as **diagnostic elements**,
4378
+ # rather than raise an exception.
4379
+ #
4380
+ # @!attribute [rw] severity
4381
+ # A value of `ERROR` means that you cannot create or update a state
4382
+ # machine with this definition.
4383
+ # @return [String]
4384
+ #
4385
+ # @!attribute [rw] code
4386
+ # Identifying code for the diagnostic.
4387
+ # @return [String]
4388
+ #
4389
+ # @!attribute [rw] message
4390
+ # Message describing the diagnostic condition.
4391
+ # @return [String]
4392
+ #
4393
+ # @!attribute [rw] location
4394
+ # Location of the issue in the state machine, if available.
4395
+ #
4396
+ # For errors specific to a field, the location could be in the format:
4397
+ # `/States/<StateName>/<FieldName>`, for example:
4398
+ # `/States/FailState/ErrorPath`.
4399
+ # @return [String]
4400
+ #
4401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinitionDiagnostic AWS API Documentation
4402
+ #
4403
+ class ValidateStateMachineDefinitionDiagnostic < Struct.new(
4404
+ :severity,
4405
+ :code,
4406
+ :message,
4407
+ :location)
4408
+ SENSITIVE = []
4409
+ include Aws::Structure
4410
+ end
4411
+
4412
+ # @!attribute [rw] definition
4413
+ # The Amazon States Language definition of the state machine. For more
4414
+ # information, see [Amazon States Language][1] (ASL).
4415
+ #
4416
+ #
4417
+ #
4418
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
4419
+ # @return [String]
4420
+ #
4421
+ # @!attribute [rw] type
4422
+ # The target type of state machine for this definition. The default is
4423
+ # `STANDARD`.
4424
+ # @return [String]
4425
+ #
4426
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinitionInput AWS API Documentation
4427
+ #
4428
+ class ValidateStateMachineDefinitionInput < Struct.new(
4429
+ :definition,
4430
+ :type)
4431
+ SENSITIVE = [:definition]
4432
+ include Aws::Structure
4433
+ end
4434
+
4435
+ # @!attribute [rw] result
4436
+ # The result value will be `OK` when no syntax errors are found, or
4437
+ # `FAIL` if the workflow definition does not pass verification.
4438
+ # @return [String]
4439
+ #
4440
+ # @!attribute [rw] diagnostics
4441
+ # If the result is `OK`, this field will be empty. When there are
4442
+ # errors, this field will contain an array of **Diagnostic** objects
4443
+ # to help you troubleshoot.
4444
+ # @return [Array<Types::ValidateStateMachineDefinitionDiagnostic>]
4445
+ #
4446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinitionOutput AWS API Documentation
4447
+ #
4448
+ class ValidateStateMachineDefinitionOutput < Struct.new(
4449
+ :result,
4450
+ :diagnostics)
4451
+ SENSITIVE = []
4452
+ include Aws::Structure
4453
+ end
4454
+
4376
4455
  # The input does not satisfy the constraints specified by an Amazon Web
4377
4456
  # Services service.
4378
4457
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-states/customizations'
52
52
  # @!group service
53
53
  module Aws::States
54
54
 
55
- GEM_VERSION = '1.64.0'
55
+ GEM_VERSION = '1.66.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -619,6 +619,18 @@ module Aws
619
619
  ]
620
620
  ) -> _UpdateStateMachineAliasResponseSuccess
621
621
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateStateMachineAliasResponseSuccess
622
+
623
+ interface _ValidateStateMachineDefinitionResponseSuccess
624
+ include ::Seahorse::Client::_ResponseSuccess[Types::ValidateStateMachineDefinitionOutput]
625
+ def result: () -> ("OK" | "FAIL")
626
+ def diagnostics: () -> ::Array[Types::ValidateStateMachineDefinitionDiagnostic]
627
+ end
628
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/States/Client.html#validate_state_machine_definition-instance_method
629
+ def validate_state_machine_definition: (
630
+ definition: ::String,
631
+ ?type: ("STANDARD" | "EXPRESS")
632
+ ) -> _ValidateStateMachineDefinitionResponseSuccess
633
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ValidateStateMachineDefinitionResponseSuccess
622
634
  end
623
635
  end
624
636
  end
data/sig/types.rbs CHANGED
@@ -1067,6 +1067,26 @@ module Aws::States
1067
1067
  SENSITIVE: []
1068
1068
  end
1069
1069
 
1070
+ class ValidateStateMachineDefinitionDiagnostic
1071
+ attr_accessor severity: ("ERROR")
1072
+ attr_accessor code: ::String
1073
+ attr_accessor message: ::String
1074
+ attr_accessor location: ::String
1075
+ SENSITIVE: []
1076
+ end
1077
+
1078
+ class ValidateStateMachineDefinitionInput
1079
+ attr_accessor definition: ::String
1080
+ attr_accessor type: ("STANDARD" | "EXPRESS")
1081
+ SENSITIVE: [:definition]
1082
+ end
1083
+
1084
+ class ValidateStateMachineDefinitionOutput
1085
+ attr_accessor result: ("OK" | "FAIL")
1086
+ attr_accessor diagnostics: ::Array[Types::ValidateStateMachineDefinitionDiagnostic]
1087
+ SENSITIVE: []
1088
+ end
1089
+
1070
1090
  class ValidationException
1071
1091
  attr_accessor message: ::String
1072
1092
  attr_accessor reason: ("API_DOES_NOT_SUPPORT_LABELED_ARNS" | "MISSING_REQUIRED_PARAMETER" | "CANNOT_UPDATE_COMPLETED_MAP_RUN" | "INVALID_ROUTING_CONFIGURATION")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-states
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.64.0
4
+ version: 1.66.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-05-13 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.191.0
22
+ version: 3.193.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.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement