aws-sdk-states 1.64.0 → 1.65.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: 2f040f29e37c27b335b9d19f9779b0a9690e0bbc4869e6ec00d002e0214304cc
4
+ data.tar.gz: 87a4f01b1b4a2b117d582ffd9c3eb6f65ce652c0f2f7dafdb0fc36b5002040d4
5
5
  SHA512:
6
- metadata.gz: aa5deccffbe0aed89702d087ae41f6578678ea90f9147c330044bd6ac729f2f8ba97f9f29e9fa3a1e2b85cf4eaa1f311f0f20380c28e61e623572c58adf8ae8f
7
- data.tar.gz: 4a832661178fed1bc814309724d2aa91e3790b5f9c8de2d26078a57e7e03974e09c810a981a45054399f6d349edfd4e917ab13a31d8fd44655c7b48e5bb729d3
6
+ metadata.gz: 8a91fb33c1d72bf0f66a47c0b25264c8a9a0dad00cbcdae7ca5829edadff221458075b815a2165172fc7fa21e080ab1c16ec98f45966f67afbd60eb6babc4957
7
+ data.tar.gz: 5d41e22f1f40fc979aa325921162d9334946dc3a58b40bca00e8c4697d316ee58d6d9af778edcb952601e5da013d40b30c6f9d39cf15c1171bab3a4d92375cc4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.65.0 (2024-04-25)
5
+ ------------------
6
+
7
+ * Feature - Add new ValidateStateMachineDefinition operation, which performs syntax checking on the definition of a Amazon States Language (ASL) state machine.
8
+
4
9
  1.64.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.65.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
@@ -347,50 +356,65 @@ module Aws::States
347
356
  # @option options [Aws::States::EndpointProvider] :endpoint_provider
348
357
  # 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
