CreateWorkflowDefinition
Creates a new workflow definition template that can be used to execute multiple workflow runs.
Request Syntax
PUT /workflow-definitions HTTP/1.1
Content-type: application/json
{
"clientToken": "string",
"description": "string",
"exportConfig": {
"s3BucketName": "string",
"s3KeyPrefix": "string"
},
"name": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- clientToken
-
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Type: String
Length Constraints: Minimum length of 33. Maximum length of 256.
Pattern:
[a-zA-Z0-9](-*[a-zA-Z0-9]){0,256}Required: No
- description
-
An optional description of the workflow definition's purpose and functionality.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 4000.
Required: No
- exportConfig
-
Configuration for exporting workflow execution data to Amazon Simple Storage Service.
Type: WorkflowExportConfig object
Required: No
- name
-
The name of the workflow definition. Must be unique within your account and region.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 40.
Pattern:
[a-zA-Z0-9_-]{1,40}Required: Yes
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
The following data is returned in JSON format by the service.
- status
-
The current status of the workflow definition after creation.
Type: String
Valid Values:
ACTIVE | DELETING
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You don't have sufficient permissions to perform this action.
- message
-
You don't have sufficient permissions to perform this action. Verify your IAM permissions and try again.
HTTP Status Code: 403
- ConflictException
-
The request could not be completed due to a conflict with the current state of the resource.
- message
-
The requested operation conflicts with the current state of the resource.
- resourceId
-
The identifier of the resource that caused the conflict.
- resourceType
-
The type of resource that caused the conflict.
HTTP Status Code: 409
- InternalServerException
-
An internal server error occurred. Please try again later.
- message
-
The service encountered an internal error. Try again later.
- reason
-
The reason for the internal server error.
- retryAfterSeconds
-
The number of seconds to wait before retrying the request.
HTTP Status Code: 500
- ServiceQuotaExceededException
-
The request would exceed a service quota limit.
- message
-
The request would exceed one or more service quotas for your account.
- quotaCode
-
The code for the specific quota that was exceeded.
- resourceId
-
The identifier of the resource that exceeded the quota.
- resourceType
-
The type of resource that exceeded the quota.
- serviceCode
-
The service code for the quota that was exceeded.
HTTP Status Code: 402
- ThrottlingException
-
The request was throttled due to too many requests. Please try again later.
- message
-
The request was denied due to request throttling.
- quotaCode
-
The quota code related to the throttling.
- retryAfterSeconds
-
The number of seconds to wait before retrying the throttled request.
- serviceCode
-
The service code where throttling occurred.
HTTP Status Code: 429
- ValidationException
-
The input parameters for the request are invalid.
- fieldList
-
The list of fields that failed validation.
- message
-
The input fails to satisfy the constraints specified by the service.
- reason
-
The reason for the validation failure.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: