aws-sdk-states 1.63.0 → 1.65.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-states/client.rb +141 -46
- data/lib/aws-sdk-states/client_api.rb +36 -0
- data/lib/aws-sdk-states/endpoints.rb +14 -0
- data/lib/aws-sdk-states/plugins/endpoints.rb +3 -0
- data/lib/aws-sdk-states/types.rb +79 -0
- data/lib/aws-sdk-states.rb +1 -1
- data/sig/client.rbs +637 -0
- data/sig/errors.rbs +103 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +1096 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f040f29e37c27b335b9d19f9779b0a9690e0bbc4869e6ec00d002e0214304cc
|
4
|
+
data.tar.gz: 87a4f01b1b4a2b117d582ffd9c3eb6f65ce652c0f2f7dafdb0fc36b5002040d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a91fb33c1d72bf0f66a47c0b25264c8a9a0dad00cbcdae7ca5829edadff221458075b815a2165172fc7fa21e080ab1c16ec98f45966f67afbd60eb6babc4957
|
7
|
+
data.tar.gz: 5d41e22f1f40fc979aa325921162d9334946dc3a58b40bca00e8c4697d316ee58d6d9af778edcb952601e5da013d40b30c6f9d39cf15c1171bab3a4d92375cc4
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
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
|
+
|
9
|
+
1.64.0 (2024-01-26)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.63.0 (2023-11-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
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
|
-
#
|
201
|
-
#
|
202
|
-
#
|
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 [
|
351
|
-
#
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
# @option options [Float] :
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
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 [
|
380
|
-
#
|
381
|
-
# connection.
|
410
|
+
# @option options [String] :ssl_ca_store
|
411
|
+
# Sets the X509::Store to verify peer certificate.
|
382
412
|
#
|
383
|
-
# @option options [
|
384
|
-
#
|
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 [
|
390
|
-
#
|
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<Types::ValidateStateMachineDefinitionDiagnostic>
|
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.
|
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
|
@@ -14,6 +14,7 @@ module Aws::States
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::States::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -129,6 +130,8 @@ module Aws::States
|
|
129
130
|
Aws::States::Endpoints::UpdateStateMachine.build(context)
|
130
131
|
when :update_state_machine_alias
|
131
132
|
Aws::States::Endpoints::UpdateStateMachineAlias.build(context)
|
133
|
+
when :validate_state_machine_definition
|
134
|
+
Aws::States::Endpoints::ValidateStateMachineDefinition.build(context)
|
132
135
|
end
|
133
136
|
end
|
134
137
|
end
|
data/lib/aws-sdk-states/types.rb
CHANGED
@@ -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
|
#
|