358
  #
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`.
359
+ # @option options [Float] :http_continue_timeout (1)
360
+ # The number of seconds to wait for a 100-continue response before sending the
361
+ # request body. This option has no effect unless the request has "Expect"
362
+ # header set to "100-continue". Defaults to `nil` which disables this
363
+ # behaviour. This value can safely be set per request on the session.
364
+ #
365
+ # @option options [Float] :http_idle_timeout (5)
366
+ # The number of seconds a connection is allowed to sit idle before it
367
+ # is considered stale. Stale connections are closed and removed from the
368
+ # pool before making a request.
369
+ #
370
+ # @option options [Float] :http_open_timeout (15)
371
+ # The default number of seconds to wait for response data.
372
+ # This value can safely be set per-request on the session.
373
+ #
374
+ # @option options [URI::HTTP,String] :http_proxy
375
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
376
+ #
377
+ # @option options [Float] :http_read_timeout (60)
378
+ # The default number of seconds to wait for response data.
379
+ # This value can safely be set per-request on the session.
380
+ #
381
+ # @option options [Boolean] :http_wire_trace (false)
382
+ # When `true`, HTTP debug output will be sent to the `:logger`.
383
+ #
384
+ # @option options [Proc] :on_chunk_received
385
+ # When a Proc object is provided, it will be used as callback when each chunk
386
+ # of the response body is received. It provides three arguments: the chunk,
387
+ # the number of bytes received, and the total number of
388
+ # bytes in the response (or nil if the server did not send a `content-length`).
389
+ #
390
+ # @option options [Proc] :on_chunk_sent
391
+ # When a Proc object is provided, it will be used as callback when each chunk
392
+ # of the request body is sent. It provides three arguments: the chunk,
393
+ # the number of bytes read from the body, and the total number of
394
+ # bytes in the body.
395
+ #
396
+ # @option options [Boolean] :raise_response_errors (true)
397
+ # When `true`, response errors are raised.
398
+ #
399
+ # @option options [String] :ssl_ca_bundle
400
+ # Full path to the SSL certificate authority bundle file that should be used when
401
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
402
+ # `:ssl_ca_directory` the the system default will be used if available.
403
+ #
404
+ # @option options [String] :ssl_ca_directory
405
+ # Full path of the directory that contains the unbundled SSL certificate
406
+ # authority files for verifying peer certificates. If you do
407
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
408
+ # default will be used if available.
378
409
  #
379
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
- # SSL peer certificates are verified when establishing a
381
- # connection.
410
+ # @option options [String] :ssl_ca_store
411
+ # Sets the X509::Store to verify peer certificate.
382
412
  #
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.
413
+ # @option options [Float] :ssl_timeout
414
+ # Sets the SSL timeout in seconds
388
415
  #
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.
416
+ # @option options [Boolean] :ssl_verify_peer (true)
417
+ # When `true`, SSL peer certificates are verified when establishing a connection.
394
418
  #
395
419
  def initialize(*args)
396
420
  super
@@ -3166,6 +3190,77 @@ module Aws::States
3166
3190
  req.send_request(options)
3167
3191
  end
3168
3192
 
3193
+ # Validates the syntax of a state machine definition.
3194
+ #
3195
+ # You can validate that a state machine definition is correct without
3196
+ # creating a state machine resource. Step Functions will implicitly
3197
+ # perform the same syntax check when you invoke `CreateStateMachine` and
3198
+ # `UpdateStateMachine`. State machine definitions are specified using a
3199
+ # JSON-based, structured language. For more information on Amazon States
3200
+ # Language see [Amazon States Language][1] (ASL).
3201
+ #
3202
+ # Suggested uses for `ValidateStateMachineDefinition`:
3203
+ #
3204
+ # * Integrate automated checks into your code review or Continuous
3205
+ # Integration (CI) process to validate state machine definitions
3206
+ # before starting deployments.
3207
+ #
3208
+ # * Run the validation from a Git pre-commit hook to check your state
3209
+ # machine definitions before committing them to your source
3210
+ # repository.
3211
+ #
3212
+ # <note markdown="1"> Errors found in the state machine definition will be returned in the
3213
+ # response as a list of **diagnostic elements**, rather than raise an
3214
+ # exception.
3215
+ #
3216
+ # </note>
3217
+ #
3218
+ #
3219
+ #
3220
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
3221
+ #
3222
+ # @option params [required, String] :definition
3223
+ # The Amazon States Language definition of the state machine. For more
3224
+ # information, see [Amazon States Language][1] (ASL).
3225
+ #
3226
+ #
3227
+ #
3228
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
3229
+ #
3230
+ # @option params [String] :type
3231
+ # The target type of state machine for this definition. The default is
3232
+ # `STANDARD`.
3233
+ #
3234
+ # @return [Types::ValidateStateMachineDefinitionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3235
+ #
3236
+ # * {Types::ValidateStateMachineDefinitionOutput#result #result} => String
3237
+ # * {Types::ValidateStateMachineDefinitionOutput#diagnostics #diagnostics} => Array&lt;Types::ValidateStateMachineDefinitionDiagnostic&gt;
3238
+ #
3239
+ # @example Request syntax with placeholder values
3240
+ #
3241
+ # resp = client.validate_state_machine_definition({
3242
+ # definition: "Definition", # required
3243
+ # type: "STANDARD", # accepts STANDARD, EXPRESS
3244
+ # })
3245
+ #
3246
+ # @example Response structure
3247
+ #
3248
+ # resp.result #=> String, one of "OK", "FAIL"
3249
+ # resp.diagnostics #=> Array
3250
+ # resp.diagnostics[0].severity #=> String, one of "ERROR"
3251
+ # resp.diagnostics[0].code #=> String
3252
+ # resp.diagnostics[0].message #=> String
3253
+ # resp.diagnostics[0].location #=> String
3254
+ #
3255
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinition AWS API Documentation
3256
+ #
3257
+ # @overload validate_state_machine_definition(params = {})
3258
+ # @param [Hash] params ({})
3259
+ def validate_state_machine_definition(params = {}, options = {})
3260
+ req = build_request(:validate_state_machine_definition, params)
3261
+ req.send_request(options)
3262
+ end
3263
+
3169
3264
  # @!endgroup
3170
3265
 
3171
3266
  # @param params ({})
@@ -3179,7 +3274,7 @@ module Aws::States
3179
3274
  params: params,
3180
3275
  config: config)
3181
3276
  context[:gem_name] = 'aws-sdk-states'
3182
- context[:gem_version] = '1.64.0'
3277
+ context[:gem_version] = '1.65.0'
3183
3278
  Seahorse::Client::Request.new(handlers, context)
3184
3279
  end
3185
3280
 
@@ -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.65.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.65.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-04-25 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