You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/stepfunctions/steps/service.py
+53-8Lines changed: 53 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
DYNAMODB_SERVICE_NAME="dynamodb"
21
21
ELASTICMAPREDUCE_SERVICE_NAME="elasticmapreduce"
22
22
EVENTBRIDGE_SERVICE_NAME="events"
23
+
GLUE_DATABREW_SERVICE_NAME="databrew"
23
24
SNS_SERVICE_NAME="sns"
24
25
SQS_SERVICE_NAME="sqs"
25
26
@@ -32,14 +33,6 @@ class DynamoDBApi(Enum):
32
33
UpdateItem="updateItem"
33
34
34
35
35
-
classSnsApi(Enum):
36
-
Publish="publish"
37
-
38
-
39
-
classSqsApi(Enum):
40
-
SendMessage="sendMessage"
41
-
42
-
43
36
classElasticMapReduceApi(Enum):
44
37
CreateCluster="createCluster"
45
38
TerminateCluster="terminateCluster"
@@ -54,6 +47,18 @@ class EventBridgeApi(Enum):
54
47
PutEvents="putEvents"
55
48
56
49
50
+
classGlueDataBrewApi(Enum):
51
+
StartJobRun="startJobRun"
52
+
53
+
54
+
classSnsApi(Enum):
55
+
Publish="publish"
56
+
57
+
58
+
classSqsApi(Enum):
59
+
SendMessage="sendMessage"
60
+
61
+
57
62
classDynamoDBGetItemStep(Task):
58
63
"""
59
64
Creates a Task state to get an item from DynamoDB. See `Call DynamoDB APIs with Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/connect-ddb.html>`_ for more details.
Creates a Task state that starts a DataBrew job. See `Manage AWS Glue DataBrew Jobs with Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/connect-databrew.html>`_ for more details.
state_id (str): State name whose length **must be** less than or equal to 128 unicode characters. State names **must be** unique within the scope of the whole state machine.
231
+
comment (str, optional): Human-readable comment or description. (default: None)
232
+
timeout_seconds (int, optional): Positive integer specifying timeout for the state in seconds. If the state runs longer than the specified timeout, then the interpreter fails the state with a `States.Timeout` Error Name. (default: 60)
233
+
timeout_seconds_path (str, optional): Path specifying the state's timeout value in seconds from the state input. When resolved, the path must select a field whose value is a positive integer.
234
+
heartbeat_seconds (int, optional): Positive integer specifying heartbeat timeout for the state in seconds. This value should be lower than the one specified for `timeout_seconds`. If more time than the specified heartbeat elapses between heartbeats from the task, then the interpreter fails the state with a `States.Timeout` Error Name.
235
+
heartbeat_seconds_path (str, optional): Path specifying the state's heartbeat value in seconds from the state input. When resolved, the path must select a field whose value is a positive integer.
236
+
input_path (str, optional): Path applied to the state’s raw input to select some or all of it; that selection is used by the state. (default: '$')
237
+
parameters (dict, optional): The value of this field becomes the effective input for the state.
238
+
result_path (str, optional): Path specifying the raw input’s combination with or replacement by the state’s result. (default: '$')
239
+
output_path (str, optional): Path applied to the state’s output after the application of `result_path`, producing the effective output which serves as the raw input for the next state. (default: '$')
240
+
wait_for_completion (bool, optional): Boolean value set to `True` if the Task state should wait to complete before proceeding to the next step in the workflow. (default: True)
241
+
"""
242
+
ifwait_for_completion:
243
+
"""
244
+
Example resource arn: arn:aws:states:::databrew:startJobRun.sync
0 commit comments