CreateProject
Creates a new DataBrew project.
Request Syntax
POST /projects HTTP/1.1
Content-type: application/json
{
"DatasetName": "string
",
"Name": "string
",
"RecipeName": "string
",
"RoleArn": "string
",
"Sample": {
"Size": number
,
"Type": "string
"
},
"Tags": {
"string
" : "string
"
}
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- DatasetName
-
The name of an existing dataset to associate this project with.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
- Name
-
A unique name for the new project. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
- RecipeName
-
The name of an existing recipe to associate with the project.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
- RoleArn
-
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role to be assumed for this request.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Required: Yes
- Sample
-
Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
Type: Sample object
Required: No
- Tags
-
Metadata tags to apply to this project.
Type: String to string map
Map Entries: Maximum number of 200 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Value Length Constraints: Maximum length of 256.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Name": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- Name
-
The name of the project that you created.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Errors
For information about the errors that are common to all actions, see Common Errors.
- ConflictException
-
Updating or deleting a resource can cause an inconsistent state.
HTTP Status Code: 409
- InternalServerException
-
An internal service failure occurred.
HTTP Status Code: 500
- ServiceQuotaExceededException
-
A service quota is exceeded.
HTTP Status Code: 402
- ValidationException
-
The input parameters for this request failed validation.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: