aws-sdk-states 1.23.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-states.rb +1 -1
- data/lib/aws-sdk-states/client.rb +42 -1
- data/lib/aws-sdk-states/client_api.rb +38 -0
- data/lib/aws-sdk-states/errors.rb +32 -0
- data/lib/aws-sdk-states/types.rb +156 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46d7008b51a839196c60ec15f8d5cee92d73d522
|
4
|
+
data.tar.gz: 50d3aec12060bca51551bdc0fad91793402bb8fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3054e9bc0314f5034f210e1864a88a30fefc5a567a6cce52c0d5bb7db95db49d86e96d228115a03f3e16bc56088920a3b78458ceba18f567e404790755b2fc43
|
7
|
+
data.tar.gz: 922990a459ae54371f39b39735397725076e3590ea699d5a92928496edb3fd732abfe1ce51cf5842f601f9b1a7e6ca3aa8be50f88c3c63c744b9f7ff9943be85
|
data/lib/aws-sdk-states.rb
CHANGED
@@ -404,6 +404,14 @@ module Aws::States
|
|
404
404
|
# The Amazon Resource Name (ARN) of the IAM role to use for this state
|
405
405
|
# machine.
|
406
406
|
#
|
407
|
+
# @option params [String] :type
|
408
|
+
# Determines whether a Standard or Express state machine is created. If
|
409
|
+
# not set, Standard is created.
|
410
|
+
#
|
411
|
+
# @option params [Types::LoggingConfiguration] :logging_configuration
|
412
|
+
# Defines what execution history events are logged and where they are
|
413
|
+
# logged.
|
414
|
+
#
|
407
415
|
# @option params [Array<Types::Tag>] :tags
|
408
416
|
# Tags to be added when creating a state machine.
|
409
417
|
#
|
@@ -430,6 +438,18 @@ module Aws::States
|
|
430
438
|
# name: "Name", # required
|
431
439
|
# definition: "Definition", # required
|
432
440
|
# role_arn: "Arn", # required
|
441
|
+
# type: "STANDARD", # accepts STANDARD, EXPRESS
|
442
|
+
# logging_configuration: {
|
443
|
+
# level: "ALL", # accepts ALL, ERROR, FATAL, OFF
|
444
|
+
# include_execution_data: false,
|
445
|
+
# destinations: [
|
446
|
+
# {
|
447
|
+
# cloud_watch_logs_log_group: {
|
448
|
+
# log_group_arn: "Arn",
|
449
|
+
# },
|
450
|
+
# },
|
451
|
+
# ],
|
452
|
+
# },
|
433
453
|
# tags: [
|
434
454
|
# {
|
435
455
|
# key: "TagKey",
|
@@ -605,7 +625,9 @@ module Aws::States
|
|
605
625
|
# * {Types::DescribeStateMachineOutput#status #status} => String
|
606
626
|
# * {Types::DescribeStateMachineOutput#definition #definition} => String
|
607
627
|
# * {Types::DescribeStateMachineOutput#role_arn #role_arn} => String
|
628
|
+
# * {Types::DescribeStateMachineOutput#type #type} => String
|
608
629
|
# * {Types::DescribeStateMachineOutput#creation_date #creation_date} => Time
|
630
|
+
# * {Types::DescribeStateMachineOutput#logging_configuration #logging_configuration} => Types::LoggingConfiguration
|
609
631
|
#
|
610
632
|
# @example Request syntax with placeholder values
|
611
633
|
#
|
@@ -620,7 +642,12 @@ module Aws::States
|
|
620
642
|
# resp.status #=> String, one of "ACTIVE", "DELETING"
|
621
643
|
# resp.definition #=> String
|
622
644
|
# resp.role_arn #=> String
|
645
|
+
# resp.type #=> String, one of "STANDARD", "EXPRESS"
|
623
646
|
# resp.creation_date #=> Time
|
647
|
+
# resp.logging_configuration.level #=> String, one of "ALL", "ERROR", "FATAL", "OFF"
|
648
|
+
# resp.logging_configuration.include_execution_data #=> Boolean
|
649
|
+
# resp.logging_configuration.destinations #=> Array
|
650
|
+
# resp.logging_configuration.destinations[0].cloud_watch_logs_log_group.log_group_arn #=> String
|
624
651
|
#
|
625
652
|
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine AWS API Documentation
|
626
653
|
#
|
@@ -1050,6 +1077,7 @@ module Aws::States
|
|
1050
1077
|
# resp.state_machines #=> Array
|
1051
1078
|
# resp.state_machines[0].state_machine_arn #=> String
|
1052
1079
|
# resp.state_machines[0].name #=> String
|
1080
|
+
# resp.state_machines[0].type #=> String, one of "STANDARD", "EXPRESS"
|
1053
1081
|
# resp.state_machines[0].creation_date #=> Time
|
1054
1082
|
# resp.next_token #=> String
|
1055
1083
|
#
|
@@ -1437,6 +1465,8 @@ module Aws::States
|
|
1437
1465
|
# @option params [String] :role_arn
|
1438
1466
|
# The Amazon Resource Name (ARN) of the IAM role of the state machine.
|
1439
1467
|
#
|
1468
|
+
# @option params [Types::LoggingConfiguration] :logging_configuration
|
1469
|
+
#
|
1440
1470
|
# @return [Types::UpdateStateMachineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1441
1471
|
#
|
1442
1472
|
# * {Types::UpdateStateMachineOutput#update_date #update_date} => Time
|
@@ -1447,6 +1477,17 @@ module Aws::States
|
|
1447
1477
|
# state_machine_arn: "Arn", # required
|
1448
1478
|
# definition: "Definition",
|
1449
1479
|
# role_arn: "Arn",
|
1480
|
+
# logging_configuration: {
|
1481
|
+
# level: "ALL", # accepts ALL, ERROR, FATAL, OFF
|
1482
|
+
# include_execution_data: false,
|
1483
|
+
# destinations: [
|
1484
|
+
# {
|
1485
|
+
# cloud_watch_logs_log_group: {
|
1486
|
+
# log_group_arn: "Arn",
|
1487
|
+
# },
|
1488
|
+
# },
|
1489
|
+
# ],
|
1490
|
+
# },
|
1450
1491
|
# })
|
1451
1492
|
#
|
1452
1493
|
# @example Response structure
|
@@ -1475,7 +1516,7 @@ module Aws::States
|
|
1475
1516
|
params: params,
|
1476
1517
|
config: config)
|
1477
1518
|
context[:gem_name] = 'aws-sdk-states'
|
1478
|
-
context[:gem_version] = '1.
|
1519
|
+
context[:gem_version] = '1.24.0'
|
1479
1520
|
Seahorse::Client::Request.new(handlers, context)
|
1480
1521
|
end
|
1481
1522
|
|
@@ -23,6 +23,7 @@ module Aws::States
|
|
23
23
|
ActivityTimedOutEventDetails = Shapes::StructureShape.new(name: 'ActivityTimedOutEventDetails')
|
24
24
|
ActivityWorkerLimitExceeded = Shapes::StructureShape.new(name: 'ActivityWorkerLimitExceeded')
|
25
25
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
26
|
+
CloudWatchLogsLogGroup = Shapes::StructureShape.new(name: 'CloudWatchLogsLogGroup')
|
26
27
|
ConnectorParameters = Shapes::StringShape.new(name: 'ConnectorParameters')
|
27
28
|
CreateActivityInput = Shapes::StructureShape.new(name: 'CreateActivityInput')
|
28
29
|
CreateActivityOutput = Shapes::StructureShape.new(name: 'CreateActivityOutput')
|
@@ -62,9 +63,11 @@ module Aws::States
|
|
62
63
|
HistoryEventList = Shapes::ListShape.new(name: 'HistoryEventList')
|
63
64
|
HistoryEventType = Shapes::StringShape.new(name: 'HistoryEventType')
|
64
65
|
Identity = Shapes::StringShape.new(name: 'Identity')
|
66
|
+
IncludeExecutionData = Shapes::BooleanShape.new(name: 'IncludeExecutionData')
|
65
67
|
InvalidArn = Shapes::StructureShape.new(name: 'InvalidArn')
|
66
68
|
InvalidDefinition = Shapes::StructureShape.new(name: 'InvalidDefinition')
|
67
69
|
InvalidExecutionInput = Shapes::StructureShape.new(name: 'InvalidExecutionInput')
|
70
|
+
InvalidLoggingConfiguration = Shapes::StructureShape.new(name: 'InvalidLoggingConfiguration')
|
68
71
|
InvalidName = Shapes::StructureShape.new(name: 'InvalidName')
|
69
72
|
InvalidOutput = Shapes::StructureShape.new(name: 'InvalidOutput')
|
70
73
|
InvalidToken = Shapes::StructureShape.new(name: 'InvalidToken')
|
@@ -83,6 +86,10 @@ module Aws::States
|
|
83
86
|
ListStateMachinesOutput = Shapes::StructureShape.new(name: 'ListStateMachinesOutput')
|
84
87
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
85
88
|
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
89
|
+
LogDestination = Shapes::StructureShape.new(name: 'LogDestination')
|
90
|
+
LogDestinationList = Shapes::ListShape.new(name: 'LogDestinationList')
|
91
|
+
LogLevel = Shapes::StringShape.new(name: 'LogLevel')
|
92
|
+
LoggingConfiguration = Shapes::StructureShape.new(name: 'LoggingConfiguration')
|
86
93
|
MapIterationEventDetails = Shapes::StructureShape.new(name: 'MapIterationEventDetails')
|
87
94
|
MapStateStartedEventDetails = Shapes::StructureShape.new(name: 'MapStateStartedEventDetails')
|
88
95
|
MissingRequiredParameter = Shapes::StructureShape.new(name: 'MissingRequiredParameter')
|
@@ -112,6 +119,8 @@ module Aws::States
|
|
112
119
|
StateMachineList = Shapes::ListShape.new(name: 'StateMachineList')
|
113
120
|
StateMachineListItem = Shapes::StructureShape.new(name: 'StateMachineListItem')
|
114
121
|
StateMachineStatus = Shapes::StringShape.new(name: 'StateMachineStatus')
|
122
|
+
StateMachineType = Shapes::StringShape.new(name: 'StateMachineType')
|
123
|
+
StateMachineTypeNotSupported = Shapes::StructureShape.new(name: 'StateMachineTypeNotSupported')
|
115
124
|
StopExecutionInput = Shapes::StructureShape.new(name: 'StopExecutionInput')
|
116
125
|
StopExecutionOutput = Shapes::StructureShape.new(name: 'StopExecutionOutput')
|
117
126
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
@@ -181,6 +190,9 @@ module Aws::States
|
|
181
190
|
ActivityWorkerLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
182
191
|
ActivityWorkerLimitExceeded.struct_class = Types::ActivityWorkerLimitExceeded
|
183
192
|
|
193
|
+
CloudWatchLogsLogGroup.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "logGroupArn"))
|
194
|
+
CloudWatchLogsLogGroup.struct_class = Types::CloudWatchLogsLogGroup
|
195
|
+
|
184
196
|
CreateActivityInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
185
197
|
CreateActivityInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
186
198
|
CreateActivityInput.struct_class = Types::CreateActivityInput
|
@@ -192,6 +204,8 @@ module Aws::States
|
|
192
204
|
CreateStateMachineInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
193
205
|
CreateStateMachineInput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, required: true, location_name: "definition"))
|
194
206
|
CreateStateMachineInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "roleArn"))
|
207
|
+
CreateStateMachineInput.add_member(:type, Shapes::ShapeRef.new(shape: StateMachineType, location_name: "type"))
|
208
|
+
CreateStateMachineInput.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfiguration, location_name: "loggingConfiguration"))
|
195
209
|
CreateStateMachineInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
196
210
|
CreateStateMachineInput.struct_class = Types::CreateStateMachineInput
|
197
211
|
|
@@ -248,7 +262,9 @@ module Aws::States
|
|
248
262
|
DescribeStateMachineOutput.add_member(:status, Shapes::ShapeRef.new(shape: StateMachineStatus, location_name: "status"))
|
249
263
|
DescribeStateMachineOutput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, required: true, location_name: "definition"))
|
250
264
|
DescribeStateMachineOutput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "roleArn"))
|
265
|
+
DescribeStateMachineOutput.add_member(:type, Shapes::ShapeRef.new(shape: StateMachineType, required: true, location_name: "type"))
|
251
266
|
DescribeStateMachineOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationDate"))
|
267
|
+
DescribeStateMachineOutput.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfiguration, location_name: "loggingConfiguration"))
|
252
268
|
DescribeStateMachineOutput.struct_class = Types::DescribeStateMachineOutput
|
253
269
|
|
254
270
|
ExecutionAbortedEventDetails.add_member(:error, Shapes::ShapeRef.new(shape: SensitiveError, location_name: "error"))
|
@@ -356,6 +372,9 @@ module Aws::States
|
|
356
372
|
InvalidExecutionInput.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
357
373
|
InvalidExecutionInput.struct_class = Types::InvalidExecutionInput
|
358
374
|
|
375
|
+
InvalidLoggingConfiguration.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
376
|
+
InvalidLoggingConfiguration.struct_class = Types::InvalidLoggingConfiguration
|
377
|
+
|
359
378
|
InvalidName.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
360
379
|
InvalidName.struct_class = Types::InvalidName
|
361
380
|
|
@@ -421,6 +440,16 @@ module Aws::States
|
|
421
440
|
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
422
441
|
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
423
442
|
|
443
|
+
LogDestination.add_member(:cloud_watch_logs_log_group, Shapes::ShapeRef.new(shape: CloudWatchLogsLogGroup, location_name: "cloudWatchLogsLogGroup"))
|
444
|
+
LogDestination.struct_class = Types::LogDestination
|
445
|
+
|
446
|
+
LogDestinationList.member = Shapes::ShapeRef.new(shape: LogDestination)
|
447
|
+
|
448
|
+
LoggingConfiguration.add_member(:level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "level"))
|
449
|
+
LoggingConfiguration.add_member(:include_execution_data, Shapes::ShapeRef.new(shape: IncludeExecutionData, location_name: "includeExecutionData"))
|
450
|
+
LoggingConfiguration.add_member(:destinations, Shapes::ShapeRef.new(shape: LogDestinationList, location_name: "destinations"))
|
451
|
+
LoggingConfiguration.struct_class = Types::LoggingConfiguration
|
452
|
+
|
424
453
|
MapIterationEventDetails.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
425
454
|
MapIterationEventDetails.add_member(:index, Shapes::ShapeRef.new(shape: UnsignedInteger, location_name: "index"))
|
426
455
|
MapIterationEventDetails.struct_class = Types::MapIterationEventDetails
|
@@ -486,9 +515,13 @@ module Aws::States
|
|
486
515
|
|
487
516
|
StateMachineListItem.add_member(:state_machine_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "stateMachineArn"))
|
488
517
|
StateMachineListItem.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
518
|
+
StateMachineListItem.add_member(:type, Shapes::ShapeRef.new(shape: StateMachineType, required: true, location_name: "type"))
|
489
519
|
StateMachineListItem.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationDate"))
|
490
520
|
StateMachineListItem.struct_class = Types::StateMachineListItem
|
491
521
|
|
522
|
+
StateMachineTypeNotSupported.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
523
|
+
StateMachineTypeNotSupported.struct_class = Types::StateMachineTypeNotSupported
|
524
|
+
|
492
525
|
StopExecutionInput.add_member(:execution_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "executionArn"))
|
493
526
|
StopExecutionInput.add_member(:error, Shapes::ShapeRef.new(shape: SensitiveError, location_name: "error"))
|
494
527
|
StopExecutionInput.add_member(:cause, Shapes::ShapeRef.new(shape: SensitiveCause, location_name: "cause"))
|
@@ -575,6 +608,7 @@ module Aws::States
|
|
575
608
|
UpdateStateMachineInput.add_member(:state_machine_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "stateMachineArn"))
|
576
609
|
UpdateStateMachineInput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, location_name: "definition"))
|
577
610
|
UpdateStateMachineInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "roleArn"))
|
611
|
+
UpdateStateMachineInput.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfiguration, location_name: "loggingConfiguration"))
|
578
612
|
UpdateStateMachineInput.struct_class = Types::UpdateStateMachineInput
|
579
613
|
|
580
614
|
UpdateStateMachineOutput.add_member(:update_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updateDate"))
|
@@ -619,9 +653,11 @@ module Aws::States
|
|
619
653
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
|
620
654
|
o.errors << Shapes::ShapeRef.new(shape: InvalidDefinition)
|
621
655
|
o.errors << Shapes::ShapeRef.new(shape: InvalidName)
|
656
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidLoggingConfiguration)
|
622
657
|
o.errors << Shapes::ShapeRef.new(shape: StateMachineAlreadyExists)
|
623
658
|
o.errors << Shapes::ShapeRef.new(shape: StateMachineDeleting)
|
624
659
|
o.errors << Shapes::ShapeRef.new(shape: StateMachineLimitExceeded)
|
660
|
+
o.errors << Shapes::ShapeRef.new(shape: StateMachineTypeNotSupported)
|
625
661
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTags)
|
626
662
|
end)
|
627
663
|
|
@@ -735,6 +771,7 @@ module Aws::States
|
|
735
771
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
|
736
772
|
o.errors << Shapes::ShapeRef.new(shape: InvalidToken)
|
737
773
|
o.errors << Shapes::ShapeRef.new(shape: StateMachineDoesNotExist)
|
774
|
+
o.errors << Shapes::ShapeRef.new(shape: StateMachineTypeNotSupported)
|
738
775
|
o[:pager] = Aws::Pager.new(
|
739
776
|
limit_key: "max_results",
|
740
777
|
tokens: {
|
@@ -856,6 +893,7 @@ module Aws::States
|
|
856
893
|
o.output = Shapes::ShapeRef.new(shape: UpdateStateMachineOutput)
|
857
894
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
|
858
895
|
o.errors << Shapes::ShapeRef.new(shape: InvalidDefinition)
|
896
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidLoggingConfiguration)
|
859
897
|
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameter)
|
860
898
|
o.errors << Shapes::ShapeRef.new(shape: StateMachineDeleting)
|
861
899
|
o.errors << Shapes::ShapeRef.new(shape: StateMachineDoesNotExist)
|
@@ -154,6 +154,22 @@ module Aws::States
|
|
154
154
|
|
155
155
|
end
|
156
156
|
|
157
|
+
class InvalidLoggingConfiguration < ServiceError
|
158
|
+
|
159
|
+
# @param [Seahorse::Client::RequestContext] context
|
160
|
+
# @param [String] message
|
161
|
+
# @param [Aws::States::Types::InvalidLoggingConfiguration] data
|
162
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
163
|
+
super(context, message, data)
|
164
|
+
end
|
165
|
+
|
166
|
+
# @return [String]
|
167
|
+
def message
|
168
|
+
@message || @data[:message]
|
169
|
+
end
|
170
|
+
|
171
|
+
end
|
172
|
+
|
157
173
|
class InvalidName < ServiceError
|
158
174
|
|
159
175
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -303,6 +319,22 @@ module Aws::States
|
|
303
319
|
|
304
320
|
end
|
305
321
|
|
322
|
+
class StateMachineTypeNotSupported < ServiceError
|
323
|
+
|
324
|
+
# @param [Seahorse::Client::RequestContext] context
|
325
|
+
# @param [String] message
|
326
|
+
# @param [Aws::States::Types::StateMachineTypeNotSupported] data
|
327
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
328
|
+
super(context, message, data)
|
329
|
+
end
|
330
|
+
|
331
|
+
# @return [String]
|
332
|
+
def message
|
333
|
+
@message || @data[:message]
|
334
|
+
end
|
335
|
+
|
336
|
+
end
|
337
|
+
|
306
338
|
class TaskDoesNotExist < ServiceError
|
307
339
|
|
308
340
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-states/types.rb
CHANGED
@@ -194,6 +194,25 @@ module Aws::States
|
|
194
194
|
include Aws::Structure
|
195
195
|
end
|
196
196
|
|
197
|
+
# @note When making an API call, you may pass CloudWatchLogsLogGroup
|
198
|
+
# data as a hash:
|
199
|
+
#
|
200
|
+
# {
|
201
|
+
# log_group_arn: "Arn",
|
202
|
+
# }
|
203
|
+
#
|
204
|
+
# @!attribute [rw] log_group_arn
|
205
|
+
# The ARN of the the CloudWatch log group to which you want your logs
|
206
|
+
# emitted to. The ARN must end with `:*`
|
207
|
+
# @return [String]
|
208
|
+
#
|
209
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CloudWatchLogsLogGroup AWS API Documentation
|
210
|
+
#
|
211
|
+
class CloudWatchLogsLogGroup < Struct.new(
|
212
|
+
:log_group_arn)
|
213
|
+
include Aws::Structure
|
214
|
+
end
|
215
|
+
|
197
216
|
# @note When making an API call, you may pass CreateActivityInput
|
198
217
|
# data as a hash:
|
199
218
|
#
|
@@ -277,6 +296,18 @@ module Aws::States
|
|
277
296
|
# name: "Name", # required
|
278
297
|
# definition: "Definition", # required
|
279
298
|
# role_arn: "Arn", # required
|
299
|
+
# type: "STANDARD", # accepts STANDARD, EXPRESS
|
300
|
+
# logging_configuration: {
|
301
|
+
# level: "ALL", # accepts ALL, ERROR, FATAL, OFF
|
302
|
+
# include_execution_data: false,
|
303
|
+
# destinations: [
|
304
|
+
# {
|
305
|
+
# cloud_watch_logs_log_group: {
|
306
|
+
# log_group_arn: "Arn",
|
307
|
+
# },
|
308
|
+
# },
|
309
|
+
# ],
|
310
|
+
# },
|
280
311
|
# tags: [
|
281
312
|
# {
|
282
313
|
# key: "TagKey",
|
@@ -315,6 +346,16 @@ module Aws::States
|
|
315
346
|
# machine.
|
316
347
|
# @return [String]
|
317
348
|
#
|
349
|
+
# @!attribute [rw] type
|
350
|
+
# Determines whether a Standard or Express state machine is created.
|
351
|
+
# If not set, Standard is created.
|
352
|
+
# @return [String]
|
353
|
+
#
|
354
|
+
# @!attribute [rw] logging_configuration
|
355
|
+
# Defines what execution history events are logged and where they are
|
356
|
+
# logged.
|
357
|
+
# @return [Types::LoggingConfiguration]
|
358
|
+
#
|
318
359
|
# @!attribute [rw] tags
|
319
360
|
# Tags to be added when creating a state machine.
|
320
361
|
#
|
@@ -337,6 +378,8 @@ module Aws::States
|
|
337
378
|
:name,
|
338
379
|
:definition,
|
339
380
|
:role_arn,
|
381
|
+
:type,
|
382
|
+
:logging_configuration,
|
340
383
|
:tags)
|
341
384
|
include Aws::Structure
|
342
385
|
end
|
@@ -650,10 +693,16 @@ module Aws::States
|
|
650
693
|
# Step Functions access to AWS resources.)
|
651
694
|
# @return [String]
|
652
695
|
#
|
696
|
+
# @!attribute [rw] type
|
697
|
+
# @return [String]
|
698
|
+
#
|
653
699
|
# @!attribute [rw] creation_date
|
654
700
|
# The date the state machine is created.
|
655
701
|
# @return [Time]
|
656
702
|
#
|
703
|
+
# @!attribute [rw] logging_configuration
|
704
|
+
# @return [Types::LoggingConfiguration]
|
705
|
+
#
|
657
706
|
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineOutput AWS API Documentation
|
658
707
|
#
|
659
708
|
class DescribeStateMachineOutput < Struct.new(
|
@@ -662,7 +711,9 @@ module Aws::States
|
|
662
711
|
:status,
|
663
712
|
:definition,
|
664
713
|
:role_arn,
|
665
|
-
:
|
714
|
+
:type,
|
715
|
+
:creation_date,
|
716
|
+
:logging_configuration)
|
666
717
|
include Aws::Structure
|
667
718
|
end
|
668
719
|
|
@@ -1195,6 +1246,16 @@ module Aws::States
|
|
1195
1246
|
include Aws::Structure
|
1196
1247
|
end
|
1197
1248
|
|
1249
|
+
# @!attribute [rw] message
|
1250
|
+
# @return [String]
|
1251
|
+
#
|
1252
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/InvalidLoggingConfiguration AWS API Documentation
|
1253
|
+
#
|
1254
|
+
class InvalidLoggingConfiguration < Struct.new(
|
1255
|
+
:message)
|
1256
|
+
include Aws::Structure
|
1257
|
+
end
|
1258
|
+
|
1198
1259
|
# The provided name is invalid.
|
1199
1260
|
#
|
1200
1261
|
# @!attribute [rw] message
|
@@ -1556,6 +1617,70 @@ module Aws::States
|
|
1556
1617
|
include Aws::Structure
|
1557
1618
|
end
|
1558
1619
|
|
1620
|
+
# @note When making an API call, you may pass LogDestination
|
1621
|
+
# data as a hash:
|
1622
|
+
#
|
1623
|
+
# {
|
1624
|
+
# cloud_watch_logs_log_group: {
|
1625
|
+
# log_group_arn: "Arn",
|
1626
|
+
# },
|
1627
|
+
# }
|
1628
|
+
#
|
1629
|
+
# @!attribute [rw] cloud_watch_logs_log_group
|
1630
|
+
# An object describing a CloudWatch log group. For more information,
|
1631
|
+
# see [AWS::Logs::LogGroup][1] in the AWS CloudFormation User Guide.
|
1632
|
+
#
|
1633
|
+
#
|
1634
|
+
#
|
1635
|
+
# [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html
|
1636
|
+
# @return [Types::CloudWatchLogsLogGroup]
|
1637
|
+
#
|
1638
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LogDestination AWS API Documentation
|
1639
|
+
#
|
1640
|
+
class LogDestination < Struct.new(
|
1641
|
+
:cloud_watch_logs_log_group)
|
1642
|
+
include Aws::Structure
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
# @note When making an API call, you may pass LoggingConfiguration
|
1646
|
+
# data as a hash:
|
1647
|
+
#
|
1648
|
+
# {
|
1649
|
+
# level: "ALL", # accepts ALL, ERROR, FATAL, OFF
|
1650
|
+
# include_execution_data: false,
|
1651
|
+
# destinations: [
|
1652
|
+
# {
|
1653
|
+
# cloud_watch_logs_log_group: {
|
1654
|
+
# log_group_arn: "Arn",
|
1655
|
+
# },
|
1656
|
+
# },
|
1657
|
+
# ],
|
1658
|
+
# }
|
1659
|
+
#
|
1660
|
+
# @!attribute [rw] level
|
1661
|
+
# Defines which category of execution history events are logged.
|
1662
|
+
# @return [String]
|
1663
|
+
#
|
1664
|
+
# @!attribute [rw] include_execution_data
|
1665
|
+
# Determines whether execution history data is included in your log.
|
1666
|
+
# When set to `FALSE`, data is excluded.
|
1667
|
+
# @return [Boolean]
|
1668
|
+
#
|
1669
|
+
# @!attribute [rw] destinations
|
1670
|
+
# An object that describes where your execution history events will be
|
1671
|
+
# logged. Limited to size 1. Required, if your log level is not set to
|
1672
|
+
# `OFF`.
|
1673
|
+
# @return [Array<Types::LogDestination>]
|
1674
|
+
#
|
1675
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/LoggingConfiguration AWS API Documentation
|
1676
|
+
#
|
1677
|
+
class LoggingConfiguration < Struct.new(
|
1678
|
+
:level,
|
1679
|
+
:include_execution_data,
|
1680
|
+
:destinations)
|
1681
|
+
include Aws::Structure
|
1682
|
+
end
|
1683
|
+
|
1559
1684
|
# Contains details about an iteration of a Map state.
|
1560
1685
|
#
|
1561
1686
|
# @!attribute [rw] name
|
@@ -1915,6 +2040,9 @@ module Aws::States
|
|
1915
2040
|
# * control characters (`U+0000-001F`, `U+007F-009F`)
|
1916
2041
|
# @return [String]
|
1917
2042
|
#
|
2043
|
+
# @!attribute [rw] type
|
2044
|
+
# @return [String]
|
2045
|
+
#
|
1918
2046
|
# @!attribute [rw] creation_date
|
1919
2047
|
# The date the state machine is created.
|
1920
2048
|
# @return [Time]
|
@@ -1924,10 +2052,21 @@ module Aws::States
|
|
1924
2052
|
class StateMachineListItem < Struct.new(
|
1925
2053
|
:state_machine_arn,
|
1926
2054
|
:name,
|
2055
|
+
:type,
|
1927
2056
|
:creation_date)
|
1928
2057
|
include Aws::Structure
|
1929
2058
|
end
|
1930
2059
|
|
2060
|
+
# @!attribute [rw] message
|
2061
|
+
# @return [String]
|
2062
|
+
#
|
2063
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StateMachineTypeNotSupported AWS API Documentation
|
2064
|
+
#
|
2065
|
+
class StateMachineTypeNotSupported < Struct.new(
|
2066
|
+
:message)
|
2067
|
+
include Aws::Structure
|
2068
|
+
end
|
2069
|
+
|
1931
2070
|
# @note When making an API call, you may pass StopExecutionInput
|
1932
2071
|
# data as a hash:
|
1933
2072
|
#
|
@@ -2335,6 +2474,17 @@ module Aws::States
|
|
2335
2474
|
# state_machine_arn: "Arn", # required
|
2336
2475
|
# definition: "Definition",
|
2337
2476
|
# role_arn: "Arn",
|
2477
|
+
# logging_configuration: {
|
2478
|
+
# level: "ALL", # accepts ALL, ERROR, FATAL, OFF
|
2479
|
+
# include_execution_data: false,
|
2480
|
+
# destinations: [
|
2481
|
+
# {
|
2482
|
+
# cloud_watch_logs_log_group: {
|
2483
|
+
# log_group_arn: "Arn",
|
2484
|
+
# },
|
2485
|
+
# },
|
2486
|
+
# ],
|
2487
|
+
# },
|
2338
2488
|
# }
|
2339
2489
|
#
|
2340
2490
|
# @!attribute [rw] state_machine_arn
|
@@ -2354,12 +2504,16 @@ module Aws::States
|
|
2354
2504
|
# The Amazon Resource Name (ARN) of the IAM role of the state machine.
|
2355
2505
|
# @return [String]
|
2356
2506
|
#
|
2507
|
+
# @!attribute [rw] logging_configuration
|
2508
|
+
# @return [Types::LoggingConfiguration]
|
2509
|
+
#
|
2357
2510
|
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateStateMachineInput AWS API Documentation
|
2358
2511
|
#
|
2359
2512
|
class UpdateStateMachineInput < Struct.new(
|
2360
2513
|
:state_machine_arn,
|
2361
2514
|
:definition,
|
2362
|
-
:role_arn
|
2515
|
+
:role_arn,
|
2516
|
+
:logging_configuration)
|
2363
2517
|
include Aws::Structure
|
2364
2518
|
end
|
2365
2519
|
|
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.
|
4
|
+
version: 1.24.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: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|