aws-sdk-states 1.73.0 → 1.74.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: 6d8470ffa769273e67d0bdaa85d2a1a708c850c61872d3ba2e1131ffa7c57b5f
4
- data.tar.gz: e6f54fb3f66dead49cdbed514ee81d0dc52fe054f19548307f03d12cbb8971f2
3
+ metadata.gz: 280bc3a3690d2f119e28faab199246d6ff9e1a53d2b2830624c350ce68ceeee1
4
+ data.tar.gz: a1e42b4aaaf0333fb5f83c85adec8f8a6048989a53c493f9b3950d1da44caa80
5
5
  SHA512:
6
- metadata.gz: 20fdbcbd4e8e25721998f8c24a98e74ebbfa51e9fa418230b1983faa86295e007bd8b74c134cf7a1cfd5f72a8d421d6411ad2b5d17f1136bb6906956713f7420
7
- data.tar.gz: 7e30d822a05a48cd28f5d6422205f15ead4a633d6ce13ef4a40cc0f0a180f1912584521466822b1012c70b8a10e0f0ce5d7f9480c264826b4c18d6c39e0511af
6
+ metadata.gz: 8f474820a604d9f323be7060e28eaeba152a2489bfb5906406e1cd01d7eb7f762df17b87224589cb9d4abf2b91b786d5f639afab812073f6c6171e292fabdac0
7
+ data.tar.gz: a2fad035f367bb5b52509180730a50c8b00c62cccfe96766cf2b83982322d98d50333f40b717f1754dbb03e70cf308c66c7702c68ef463579e6c4da14cc2b824
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.74.0 (2024-08-29)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for static analysis to ValidateStateMachineDefinition API, which can now return optional WARNING diagnostics for semantic errors on the definition of an Amazon States Language (ASL) state machine.
8
+
4
9
  1.73.0 (2024-07-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.73.0
1
+ 1.74.0
@@ -3338,26 +3338,44 @@ module Aws::States
3338
3338
  # The target type of state machine for this definition. The default is
3339
3339
  # `STANDARD`.
3340
3340
  #
3341
+ # @option params [String] :severity
3342
+ # Minimum level of diagnostics to return. `ERROR` returns only `ERROR`
3343
+ # diagnostics, whereas `WARNING` returns both `WARNING` and `ERROR`
3344
+ # diagnostics. The default is `ERROR`.
3345
+ #
3346
+ # @option params [Integer] :max_results
3347
+ # The maximum number of diagnostics that are returned per call. The
3348
+ # default and maximum value is 100. Setting the value to 0 will also use
3349
+ # the default of 100.
3350
+ #
3351
+ # If the number of diagnostics returned in the response exceeds
3352
+ # `maxResults`, the value of the `truncated` field in the response will
3353
+ # be set to `true`.
3354
+ #
3341
3355
  # @return [Types::ValidateStateMachineDefinitionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3342
3356
  #
3343
3357
  # * {Types::ValidateStateMachineDefinitionOutput#result #result} => String
3344
3358
  # * {Types::ValidateStateMachineDefinitionOutput#diagnostics #diagnostics} => Array<Types::ValidateStateMachineDefinitionDiagnostic>
3359
+ # * {Types::ValidateStateMachineDefinitionOutput#truncated #truncated} => Boolean
3345
3360
  #
3346
3361
  # @example Request syntax with placeholder values
3347
3362
  #
3348
3363
  # resp = client.validate_state_machine_definition({
3349
3364
  # definition: "Definition", # required
3350
3365
  # type: "STANDARD", # accepts STANDARD, EXPRESS
3366
+ # severity: "ERROR", # accepts ERROR, WARNING
3367
+ # max_results: 1,
3351
3368
  # })
3352
3369
  #
3353
3370
  # @example Response structure
3354
3371
  #
3355
3372
  # resp.result #=> String, one of "OK", "FAIL"
3356
3373
  # resp.diagnostics #=> Array
3357
- # resp.diagnostics[0].severity #=> String, one of "ERROR"
3374
+ # resp.diagnostics[0].severity #=> String, one of "ERROR", "WARNING"
3358
3375
  # resp.diagnostics[0].code #=> String
3359
3376
  # resp.diagnostics[0].message #=> String
3360
3377
  # resp.diagnostics[0].location #=> String
3378
+ # resp.truncated #=> Boolean
3361
3379
  #
3362
3380
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinition AWS API Documentation
3363
3381
  #
@@ -3381,7 +3399,7 @@ module Aws::States
3381
3399
  params: params,
3382
3400
  config: config)
