aws-sdk-states 1.73.0 → 1.75.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: 1a6efd5194ca3d438b17c7fa2fad22801ea49753cfc68bbcc6dd70c88c4d101b
4
+ data.tar.gz: ce178626be047d4458cfaafe34e65db30ff3f24bc34c2d8ff6c2d1b2073fd75c
5
5
  SHA512:
6
- metadata.gz: 20fdbcbd4e8e25721998f8c24a98e74ebbfa51e9fa418230b1983faa86295e007bd8b74c134cf7a1cfd5f72a8d421d6411ad2b5d17f1136bb6906956713f7420
7
- data.tar.gz: 7e30d822a05a48cd28f5d6422205f15ead4a633d6ce13ef4a40cc0f0a180f1912584521466822b1012c70b8a10e0f0ce5d7f9480c264826b4c18d6c39e0511af
6
+ metadata.gz: a6ca16c08c4a194788bab5425b9e20b54524ce4957cfbfaf3e2ffc4eb0f918be2c2bb0a0e5543985ba31c5859c723fe59568e19a67f76945086b846106732798
7
+ data.tar.gz: 86759cdedf8a1591afb23011df6dfd59a3603c40e1c2be776c206b68f0e254f2ecedc1d8c652a5ae8d4f312bc597cbccef58e53710b891818a878b253709963b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.75.0 (2024-09-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.74.0 (2024-08-29)
10
+ ------------------
11
+
12
+ * 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.
13
+
4
14
  1.73.0 (2024-07-25)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.73.0
1
+ 1.75.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
37
38
 
@@ -83,6 +84,7 @@ module Aws::States
83
84
  add_plugin(Aws::Plugins::RequestCompression)
84
85
  add_plugin(Aws::Plugins::DefaultsMode)
85
86
  add_plugin(Aws::Plugins::RecursionDetection)
87
+ add_plugin(Aws::Plugins::Telemetry)
86
88
  add_plugin(Aws::Plugins::Sign)
87
89
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
88
90
  add_plugin(Aws::States::Plugins::Endpoints)
@@ -337,6 +339,16 @@ module Aws::States
337
339
  # ** Please note ** When response stubbing is enabled, no HTTP
338
340
  # requests are made, and retries are disabled.
339
341
  #
342
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
343
+ # Allows you to provide a telemetry provider, which is used to
344
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
345
+ # will not record or emit any telemetry data. The SDK supports the
346
+ # following telemetry providers:
347
+ #
348
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
349
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
350
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
351
+ #
340
352
  # @option options [Aws::TokenProvider] :token_provider
341
353
  # A Bearer Token Provider. This can be an instance of any one of the
342
354
  # following classes:
@@ -3338,26 +3350,44 @@ module Aws::States
3338
3350
  # The target type of state machine for this definition. The default is
3339
3351
  # `STANDARD`.
3340
3352
  #
3353
+ # @option params [String] :severity
3354
+ # Minimum level of diagnostics to return. `ERROR` returns only `ERROR`
3355
+ # diagnostics, whereas `WARNING` returns both `WARNING` and `ERROR`
3356
+ # diagnostics. The default is `ERROR`.
3357
+ #
3358
+ # @option params [Integer] :max_results
3359
+ # The maximum number of diagnostics that are returned per call. The
3360
+ # default and maximum value is 100. Setting the value to 0 will also use
3361
+ # the default of 100.
3362
+ #
3363
+ # If the number of diagnostics returned in the response exceeds
3364
+ # `maxResults`, the value of the `truncated` field in the response will
3365
+ # be set to `true`.
3366
+ #
3341
3367
  # @return [Types::ValidateStateMachineDefinitionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3342
3368
  #
3343
3369
  # * {Types::ValidateStateMachineDefinitionOutput#result #result} => String
3344
3370
  # * {Types::ValidateStateMachineDefinitionOutput#diagnostics #diagnostics} => Array<Types::ValidateStateMachineDefinitionDiagnostic>
3371
+ # * {Types::ValidateStateMachineDefinitionOutput#truncated #truncated} => Boolean
3345
3372
  #
3346
3373
  # @example Request syntax with placeholder values
3347
3374
  #
3348
3375
  # resp = client.validate_state_machine_definition({
3349
3376
  # definition: "Definition", # required
3350
3377
  # type: "STANDARD", # accepts STANDARD, EXPRESS
3378
+ # severity: "ERROR", # accepts ERROR, WARNING
3379
+ # max_results: 1,
3351
3380
  # })
3352
3381
  #
3353
3382
  # @example Response structure
3354
3383
  #
3355
3384
  # resp.result #=> String, one of "OK", "FAIL"
3356
3385
  # resp.diagnostics #=> Array
3357
- # resp.diagnostics[0].severity #=> String, one of "ERROR"
3386
+ # resp.diagnostics[0].severity #=> String, one of "ERROR", "WARNING"
3358
3387
  # resp.diagnostics[0].code #=> String
3359
3388
  # resp.diagnostics[0].message #=> String
3360
3389
  # resp.diagnostics[0].location #=> String
3390
+ # resp.truncated #=> Boolean
3361
3391
  #
3362
3392
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ValidateStateMachineDefinition AWS API Documentation
3363
3393
  #
@@ -3374,14 +3404,19 @@ module Aws::States
3374
3404
  # @api private
3375
3405
  def build_request(operation_name, params = {})
3376
3406
  handlers = @handlers.for(operation_name)
3407
+ tracer = config.telemetry_provider.tracer_provider.tracer(
3408
+ Aws::Telemetry.module_to_tracer_name('Aws::States')
3409
+ )
3377
3410
  context = Seahorse::Client::RequestContext.new(
3378
3411
  operation_name: operation_name,
3379
3412
  operation: config.api.operation(operation_name),
3380
3413
  client: self,
3381
3414
  params: params,
3382
- config: config)
3415
+ config: config,
3416
+ tracer: tracer
3417
+ )
3383
3418
  context[:gem_name] = 'aws-sdk-states'