3383
3401
  context[:gem_name] = 'aws-sdk-states'
3384
- context[:gem_version] = '1.73.0'
3402
+ context[:gem_version] = '1.74.0'
3385
3403
  Seahorse::Client::Request.new(handlers, context)
3386
3404
  end
3387
3405
 
@@ -254,10 +254,12 @@ module Aws::States
254
254
  ValidateStateMachineDefinitionDiagnosticList = Shapes::ListShape.new(name: 'ValidateStateMachineDefinitionDiagnosticList')
255
255
  ValidateStateMachineDefinitionInput = Shapes::StructureShape.new(name: 'ValidateStateMachineDefinitionInput')
256
256
  ValidateStateMachineDefinitionLocation = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionLocation')
257
+ ValidateStateMachineDefinitionMaxResult = Shapes::IntegerShape.new(name: 'ValidateStateMachineDefinitionMaxResult')
257
258
  ValidateStateMachineDefinitionMessage = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionMessage')
258
259
  ValidateStateMachineDefinitionOutput = Shapes::StructureShape.new(name: 'ValidateStateMachineDefinitionOutput')
259
260
  ValidateStateMachineDefinitionResultCode = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionResultCode')
260
261
  ValidateStateMachineDefinitionSeverity = Shapes::StringShape.new(name: 'ValidateStateMachineDefinitionSeverity')
262
+ ValidateStateMachineDefinitionTruncated = Shapes::BooleanShape.new(name: 'ValidateStateMachineDefinitionTruncated')
261
263
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
262
264
  ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
263
265
  VersionDescription = Shapes::StringShape.new(name: 'VersionDescription')
@@ -1089,10 +1091,13 @@ module Aws::States
1089
1091
 
1090
1092
  ValidateStateMachineDefinitionInput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, required: true, location_name: "definition"))
1091
1093
  ValidateStateMachineDefinitionInput.add_member(:type, Shapes::ShapeRef.new(shape: StateMachineType, location_name: "type"))
1094
+ ValidateStateMachineDefinitionInput.add_member(:severity, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionSeverity, location_name: "severity"))
1095
+ ValidateStateMachineDefinitionInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionMaxResult, location_name: "maxResults"))
1092
1096
  ValidateStateMachineDefinitionInput.struct_class = Types::ValidateStateMachineDefinitionInput
1093
1097
 
1094
1098
  ValidateStateMachineDefinitionOutput.add_member(:result, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionResultCode, required: true, location_name: "result"))
1095
1099
  ValidateStateMachineDefinitionOutput.add_member(:diagnostics, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionDiagnosticList, required: true, location_name: "diagnostics"))
1100
+ ValidateStateMachineDefinitionOutput.add_member(:truncated, Shapes::ShapeRef.new(shape: ValidateStateMachineDefinitionTruncated, location_name: "truncated"))
1096
1101
  ValidateStateMachineDefinitionOutput.struct_class = Types::ValidateStateMachineDefinitionOutput
1097
1102
 
1098
1103
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
@@ -4632,11 +4632,29 @@ module Aws::States
4632
4632
  # `STANDARD`.
4633
4633
  # @return [String]
4634
4634
  #
4635
+ # @!attribute [rw] severity
4636
+ # Minimum level of diagnostics to return. `ERROR` returns only `ERROR`
4637
+ # diagnostics, whereas `WARNING` returns both `WARNING` and `ERROR`
4638
+ # diagnostics. The default is `ERROR`.
4639
+ # @return [String]
4640
+ #
4641
+ # @!attribute [rw] max_results
4642
+ # The maximum number of diagnostics that are returned per call. The
4643
+ # default and maximum value is 100. Setting the value to 0 will also
4644
+ # use the default of 100.
4645
+ #
4646
+ # If the number of diagnostics returned in the response exceeds
4647
+ # `maxResults`, the value of the `truncated` field in the response
4648
+ # will be set to `true`.
4649
+ # @return [Integer]
4650
+ #
4635
4651
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinitionInput AWS API Documentation
4636
4652
  #
4637
4653
  class ValidateStateMachineDefinitionInput < Struct.new(
4638
4654
  :definition,
4639
- :type)
4655
+ :type,
4656
+ :severity,
4657
+ :max_results)
4640
4658
  SENSITIVE = [:definition]
4641
4659
  include Aws::Structure
4642
4660
  end
@@ -4652,11 +4670,18 @@ module Aws::States
4652
4670
  # to help you troubleshoot.
4653
4671
  # @return [Array<Types::ValidateStateMachineDefinitionDiagnostic>]
4654
4672
  #
4673
+ # @!attribute [rw] truncated
4674
+ # The result value will be `true` if the number of diagnostics found
4675
+ # in the workflow definition exceeds `maxResults`. When all
4676
+ # diagnostics results are returned, the value will be `false`.
4677
+ # @return [Boolean]
4678
+ #
4655
4679
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinitionOutput AWS API Documentation
4656
4680
  #
4657
4681
  class ValidateStateMachineDefinitionOutput < Struct.new(
4658
4682
  :result,
4659
- :diagnostics)
4683
+ :diagnostics,
4684
+ :truncated)
4660
4685
  SENSITIVE = []
4661
4686
  include Aws::Structure
4662
4687
  end
@@ -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.73.0'
55
+ GEM_VERSION = '1.74.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -647,11 +647,14 @@ module Aws
647
647
  include ::Seahorse::Client::_ResponseSuccess[Types::ValidateStateMachineDefinitionOutput]
648
648
  def result: () -> ("OK" | "FAIL")
649
649
  def diagnostics: () -> ::Array[Types::ValidateStateMachineDefinitionDiagnostic]
650
+ def truncated: () -> bool
650
651
  end
651
652
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/States/Client.html#validate_state_machine_definition-instance_method
652
653
  def validate_state_machine_definition: (
653
654
  definition: ::String,
654
- ?type: ("STANDARD" | "EXPRESS")
655
+ ?type: ("STANDARD" | "EXPRESS"),
656
+ ?severity: ("ERROR" | "WARNING"),
657
+ ?max_results: ::Integer
655
658
  ) -> _ValidateStateMachineDefinitionResponseSuccess
656
659
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ValidateStateMachineDefinitionResponseSuccess
657
660
  end
data/sig/types.rbs CHANGED
@@ -1111,7 +1111,7 @@ module Aws::States
1111
1111
  end
1112
1112
 
1113
1113
  class ValidateStateMachineDefinitionDiagnostic
1114
- attr_accessor severity: ("ERROR")
1114
+ attr_accessor severity: ("ERROR" | "WARNING")
1115
1115
  attr_accessor code: ::String
1116
1116
  attr_accessor message: ::String
1117
1117
  attr_accessor location: ::String
@@ -1121,12 +1121,15 @@ module Aws::States
1121
1121
  class ValidateStateMachineDefinitionInput
1122
1122
  attr_accessor definition: ::String
1123
1123
  attr_accessor type: ("STANDARD" | "EXPRESS")
1124
+ attr_accessor severity: ("ERROR" | "WARNING")
1125
+ attr_accessor max_results: ::Integer
1124
1126
  SENSITIVE: [:definition]
1125
1127
  end
1126
1128
 
1127
1129
  class ValidateStateMachineDefinitionOutput
1128
1130
  attr_accessor result: ("OK" | "FAIL")
1129
1131
  attr_accessor diagnostics: ::Array[Types::ValidateStateMachineDefinitionDiagnostic]
1132
+ attr_accessor truncated: bool
1130
1133
  SENSITIVE: []
1131
1134
  end
1132
1135
 
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.73.0
4
+ version: 1.74.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-07-25 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core