3384
- context[:gem_version] = '1.73.0'
3419
+ context[:gem_version] = '1.75.0'
3385
3420
  Seahorse::Client::Request.new(handlers, context)
3386
3421
  end
3387
3422
 
@@ -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.75.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -51,6 +51,7 @@ module Aws
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?simple_json: bool,
53
53
  ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
54
55
  ?token_provider: untyped,
55
56
  ?use_dualstack_endpoint: bool,
56
57
  ?use_fips_endpoint: bool,
@@ -647,11 +648,14 @@ module Aws
647
648
  include ::Seahorse::Client::_ResponseSuccess[Types::ValidateStateMachineDefinitionOutput]
648
649
  def result: () -> ("OK" | "FAIL")
649
650
  def diagnostics: () -> ::Array[Types::ValidateStateMachineDefinitionDiagnostic]
651
+ def truncated: () -> bool
650
652
  end
651
653
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/States/Client.html#validate_state_machine_definition-instance_method
652
654
  def validate_state_machine_definition: (
653
655
  definition: ::String,
654
- ?type: ("STANDARD" | "EXPRESS")
656
+ ?type: ("STANDARD" | "EXPRESS"),
657
+ ?severity: ("ERROR" | "WARNING"),
658
+ ?max_results: ::Integer
655
659
  ) -> _ValidateStateMachineDefinitionResponseSuccess
656
660
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ValidateStateMachineDefinitionResponseSuccess
657
661
  end
data/sig/resource.rbs CHANGED
@@ -51,6 +51,7 @@ module Aws
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?simple_json: bool,
53
53
  ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
54
55
  ?token_provider: untyped,
55
56
  ?use_dualstack_endpoint: bool,
56
57
  ?use_fips_endpoint: bool,
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.75.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-09-03 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.201.0
22
+ version: 3.203.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.201.0
32
+ version: 3.203.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement