Table of Contents
A low-level client representing AWS Glue DataBrew
AWS Glue DataBrew is a visual, cloud-scale data-preparation service. DataBrew simplifies data preparation tasks, targeting data issues that are hard to spot and time-consuming to fix. DataBrew empowers users of all technical levels to visualize the data and perform one-click data transformations, with no coding required.
import boto3
client = boto3.client('databrew')
These are the available methods:
Deletes one or more versions of a recipe at a time.
The entire request will be rejected if:
The request will complete successfully, but with partial failures, if:
The LATEST_WORKING version will only be deleted if the recipe has no other versions. If you try to delete LATEST_WORKING while other versions exist (or if they can't be deleted), then LATEST_WORKING will be listed as partial failure in the response.
See also: AWS API Documentation
Request Syntax
response = client.batch_delete_recipe_version(
Name='string',
RecipeVersions=[
'string',
]
)
[REQUIRED]
The name of the recipe whose versions are to be deleted.
[REQUIRED]
An array of version identifiers, for the recipe versions to be deleted. You can specify numeric versions (X.Y ) or LATEST_WORKING . LATEST_PUBLISHED is not supported.
dict
Response Syntax
{
'Name': 'string',
'Errors': [
{
'ErrorCode': 'string',
'ErrorMessage': 'string',
'RecipeVersion': 'string'
},
]
}
Response Structure
(dict) --
Name (string) --
The name of the recipe that was modified.
Errors (list) --
Errors, if any, that occurred while attempting to delete the recipe versions.
(dict) --
Represents any errors encountered when attempting to delete multiple recipe versions.
ErrorCode (string) --
The HTTP status code for the error.
ErrorMessage (string) --
The text of the error message.
RecipeVersion (string) --
The identifier for the recipe version associated with this error.
Exceptions
Check if an operation can be paginated.
Creates a new DataBrew dataset.
See also: AWS API Documentation
Request Syntax
response = client.create_dataset(
Name='string',
Format='CSV'|'JSON'|'PARQUET'|'EXCEL',
FormatOptions={
'Json': {
'MultiLine': True|False
},
'Excel': {
'SheetNames': [
'string',
],
'SheetIndexes': [
123,
],
'HeaderRow': True|False
},
'Csv': {
'Delimiter': 'string',
'HeaderRow': True|False
}
},
Input={
'S3InputDefinition': {
'Bucket': 'string',
'Key': 'string'
},
'DataCatalogInputDefinition': {
'CatalogId': 'string',
'DatabaseName': 'string',
'TableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
},
'DatabaseInputDefinition': {
'GlueConnectionName': 'string',
'DatabaseTableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
}
},
PathOptions={
'LastModifiedDateCondition': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
},
'FilesLimit': {
'MaxFiles': 123,
'OrderedBy': 'LAST_MODIFIED_DATE',
'Order': 'DESCENDING'|'ASCENDING'
},
'Parameters': {
'string': {
'Name': 'string',
'Type': 'Datetime'|'Number'|'String',
'DatetimeOptions': {
'Format': 'string',
'TimezoneOffset': 'string',
'LocaleCode': 'string'
},
'CreateColumn': True|False,
'Filter': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
}
}
}
},
Tags={
'string': 'string'
}
)
[REQUIRED]
The name of the dataset to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
Options that define how JSON input is to be interpreted by DataBrew.
A value that specifies whether JSON input contains embedded new line characters.
Options that define how Excel input is to be interpreted by DataBrew.
One or more named sheets in the Excel file that will be included in the dataset.
One or more sheet numbers in the Excel file that will be included in the dataset.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Options that define how CSV input is to be interpreted by DataBrew.
A single character that specifies the delimiter being used in the CSV file.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
[REQUIRED]
Represents information on how DataBrew can find data, in either the AWS Glue Data Catalog or Amazon S3.
The Amazon S3 location where the data is stored.
The S3 bucket name.
The unique name of the object in the bucket.
The AWS Glue Data Catalog parameters for the data.
The unique identifier of the AWS account that holds the Data Catalog that stores the data.
The name of a database in the Data Catalog.
The name of a database table in the Data Catalog. This table corresponds to a DataBrew dataset.
An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
The S3 bucket name.
The unique name of the object in the bucket.
Connection information for dataset input files stored in a database.
The AWS Glue Connection that stores the connection information for the target database.
The table within the target database.
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
The S3 bucket name.
The unique name of the object in the bucket.
A set of options that defines how DataBrew interprets an S3 path of the dataset.
If provided, this structure defines a date range for matching S3 objects based on their LastModifiedDate attribute in S3.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
If provided, this structure imposes a limit on a number of files that should be selected.
The number of S3 files to select.
A criteria to use for S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
A criteria to use for S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.
A structure that maps names of parameters used in the S3 path of a dataset to their definitions.
Represents a dataset paramater that defines type and conditions for a parameter in the S3 path of the dataset.
The name of the parameter that is used in the dataset's S3 path.
The type of the dataset parameter, can be one of a 'String', 'Number' or 'Datetime'.
Additional parameter options such as a format and a timezone. Required for datetime parameters.
Required option, that defines the datetime format used for a date parameter in the S3 path. Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
Optional value for a timezone offset of the datetime parameter value in the S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
Optional boolean value that defines whether the captured value of this parameter should be loaded as an additional column in the dataset.
The optional filter expression structure to apply additional matching criteria to the parameter.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
Metadata tags to apply to this dataset.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the dataset that you created.
Exceptions
Creates a new job to analyze a dataset and create its data profile.
See also: AWS API Documentation
Request Syntax
response = client.create_profile_job(
DatasetName='string',
EncryptionKeyArn='string',
EncryptionMode='SSE-KMS'|'SSE-S3',
Name='string',
LogSubscription='ENABLE'|'DISABLE',
MaxCapacity=123,
MaxRetries=123,
OutputLocation={
'Bucket': 'string',
'Key': 'string'
},
RoleArn='string',
Tags={
'string': 'string'
},
Timeout=123,
JobSample={
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
)
[REQUIRED]
The name of the dataset that this job is to act upon.
The encryption mode for the job, which can be one of the following:
[REQUIRED]
The name of the job to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
[REQUIRED]
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
The S3 bucket name.
The unique name of the object in the bucket.
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
Metadata tags to apply to this job.
Sample configuration for profile jobs only. Determines the number of rows on which the profile job will be executed. If a JobSample value is not provided, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the job that was created.
Exceptions
Creates a new DataBrew project.
See also: AWS API Documentation
Request Syntax
response = client.create_project(
DatasetName='string',
Name='string',
RecipeName='string',
Sample={
'Size': 123,
'Type': 'FIRST_N'|'LAST_N'|'RANDOM'
},
RoleArn='string',
Tags={
'string': 'string'
}
)
[REQUIRED]
The name of an existing dataset to associate this project with.
[REQUIRED]
A unique name for the new project. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
[REQUIRED]
The name of an existing recipe to associate with the project.
Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
The number of rows in the sample.
The way in which DataBrew obtains rows from a dataset.
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role to be assumed for this request.
Metadata tags to apply to this project.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the project that you created.
Exceptions
Creates a new DataBrew recipe.
See also: AWS API Documentation
Request Syntax
response = client.create_recipe(
Description='string',
Name='string',
Steps=[
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
],
Tags={
'string': 'string'
}
)
[REQUIRED]
A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
[REQUIRED]
An array containing the steps to be performed by the recipe. Each recipe step consists of one recipe action and (optionally) an array of condition expressions.
Represents a single step from a DataBrew recipe to be performed.
The particular action to be performed in the recipe step.
The name of a valid DataBrew transformation to be performed on the data.
Contextual parameters for the transformation.
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
A value that the condition must evaluate to for the condition to succeed.
A column to apply this condition to.
Metadata tags to apply to this recipe.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the recipe that you created.
Exceptions
Creates a new job to transform input data, using steps defined in an existing AWS Glue DataBrew recipe
See also: AWS API Documentation
Request Syntax
response = client.create_recipe_job(
DatasetName='string',
EncryptionKeyArn='string',
EncryptionMode='SSE-KMS'|'SSE-S3',
Name='string',
LogSubscription='ENABLE'|'DISABLE',
MaxCapacity=123,
MaxRetries=123,
Outputs=[
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
ProjectName='string',
RecipeReference={
'Name': 'string',
'RecipeVersion': 'string'
},
RoleArn='string',
Tags={
'string': 'string'
},
Timeout=123
)
The encryption mode for the job, which can be one of the following:
[REQUIRED]
A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
[REQUIRED]
One or more artifacts that represent the output from running the job.
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
The compression algorithm used to compress the output text of the job.
The data format of the output of the job.
The names of one or more partition columns for the output of the job.
The location in Amazon S3 where the job writes its output.
The S3 bucket name.
The unique name of the object in the bucket.
A value that, if true, means that any data in the location specified for output is overwritten with new output.
Represents options that define how DataBrew formats job output files.
Represents a set of options that define the structure of comma-separated value (CSV) job output.
A single character that specifies the delimiter used to create CSV job output.
Represents the name and version of a DataBrew recipe.
The name of the recipe.
The identifier for the version for the recipe.
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
Metadata tags to apply to this job.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the job that you created.
Exceptions
Creates a new schedule for one or more DataBrew jobs. Jobs can be run at a specific date and time, or at regular intervals.
See also: AWS API Documentation
Request Syntax
response = client.create_schedule(
JobNames=[
'string',
],
CronExpression='string',
Tags={
'string': 'string'
},
Name='string'
)
The name or names of one or more jobs to be run.
[REQUIRED]
The date or dates and time or times when the jobs are to be run. For more information, see Cron expressions in the AWS Glue DataBrew Developer Guide .
Metadata tags to apply to this schedule.
[REQUIRED]
A unique name for the schedule. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the schedule that was created.
Exceptions
Deletes a dataset from DataBrew.
See also: AWS API Documentation
Request Syntax
response = client.delete_dataset(
Name='string'
)
[REQUIRED]
The name of the dataset to be deleted.
{
'Name': 'string'
}
Response Structure
The name of the dataset that you deleted.
Exceptions
Deletes the specified DataBrew job.
See also: AWS API Documentation
Request Syntax
response = client.delete_job(
Name='string'
)
[REQUIRED]
The name of the job to be deleted.
{
'Name': 'string'
}
Response Structure
The name of the job that you deleted.
Exceptions
Deletes an existing DataBrew project.
See also: AWS API Documentation
Request Syntax
response = client.delete_project(
Name='string'
)
[REQUIRED]
The name of the project to be deleted.
{
'Name': 'string'
}
Response Structure
The name of the project that you deleted.
Exceptions
Deletes a single version of a DataBrew recipe.
See also: AWS API Documentation
Request Syntax
response = client.delete_recipe_version(
Name='string',
RecipeVersion='string'
)
[REQUIRED]
The name of the recipe.
[REQUIRED]
The version of the recipe to be deleted. You can specify a numeric versions (X.Y ) or LATEST_WORKING . LATEST_PUBLISHED is not supported.
dict
Response Syntax
{
'Name': 'string',
'RecipeVersion': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the recipe that was deleted.
RecipeVersion (string) --
The version of the recipe that was deleted.
Exceptions
Deletes the specified DataBrew schedule.
See also: AWS API Documentation
Request Syntax
response = client.delete_schedule(
Name='string'
)
[REQUIRED]
The name of the schedule to be deleted.
{
'Name': 'string'
}
Response Structure
The name of the schedule that was deleted.
Exceptions
Returns the definition of a specific DataBrew dataset.
See also: AWS API Documentation
Request Syntax
response = client.describe_dataset(
Name='string'
)
[REQUIRED]
The name of the dataset to be described.
{
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'Name': 'string',
'Format': 'CSV'|'JSON'|'PARQUET'|'EXCEL',
'FormatOptions': {
'Json': {
'MultiLine': True|False
},
'Excel': {
'SheetNames': [
'string',
],
'SheetIndexes': [
123,
],
'HeaderRow': True|False
},
'Csv': {
'Delimiter': 'string',
'HeaderRow': True|False
}
},
'Input': {
'S3InputDefinition': {
'Bucket': 'string',
'Key': 'string'
},
'DataCatalogInputDefinition': {
'CatalogId': 'string',
'DatabaseName': 'string',
'TableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
},
'DatabaseInputDefinition': {
'GlueConnectionName': 'string',
'DatabaseTableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
}
},
'LastModifiedDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'Source': 'S3'|'DATA-CATALOG'|'DATABASE',
'PathOptions': {
'LastModifiedDateCondition': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
},
'FilesLimit': {
'MaxFiles': 123,
'OrderedBy': 'LAST_MODIFIED_DATE',
'Order': 'DESCENDING'|'ASCENDING'
},
'Parameters': {
'string': {
'Name': 'string',
'Type': 'Datetime'|'Number'|'String',
'DatetimeOptions': {
'Format': 'string',
'TimezoneOffset': 'string',
'LocaleCode': 'string'
},
'CreateColumn': True|False,
'Filter': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
}
}
}
},
'Tags': {
'string': 'string'
},
'ResourceArn': 'string'
}
Response Structure
The identifier (user name) of the user who created the dataset.
The date and time that the dataset was created.
The name of the dataset.
The file format of a dataset that is created from an S3 file or folder.
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
Options that define how JSON input is to be interpreted by DataBrew.
A value that specifies whether JSON input contains embedded new line characters.
Options that define how Excel input is to be interpreted by DataBrew.
One or more named sheets in the Excel file that will be included in the dataset.
One or more sheet numbers in the Excel file that will be included in the dataset.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Options that define how CSV input is to be interpreted by DataBrew.
A single character that specifies the delimiter being used in the CSV file.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Represents information on how DataBrew can find data, in either the AWS Glue Data Catalog or Amazon S3.
The Amazon S3 location where the data is stored.
The S3 bucket name.
The unique name of the object in the bucket.
The AWS Glue Data Catalog parameters for the data.
The unique identifier of the AWS account that holds the Data Catalog that stores the data.
The name of a database in the Data Catalog.
The name of a database table in the Data Catalog. This table corresponds to a DataBrew dataset.
An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
The S3 bucket name.
The unique name of the object in the bucket.
Connection information for dataset input files stored in a database.
The AWS Glue Connection that stores the connection information for the target database.
The table within the target database.
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
The S3 bucket name.
The unique name of the object in the bucket.
The date and time that the dataset was last modified.
The identifier (user name) of the user who last modified the dataset.
The location of the data for this dataset, Amazon S3 or the AWS Glue Data Catalog.
A set of options that defines how DataBrew interprets an S3 path of the dataset.
If provided, this structure defines a date range for matching S3 objects based on their LastModifiedDate attribute in S3.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
If provided, this structure imposes a limit on a number of files that should be selected.
The number of S3 files to select.
A criteria to use for S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
A criteria to use for S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.
A structure that maps names of parameters used in the S3 path of a dataset to their definitions.
Represents a dataset paramater that defines type and conditions for a parameter in the S3 path of the dataset.
The name of the parameter that is used in the dataset's S3 path.
The type of the dataset parameter, can be one of a 'String', 'Number' or 'Datetime'.
Additional parameter options such as a format and a timezone. Required for datetime parameters.
Required option, that defines the datetime format used for a date parameter in the S3 path. Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
Optional value for a timezone offset of the datetime parameter value in the S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
Optional boolean value that defines whether the captured value of this parameter should be loaded as an additional column in the dataset.
The optional filter expression structure to apply additional matching criteria to the parameter.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
Metadata tags associated with this dataset.
The Amazon Resource Name (ARN) of the dataset.
Exceptions
Returns the definition of a specific DataBrew job.
See also: AWS API Documentation
Request Syntax
response = client.describe_job(
Name='string'
)
[REQUIRED]
The name of the job to be described.
{
'CreateDate': datetime(2015, 1, 1),
'CreatedBy': 'string',
'DatasetName': 'string',
'EncryptionKeyArn': 'string',
'EncryptionMode': 'SSE-KMS'|'SSE-S3',
'Name': 'string',
'Type': 'PROFILE'|'RECIPE',
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'LogSubscription': 'ENABLE'|'DISABLE',
'MaxCapacity': 123,
'MaxRetries': 123,
'Outputs': [
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
'ProjectName': 'string',
'RecipeReference': {
'Name': 'string',
'RecipeVersion': 'string'
},
'ResourceArn': 'string',
'RoleArn': 'string',
'Tags': {
'string': 'string'
},
'Timeout': 123,
'JobSample': {
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
}
Response Structure
The date and time that the job was created.
The identifier (user name) of the user associated with the creation of the job.
The dataset that the job acts upon.
The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.
The encryption mode for the job, which can be one of the following:
The name of the job.
The job type, which must be one of the following:
The identifier (user name) of the user who last modified the job.
The date and time that the job was last modified.
Indicates whether Amazon CloudWatch logging is enabled for this job.
The maximum number of compute nodes that DataBrew can consume when the job processes data.
The maximum number of times to retry the job after a job run fails.
One or more artifacts that represent the output from running the job.
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
The compression algorithm used to compress the output text of the job.
The data format of the output of the job.
The names of one or more partition columns for the output of the job.
The location in Amazon S3 where the job writes its output.
The S3 bucket name.
The unique name of the object in the bucket.
A value that, if true, means that any data in the location specified for output is overwritten with new output.
Represents options that define how DataBrew formats job output files.
Represents a set of options that define the structure of comma-separated value (CSV) job output.
A single character that specifies the delimiter used to create CSV job output.
The DataBrew project associated with this job.
Represents the name and version of a DataBrew recipe.
The name of the recipe.
The identifier for the version for the recipe.
The Amazon Resource Name (ARN) of the job.
The ARN of the AWS Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
Metadata tags associated with this job.
The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT .
Sample configuration for profile jobs only. Determines the number of rows on which the profile job will be executed.
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
Exceptions
Represents one run of a DataBrew job.
See also: AWS API Documentation
Request Syntax
response = client.describe_job_run(
Name='string',
RunId='string'
)
[REQUIRED]
The name of the job being processed during this run.
[REQUIRED]
The unique identifier of the job run.
dict
Response Syntax
{
'Attempt': 123,
'CompletedOn': datetime(2015, 1, 1),
'DatasetName': 'string',
'ErrorMessage': 'string',
'ExecutionTime': 123,
'JobName': 'string',
'RunId': 'string',
'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
'LogSubscription': 'ENABLE'|'DISABLE',
'LogGroupName': 'string',
'Outputs': [
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
'RecipeReference': {
'Name': 'string',
'RecipeVersion': 'string'
},
'StartedBy': 'string',
'StartedOn': datetime(2015, 1, 1),
'JobSample': {
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
}
Response Structure
(dict) --
Attempt (integer) --
The number of times that DataBrew has attempted to run the job.
CompletedOn (datetime) --
The date and time when the job completed processing.
DatasetName (string) --
The name of the dataset for the job to process.
ErrorMessage (string) --
A message indicating an error (if any) that was encountered when the job ran.
ExecutionTime (integer) --
The amount of time, in seconds, during which the job run consumed resources.
JobName (string) --
The name of the job being processed during this run.
RunId (string) --
The unique identifier of the job run.
State (string) --
The current state of the job run entity itself.
LogSubscription (string) --
The current status of Amazon CloudWatch logging for the job run.
LogGroupName (string) --
The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs.
Outputs (list) --
One or more output artifacts from a job run.
(dict) --
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
CompressionFormat (string) --
The compression algorithm used to compress the output text of the job.
Format (string) --
The data format of the output of the job.
PartitionColumns (list) --
The names of one or more partition columns for the output of the job.
Location (dict) --
The location in Amazon S3 where the job writes its output.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
Overwrite (boolean) --
A value that, if true, means that any data in the location specified for output is overwritten with new output.
FormatOptions (dict) --
Represents options that define how DataBrew formats job output files.
Csv (dict) --
Represents a set of options that define the structure of comma-separated value (CSV) job output.
Delimiter (string) --
A single character that specifies the delimiter used to create CSV job output.
RecipeReference (dict) --
Represents the name and version of a DataBrew recipe.
Name (string) --
The name of the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe.
StartedBy (string) --
The Amazon Resource Name (ARN) of the user who started the job run.
StartedOn (datetime) --
The date and time when the job run began.
JobSample (dict) --
Sample configuration for profile jobs only. Determines the number of rows on which the profile job will be executed. If a JobSample value is not provided, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
Mode (string) --
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
Size (integer) --
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
Exceptions
Returns the definition of a specific DataBrew project.
See also: AWS API Documentation
Request Syntax
response = client.describe_project(
Name='string'
)
[REQUIRED]
The name of the project to be described.
{
'CreateDate': datetime(2015, 1, 1),
'CreatedBy': 'string',
'DatasetName': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'Name': 'string',
'RecipeName': 'string',
'ResourceArn': 'string',
'Sample': {
'Size': 123,
'Type': 'FIRST_N'|'LAST_N'|'RANDOM'
},
'RoleArn': 'string',
'Tags': {
'string': 'string'
},
'SessionStatus': 'ASSIGNED'|'FAILED'|'INITIALIZING'|'PROVISIONING'|'READY'|'RECYCLING'|'ROTATING'|'TERMINATED'|'TERMINATING'|'UPDATING',
'OpenedBy': 'string',
'OpenDate': datetime(2015, 1, 1)
}
Response Structure
The date and time that the project was created.
The identifier (user name) of the user who created the project.
The dataset associated with the project.
The date and time that the project was last modified.
The identifier (user name) of the user who last modified the project.
The name of the project.
The recipe associated with this job.
The Amazon Resource Name (ARN) of the project.
Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
The number of rows in the sample.
The way in which DataBrew obtains rows from a dataset.
The ARN of the AWS Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
Metadata tags associated with this project.
Describes the current state of the session:
The identifier (user name) of the user that opened the project for use.
The date and time when the project was opened.
Exceptions
Returns the definition of a specific DataBrew recipe corresponding to a particular version.
See also: AWS API Documentation
Request Syntax
response = client.describe_recipe(
Name='string',
RecipeVersion='string'
)
[REQUIRED]
The name of the recipe to be described.
dict
Response Syntax
{
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ProjectName': 'string',
'PublishedBy': 'string',
'PublishedDate': datetime(2015, 1, 1),
'Description': 'string',
'Name': 'string',
'Steps': [
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
],
'Tags': {
'string': 'string'
},
'ResourceArn': 'string',
'RecipeVersion': 'string'
}
Response Structure
(dict) --
CreatedBy (string) --
The identifier (user name) of the user who created the recipe.
CreateDate (datetime) --
The date and time that the recipe was created.
LastModifiedBy (string) --
The identifier (user name) of the user who last modified the recipe.
LastModifiedDate (datetime) --
The date and time that the recipe was last modified.
ProjectName (string) --
The name of the project associated with this recipe.
PublishedBy (string) --
The identifier (user name) of the user who last published the recipe.
PublishedDate (datetime) --
The date and time when the recipe was last published.
Description (string) --
The description of the recipe.
Name (string) --
The name of the recipe.
Steps (list) --
One or more steps to be performed by the recipe. Each step consists of an action, and the conditions under which the action should succeed.
(dict) --
Represents a single step from a DataBrew recipe to be performed.
Action (dict) --
The particular action to be performed in the recipe step.
Operation (string) --
The name of a valid DataBrew transformation to be performed on the data.
Parameters (dict) --
Contextual parameters for the transformation.
ConditionExpressions (list) --
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
(dict) --
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
Condition (string) --
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
Value (string) --
A value that the condition must evaluate to for the condition to succeed.
TargetColumn (string) --
A column to apply this condition to.
Tags (dict) --
Metadata tags associated with this project.
ResourceArn (string) --
The ARN of the recipe.
RecipeVersion (string) --
The recipe version identifier.
Exceptions
Returns the definition of a specific DataBrew schedule.
See also: AWS API Documentation
Request Syntax
response = client.describe_schedule(
Name='string'
)
[REQUIRED]
The name of the schedule to be described.
{
'CreateDate': datetime(2015, 1, 1),
'CreatedBy': 'string',
'JobNames': [
'string',
],
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ResourceArn': 'string',
'CronExpression': 'string',
'Tags': {
'string': 'string'
},
'Name': 'string'
}
Response Structure
The date and time that the schedule was created.
The identifier (user name) of the user who created the schedule.
The name or names of one or more jobs to be run by using the schedule.
The identifier (user name) of the user who last modified the schedule.
The date and time that the schedule was last modified.
The Amazon Resource Name (ARN) of the schedule.
The date or dates and time or times when the jobs are to be run for the schedule. For more information, see Cron expressions in the AWS Glue DataBrew Developer Guide .
Metadata tags associated with this schedule.
The name of the schedule.
Exceptions
Generate a presigned url given a client, its method, and arguments
The presigned url
Create a paginator for an operation.
Returns an object that can wait for some condition.
Lists all of the DataBrew datasets.
See also: AWS API Documentation
Request Syntax
response = client.list_datasets(
MaxResults=123,
NextToken='string'
)
dict
Response Syntax
{
'Datasets': [
{
'AccountId': 'string',
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'Name': 'string',
'Format': 'CSV'|'JSON'|'PARQUET'|'EXCEL',
'FormatOptions': {
'Json': {
'MultiLine': True|False
},
'Excel': {
'SheetNames': [
'string',
],
'SheetIndexes': [
123,
],
'HeaderRow': True|False
},
'Csv': {
'Delimiter': 'string',
'HeaderRow': True|False
}
},
'Input': {
'S3InputDefinition': {
'Bucket': 'string',
'Key': 'string'
},
'DataCatalogInputDefinition': {
'CatalogId': 'string',
'DatabaseName': 'string',
'TableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
},
'DatabaseInputDefinition': {
'GlueConnectionName': 'string',
'DatabaseTableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
}
},
'LastModifiedDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'Source': 'S3'|'DATA-CATALOG'|'DATABASE',
'PathOptions': {
'LastModifiedDateCondition': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
},
'FilesLimit': {
'MaxFiles': 123,
'OrderedBy': 'LAST_MODIFIED_DATE',
'Order': 'DESCENDING'|'ASCENDING'
},
'Parameters': {
'string': {
'Name': 'string',
'Type': 'Datetime'|'Number'|'String',
'DatetimeOptions': {
'Format': 'string',
'TimezoneOffset': 'string',
'LocaleCode': 'string'
},
'CreateColumn': True|False,
'Filter': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
}
}
}
},
'Tags': {
'string': 'string'
},
'ResourceArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Datasets (list) --
A list of datasets that are defined.
(dict) --
Represents a dataset that can be processed by DataBrew.
AccountId (string) --
The ID of the AWS account that owns the dataset.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the dataset.
CreateDate (datetime) --
The date and time that the dataset was created.
Name (string) --
The unique name of the dataset.
Format (string) --
The file format of a dataset that is created from an S3 file or folder.
FormatOptions (dict) --
A set of options that define how DataBrew interprets the data in the dataset.
Json (dict) --
Options that define how JSON input is to be interpreted by DataBrew.
MultiLine (boolean) --
A value that specifies whether JSON input contains embedded new line characters.
Excel (dict) --
Options that define how Excel input is to be interpreted by DataBrew.
SheetNames (list) --
One or more named sheets in the Excel file that will be included in the dataset.
SheetIndexes (list) --
One or more sheet numbers in the Excel file that will be included in the dataset.
HeaderRow (boolean) --
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Csv (dict) --
Options that define how CSV input is to be interpreted by DataBrew.
Delimiter (string) --
A single character that specifies the delimiter being used in the CSV file.
HeaderRow (boolean) --
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Input (dict) --
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3.
S3InputDefinition (dict) --
The Amazon S3 location where the data is stored.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
DataCatalogInputDefinition (dict) --
The AWS Glue Data Catalog parameters for the data.
CatalogId (string) --
The unique identifier of the AWS account that holds the Data Catalog that stores the data.
DatabaseName (string) --
The name of a database in the Data Catalog.
TableName (string) --
The name of a database table in the Data Catalog. This table corresponds to a DataBrew dataset.
TempDirectory (dict) --
An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
DatabaseInputDefinition (dict) --
Connection information for dataset input files stored in a database.
GlueConnectionName (string) --
The AWS Glue Connection that stores the connection information for the target database.
DatabaseTableName (string) --
The table within the target database.
TempDirectory (dict) --
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
LastModifiedDate (datetime) --
The last modification date and time of the dataset.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the dataset.
Source (string) --
The location of the data for the dataset, either Amazon S3 or the AWS Glue Data Catalog.
PathOptions (dict) --
A set of options that defines how DataBrew interprets an S3 path of the dataset.
LastModifiedDateCondition (dict) --
If provided, this structure defines a date range for matching S3 objects based on their LastModifiedDate attribute in S3.
Expression (string) --
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
ValuesMap (dict) --
The map of substitution variable names to their values used in this filter expression.
FilesLimit (dict) --
If provided, this structure imposes a limit on a number of files that should be selected.
MaxFiles (integer) --
The number of S3 files to select.
OrderedBy (string) --
A criteria to use for S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
Order (string) --
A criteria to use for S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.
Parameters (dict) --
A structure that maps names of parameters used in the S3 path of a dataset to their definitions.
(string) --
(dict) --
Represents a dataset paramater that defines type and conditions for a parameter in the S3 path of the dataset.
Name (string) --
The name of the parameter that is used in the dataset's S3 path.
Type (string) --
The type of the dataset parameter, can be one of a 'String', 'Number' or 'Datetime'.
DatetimeOptions (dict) --
Additional parameter options such as a format and a timezone. Required for datetime parameters.
Format (string) --
Required option, that defines the datetime format used for a date parameter in the S3 path. Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
TimezoneOffset (string) --
Optional value for a timezone offset of the datetime parameter value in the S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
LocaleCode (string) --
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
CreateColumn (boolean) --
Optional boolean value that defines whether the captured value of this parameter should be loaded as an additional column in the dataset.
Filter (dict) --
The optional filter expression structure to apply additional matching criteria to the parameter.
Expression (string) --
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
ValuesMap (dict) --
The map of substitution variable names to their values used in this filter expression.
Tags (dict) --
Metadata tags that have been applied to the dataset.
ResourceArn (string) --
The unique Amazon Resource Name (ARN) for the dataset.
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
Lists all of the previous runs of a particular DataBrew job.
See also: AWS API Documentation
Request Syntax
response = client.list_job_runs(
Name='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
The name of the job.
dict
Response Syntax
{
'JobRuns': [
{
'Attempt': 123,
'CompletedOn': datetime(2015, 1, 1),
'DatasetName': 'string',
'ErrorMessage': 'string',
'ExecutionTime': 123,
'JobName': 'string',
'RunId': 'string',
'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
'LogSubscription': 'ENABLE'|'DISABLE',
'LogGroupName': 'string',
'Outputs': [
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
'RecipeReference': {
'Name': 'string',
'RecipeVersion': 'string'
},
'StartedBy': 'string',
'StartedOn': datetime(2015, 1, 1),
'JobSample': {
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
JobRuns (list) --
A list of job runs that have occurred for the specified job.
(dict) --
Represents one run of a DataBrew job.
Attempt (integer) --
The number of times that DataBrew has attempted to run the job.
CompletedOn (datetime) --
The date and time when the job completed processing.
DatasetName (string) --
The name of the dataset for the job to process.
ErrorMessage (string) --
A message indicating an error (if any) that was encountered when the job ran.
ExecutionTime (integer) --
The amount of time, in seconds, during which a job run consumed resources.
JobName (string) --
The name of the job being processed during this run.
RunId (string) --
The unique identifier of the job run.
State (string) --
The current state of the job run entity itself.
LogSubscription (string) --
The current status of Amazon CloudWatch logging for the job run.
LogGroupName (string) --
The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs.
Outputs (list) --
One or more output artifacts from a job run.
(dict) --
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
CompressionFormat (string) --
The compression algorithm used to compress the output text of the job.
Format (string) --
The data format of the output of the job.
PartitionColumns (list) --
The names of one or more partition columns for the output of the job.
Location (dict) --
The location in Amazon S3 where the job writes its output.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
Overwrite (boolean) --
A value that, if true, means that any data in the location specified for output is overwritten with new output.
FormatOptions (dict) --
Represents options that define how DataBrew formats job output files.
Csv (dict) --
Represents a set of options that define the structure of comma-separated value (CSV) job output.
Delimiter (string) --
A single character that specifies the delimiter used to create CSV job output.
RecipeReference (dict) --
The set of steps processed by the job.
Name (string) --
The name of the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe.
StartedBy (string) --
The Amazon Resource Name (ARN) of the user who initiated the job run.
StartedOn (datetime) --
The date and time when the job run began.
JobSample (dict) --
A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.
Mode (string) --
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
Size (integer) --
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
Lists all of the DataBrew jobs that are defined.
See also: AWS API Documentation
Request Syntax
response = client.list_jobs(
DatasetName='string',
MaxResults=123,
NextToken='string',
ProjectName='string'
)
dict
Response Syntax
{
'Jobs': [
{
'AccountId': 'string',
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'DatasetName': 'string',
'EncryptionKeyArn': 'string',
'EncryptionMode': 'SSE-KMS'|'SSE-S3',
'Name': 'string',
'Type': 'PROFILE'|'RECIPE',
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'LogSubscription': 'ENABLE'|'DISABLE',
'MaxCapacity': 123,
'MaxRetries': 123,
'Outputs': [
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
'ProjectName': 'string',
'RecipeReference': {
'Name': 'string',
'RecipeVersion': 'string'
},
'ResourceArn': 'string',
'RoleArn': 'string',
'Timeout': 123,
'Tags': {
'string': 'string'
},
'JobSample': {
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Jobs (list) --
A list of jobs that are defined.
(dict) --
Represents all of the attributes of a DataBrew job.
AccountId (string) --
The ID of the AWS account that owns the job.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the job.
CreateDate (datetime) --
The date and time that the job was created.
DatasetName (string) --
A dataset that the job is to process.
EncryptionKeyArn (string) --
The Amazon Resource Name (ARN) of an encryption key that is used to protect the job output. For more information, see Encrypting data written by DataBrew jobs
EncryptionMode (string) --
The encryption mode for the job, which can be one of the following:
Name (string) --
The unique name of the job.
Type (string) --
The job type of the job, which must be one of the following:
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the job.
LastModifiedDate (datetime) --
The modification date and time of the job.
LogSubscription (string) --
The current status of Amazon CloudWatch logging for the job.
MaxCapacity (integer) --
The maximum number of nodes that can be consumed when the job processes data.
MaxRetries (integer) --
The maximum number of times to retry the job after a job run fails.
Outputs (list) --
One or more artifacts that represent output from running the job.
(dict) --
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
CompressionFormat (string) --
The compression algorithm used to compress the output text of the job.
Format (string) --
The data format of the output of the job.
PartitionColumns (list) --
The names of one or more partition columns for the output of the job.
Location (dict) --
The location in Amazon S3 where the job writes its output.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
Overwrite (boolean) --
A value that, if true, means that any data in the location specified for output is overwritten with new output.
FormatOptions (dict) --
Represents options that define how DataBrew formats job output files.
Csv (dict) --
Represents a set of options that define the structure of comma-separated value (CSV) job output.
Delimiter (string) --
A single character that specifies the delimiter used to create CSV job output.
ProjectName (string) --
The name of the project that the job is associated with.
RecipeReference (dict) --
A set of steps that the job runs.
Name (string) --
The name of the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe.
ResourceArn (string) --
The unique Amazon Resource Name (ARN) for the job.
RoleArn (string) --
The Amazon Resource Name (ARN) of the role to be assumed for this job.
Timeout (integer) --
The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT .
Tags (dict) --
Metadata tags that have been applied to the job.
JobSample (dict) --
A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a JobSample value isn't provided, the default value is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.
Mode (string) --
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
Size (integer) --
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
Lists all of the DataBrew projects that are defined.
See also: AWS API Documentation
Request Syntax
response = client.list_projects(
NextToken='string',
MaxResults=123
)
dict
Response Syntax
{
'Projects': [
{
'AccountId': 'string',
'CreateDate': datetime(2015, 1, 1),
'CreatedBy': 'string',
'DatasetName': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'Name': 'string',
'RecipeName': 'string',
'ResourceArn': 'string',
'Sample': {
'Size': 123,
'Type': 'FIRST_N'|'LAST_N'|'RANDOM'
},
'Tags': {
'string': 'string'
},
'RoleArn': 'string',
'OpenedBy': 'string',
'OpenDate': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Projects (list) --
A list of projects that are defined .
(dict) --
Represents all of the attributes of a DataBrew project.
AccountId (string) --
The ID of the AWS account that owns the project.
CreateDate (datetime) --
The date and time that the project was created.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who crated the project.
DatasetName (string) --
The dataset that the project is to act upon.
LastModifiedDate (datetime) --
The last modification date and time for the project.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the project.
Name (string) --
The unique name of a project.
RecipeName (string) --
The name of a recipe that will be developed during a project session.
ResourceArn (string) --
The Amazon Resource Name (ARN) for the project.
Sample (dict) --
The sample size and sampling type to apply to the data. If this parameter isn't specified, then the sample consists of the first 500 rows from the dataset.
Size (integer) --
The number of rows in the sample.
Type (string) --
The way in which DataBrew obtains rows from a dataset.
Tags (dict) --
Metadata tags that have been applied to the project.
RoleArn (string) --
The Amazon Resource Name (ARN) of the role that will be assumed for this project.
OpenedBy (string) --
The Amazon Resource Name (ARN) of the user that opened the project for use.
OpenDate (datetime) --
The date and time when the project was opened.
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
Lists the versions of a particular DataBrew recipe, except for LATEST_WORKING .
See also: AWS API Documentation
Request Syntax
response = client.list_recipe_versions(
MaxResults=123,
NextToken='string',
Name='string'
)
[REQUIRED]
The name of the recipe for which to return version information.
dict
Response Syntax
{
'NextToken': 'string',
'Recipes': [
{
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ProjectName': 'string',
'PublishedBy': 'string',
'PublishedDate': datetime(2015, 1, 1),
'Description': 'string',
'Name': 'string',
'ResourceArn': 'string',
'Steps': [
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
],
'Tags': {
'string': 'string'
},
'RecipeVersion': 'string'
},
]
}
Response Structure
(dict) --
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Recipes (list) --
A list of versions for the specified recipe.
(dict) --
Represents one or more actions to be performed on a DataBrew dataset.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the recipe.
CreateDate (datetime) --
The date and time that the recipe was created.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the recipe.
LastModifiedDate (datetime) --
The last modification date and time of the recipe.
ProjectName (string) --
The name of the project that the recipe is associated with.
PublishedBy (string) --
The Amazon Resource Name (ARN) of the user who published the recipe.
PublishedDate (datetime) --
The date and time when the recipe was published.
Description (string) --
The description of the recipe.
Name (string) --
The unique name for the recipe.
ResourceArn (string) --
The Amazon Resource Name (ARN) for the recipe.
Steps (list) --
A list of steps that are defined by the recipe.
(dict) --
Represents a single step from a DataBrew recipe to be performed.
Action (dict) --
The particular action to be performed in the recipe step.
Operation (string) --
The name of a valid DataBrew transformation to be performed on the data.
Parameters (dict) --
Contextual parameters for the transformation.
ConditionExpressions (list) --
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
(dict) --
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
Condition (string) --
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
Value (string) --
A value that the condition must evaluate to for the condition to succeed.
TargetColumn (string) --
A column to apply this condition to.
Tags (dict) --
Metadata tags that have been applied to the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe. Must be one of the following:
Exceptions
Lists all of the DataBrew recipes that are defined.
See also: AWS API Documentation
Request Syntax
response = client.list_recipes(
MaxResults=123,
NextToken='string',
RecipeVersion='string'
)
Return only those recipes with a version identifier of LATEST_WORKING or LATEST_PUBLISHED . If RecipeVersion is omitted, ListRecipes returns all of the LATEST_PUBLISHED recipe versions.
Valid values: LATEST_WORKING | LATEST_PUBLISHED
dict
Response Syntax
{
'Recipes': [
{
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ProjectName': 'string',
'PublishedBy': 'string',
'PublishedDate': datetime(2015, 1, 1),
'Description': 'string',
'Name': 'string',
'ResourceArn': 'string',
'Steps': [
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
],
'Tags': {
'string': 'string'
},
'RecipeVersion': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Recipes (list) --
A list of recipes that are defined.
(dict) --
Represents one or more actions to be performed on a DataBrew dataset.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the recipe.
CreateDate (datetime) --
The date and time that the recipe was created.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the recipe.
LastModifiedDate (datetime) --
The last modification date and time of the recipe.
ProjectName (string) --
The name of the project that the recipe is associated with.
PublishedBy (string) --
The Amazon Resource Name (ARN) of the user who published the recipe.
PublishedDate (datetime) --
The date and time when the recipe was published.
Description (string) --
The description of the recipe.
Name (string) --
The unique name for the recipe.
ResourceArn (string) --
The Amazon Resource Name (ARN) for the recipe.
Steps (list) --
A list of steps that are defined by the recipe.
(dict) --
Represents a single step from a DataBrew recipe to be performed.
Action (dict) --
The particular action to be performed in the recipe step.
Operation (string) --
The name of a valid DataBrew transformation to be performed on the data.
Parameters (dict) --
Contextual parameters for the transformation.
ConditionExpressions (list) --
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
(dict) --
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
Condition (string) --
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
Value (string) --
A value that the condition must evaluate to for the condition to succeed.
TargetColumn (string) --
A column to apply this condition to.
Tags (dict) --
Metadata tags that have been applied to the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe. Must be one of the following:
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
Lists the DataBrew schedules that are defined.
See also: AWS API Documentation
Request Syntax
response = client.list_schedules(
JobName='string',
MaxResults=123,
NextToken='string'
)
dict
Response Syntax
{
'Schedules': [
{
'AccountId': 'string',
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'JobNames': [
'string',
],
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ResourceArn': 'string',
'CronExpression': 'string',
'Tags': {
'string': 'string'
},
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Schedules (list) --
A list of schedules that are defined.
(dict) --
Represents one or more dates and times when a job is to run.
AccountId (string) --
The ID of the AWS account that owns the schedule.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the schedule.
CreateDate (datetime) --
The date and time that the schedule was created.
JobNames (list) --
A list of jobs to be run, according to the schedule.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the schedule.
LastModifiedDate (datetime) --
The date and time when the schedule was last modified.
ResourceArn (string) --
The Amazon Resource Name (ARN) of the schedule.
CronExpression (string) --
The dates and times when the job is to run. For more information, see Cron expressions in the AWS Glue DataBrew Developer Guide .
Tags (dict) --
Metadata tags that have been applied to the schedule.
Name (string) --
The name of the schedule.
NextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
Lists all the tags for a DataBrew resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) string that uniquely identifies the DataBrew resource.
{
'Tags': {
'string': 'string'
}
}
Response Structure
A list of tags associated with the DataBrew resource.
Exceptions
Publishes a new version of a DataBrew recipe.
See also: AWS API Documentation
Request Syntax
response = client.publish_recipe(
Description='string',
Name='string'
)
[REQUIRED]
The name of the recipe to be published.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the recipe that you published.
Exceptions
Performs a recipe step within an interactive DataBrew session that's currently open.
See also: AWS API Documentation
Request Syntax
response = client.send_project_session_action(
Preview=True|False,
Name='string',
RecipeStep={
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
StepIndex=123,
ClientSessionId='string',
ViewFrame={
'StartColumnIndex': 123,
'ColumnRange': 123,
'HiddenColumns': [
'string',
]
}
)
[REQUIRED]
The name of the project to apply the action to.
Represents a single step from a DataBrew recipe to be performed.
The particular action to be performed in the recipe step.
The name of a valid DataBrew transformation to be performed on the data.
Contextual parameters for the transformation.
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
A value that the condition must evaluate to for the condition to succeed.
A column to apply this condition to.
Represents the data being transformed during an action.
The starting index for the range of columns to return in the view frame.
The number of columns to include in the view frame, beginning with the StartColumnIndex value and ignoring any columns in the HiddenColumns list.
A list of columns to hide in the view frame.
dict
Response Syntax
{
'Result': 'string',
'Name': 'string',
'ActionId': 123
}
Response Structure
(dict) --
Result (string) --
A message indicating the result of performing the action.
Name (string) --
The name of the project that was affected by the action.
ActionId (integer) --
A unique identifier for the action that was performed.
Exceptions
Runs a DataBrew job.
See also: AWS API Documentation
Request Syntax
response = client.start_job_run(
Name='string'
)
[REQUIRED]
The name of the job to be run.
{
'RunId': 'string'
}
Response Structure
A system-generated identifier for this particular job run.
Exceptions
Creates an interactive session, enabling you to manipulate data in a DataBrew project.
See also: AWS API Documentation
Request Syntax
response = client.start_project_session(
Name='string',
AssumeControl=True|False
)
[REQUIRED]
The name of the project to act upon.
dict
Response Syntax
{
'Name': 'string',
'ClientSessionId': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the project to be acted upon.
ClientSessionId (string) --
A system-generated identifier for the session.
Exceptions
Stops a particular run of a job.
See also: AWS API Documentation
Request Syntax
response = client.stop_job_run(
Name='string',
RunId='string'
)
[REQUIRED]
The name of the job to be stopped.
[REQUIRED]
The ID of the job run to be stopped.
dict
Response Syntax
{
'RunId': 'string'
}
Response Structure
(dict) --
RunId (string) --
The ID of the job run that you stopped.
Exceptions
Adds metadata tags to a DataBrew resource, such as a dataset, project, recipe, job, or schedule.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags={
'string': 'string'
}
)
[REQUIRED]
The DataBrew resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN). For DataBrew, you can tag a dataset, a job, a project, or a recipe.
[REQUIRED]
One or more tags to be assigned to the resource.
dict
Response Syntax
{}
Response Structure
Exceptions
Removes metadata tags from a DataBrew resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceArn='string',
TagKeys=[
'string',
]
)
[REQUIRED]
A DataBrew resource from which you want to remove a tag or tags. The value for this parameter is an Amazon Resource Name (ARN).
[REQUIRED]
The tag keys (names) of one or more tags to be removed.
dict
Response Syntax
{}
Response Structure
Exceptions
Modifies the definition of an existing DataBrew dataset.
See also: AWS API Documentation
Request Syntax
response = client.update_dataset(
Name='string',
Format='CSV'|'JSON'|'PARQUET'|'EXCEL',
FormatOptions={
'Json': {
'MultiLine': True|False
},
'Excel': {
'SheetNames': [
'string',
],
'SheetIndexes': [
123,
],
'HeaderRow': True|False
},
'Csv': {
'Delimiter': 'string',
'HeaderRow': True|False
}
},
Input={
'S3InputDefinition': {
'Bucket': 'string',
'Key': 'string'
},
'DataCatalogInputDefinition': {
'CatalogId': 'string',
'DatabaseName': 'string',
'TableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
},
'DatabaseInputDefinition': {
'GlueConnectionName': 'string',
'DatabaseTableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
}
},
PathOptions={
'LastModifiedDateCondition': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
},
'FilesLimit': {
'MaxFiles': 123,
'OrderedBy': 'LAST_MODIFIED_DATE',
'Order': 'DESCENDING'|'ASCENDING'
},
'Parameters': {
'string': {
'Name': 'string',
'Type': 'Datetime'|'Number'|'String',
'DatetimeOptions': {
'Format': 'string',
'TimezoneOffset': 'string',
'LocaleCode': 'string'
},
'CreateColumn': True|False,
'Filter': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
}
}
}
}
)
[REQUIRED]
The name of the dataset to be updated.
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
Options that define how JSON input is to be interpreted by DataBrew.
A value that specifies whether JSON input contains embedded new line characters.
Options that define how Excel input is to be interpreted by DataBrew.
One or more named sheets in the Excel file that will be included in the dataset.
One or more sheet numbers in the Excel file that will be included in the dataset.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Options that define how CSV input is to be interpreted by DataBrew.
A single character that specifies the delimiter being used in the CSV file.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
[REQUIRED]
Represents information on how DataBrew can find data, in either the AWS Glue Data Catalog or Amazon S3.
The Amazon S3 location where the data is stored.
The S3 bucket name.
The unique name of the object in the bucket.
The AWS Glue Data Catalog parameters for the data.
The unique identifier of the AWS account that holds the Data Catalog that stores the data.
The name of a database in the Data Catalog.
The name of a database table in the Data Catalog. This table corresponds to a DataBrew dataset.
An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
The S3 bucket name.
The unique name of the object in the bucket.
Connection information for dataset input files stored in a database.
The AWS Glue Connection that stores the connection information for the target database.
The table within the target database.
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
The S3 bucket name.
The unique name of the object in the bucket.
A set of options that defines how DataBrew interprets an S3 path of the dataset.
If provided, this structure defines a date range for matching S3 objects based on their LastModifiedDate attribute in S3.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
If provided, this structure imposes a limit on a number of files that should be selected.
The number of S3 files to select.
A criteria to use for S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
A criteria to use for S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.
A structure that maps names of parameters used in the S3 path of a dataset to their definitions.
Represents a dataset paramater that defines type and conditions for a parameter in the S3 path of the dataset.
The name of the parameter that is used in the dataset's S3 path.
The type of the dataset parameter, can be one of a 'String', 'Number' or 'Datetime'.
Additional parameter options such as a format and a timezone. Required for datetime parameters.
Required option, that defines the datetime format used for a date parameter in the S3 path. Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
Optional value for a timezone offset of the datetime parameter value in the S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
Optional boolean value that defines whether the captured value of this parameter should be loaded as an additional column in the dataset.
The optional filter expression structure to apply additional matching criteria to the parameter.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the dataset that you updated.
Exceptions
Modifies the definition of an existing profile job.
See also: AWS API Documentation
Request Syntax
response = client.update_profile_job(
EncryptionKeyArn='string',
EncryptionMode='SSE-KMS'|'SSE-S3',
Name='string',
LogSubscription='ENABLE'|'DISABLE',
MaxCapacity=123,
MaxRetries=123,
OutputLocation={
'Bucket': 'string',
'Key': 'string'
},
RoleArn='string',
Timeout=123,
JobSample={
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
)
The encryption mode for the job, which can be one of the following:
[REQUIRED]
The name of the job to be updated.
[REQUIRED]
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
The S3 bucket name.
The unique name of the object in the bucket.
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
Sample configuration for Profile Jobs only. Determines the number of rows on which the Profile job will be executed. If a JobSample value is not provided for profile jobs, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the job that was updated.
Exceptions
Modifies the definition of an existing DataBrew project.
See also: AWS API Documentation
Request Syntax
response = client.update_project(
Sample={
'Size': 123,
'Type': 'FIRST_N'|'LAST_N'|'RANDOM'
},
RoleArn='string',
Name='string'
)
Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
The number of rows in the sample.
The way in which DataBrew obtains rows from a dataset.
[REQUIRED]
The Amazon Resource Name (ARN) of the IAM role to be assumed for this request.
[REQUIRED]
The name of the project to be updated.
dict
Response Syntax
{
'LastModifiedDate': datetime(2015, 1, 1),
'Name': 'string'
}
Response Structure
(dict) --
LastModifiedDate (datetime) --
The date and time that the project was last modified.
Name (string) --
The name of the project that you updated.
Exceptions
Modifies the definition of the LATEST_WORKING version of a DataBrew recipe.
See also: AWS API Documentation
Request Syntax
response = client.update_recipe(
Description='string',
Name='string',
Steps=[
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
]
)
[REQUIRED]
The name of the recipe to be updated.
One or more steps to be performed by the recipe. Each step consists of an action, and the conditions under which the action should succeed.
Represents a single step from a DataBrew recipe to be performed.
The particular action to be performed in the recipe step.
The name of a valid DataBrew transformation to be performed on the data.
Contextual parameters for the transformation.
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
A value that the condition must evaluate to for the condition to succeed.
A column to apply this condition to.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the recipe that was updated.
Exceptions
Modifies the definition of an existing DataBrew recipe job.
See also: AWS API Documentation
Request Syntax
response = client.update_recipe_job(
EncryptionKeyArn='string',
EncryptionMode='SSE-KMS'|'SSE-S3',
Name='string',
LogSubscription='ENABLE'|'DISABLE',
MaxCapacity=123,
MaxRetries=123,
Outputs=[
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
RoleArn='string',
Timeout=123
)
The encryption mode for the job, which can be one of the following:
[REQUIRED]
The name of the job to update.
[REQUIRED]
One or more artifacts that represent the output from running the job.
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
The compression algorithm used to compress the output text of the job.
The data format of the output of the job.
The names of one or more partition columns for the output of the job.
The location in Amazon S3 where the job writes its output.
The S3 bucket name.
The unique name of the object in the bucket.
A value that, if true, means that any data in the location specified for output is overwritten with new output.
Represents options that define how DataBrew formats job output files.
Represents a set of options that define the structure of comma-separated value (CSV) job output.
A single character that specifies the delimiter used to create CSV job output.
[REQUIRED]
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the job that you updated.
Exceptions
Modifies the definition of an existing DataBrew schedule.
See also: AWS API Documentation
Request Syntax
response = client.update_schedule(
JobNames=[
'string',
],
CronExpression='string',
Name='string'
)
The name or names of one or more jobs to be run for this schedule.
[REQUIRED]
The date or dates and time or times when the jobs are to be run. For more information, see Cron expressions in the AWS Glue DataBrew Developer Guide .
[REQUIRED]
The name of the schedule to update.
dict
Response Syntax
{
'Name': 'string'
}
Response Structure
(dict) --
Name (string) --
The name of the schedule that was updated.
Exceptions
The available paginators are:
paginator = client.get_paginator('list_datasets')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_datasets().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
{
'Datasets': [
{
'AccountId': 'string',
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'Name': 'string',
'Format': 'CSV'|'JSON'|'PARQUET'|'EXCEL',
'FormatOptions': {
'Json': {
'MultiLine': True|False
},
'Excel': {
'SheetNames': [
'string',
],
'SheetIndexes': [
123,
],
'HeaderRow': True|False
},
'Csv': {
'Delimiter': 'string',
'HeaderRow': True|False
}
},
'Input': {
'S3InputDefinition': {
'Bucket': 'string',
'Key': 'string'
},
'DataCatalogInputDefinition': {
'CatalogId': 'string',
'DatabaseName': 'string',
'TableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
},
'DatabaseInputDefinition': {
'GlueConnectionName': 'string',
'DatabaseTableName': 'string',
'TempDirectory': {
'Bucket': 'string',
'Key': 'string'
}
}
},
'LastModifiedDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'Source': 'S3'|'DATA-CATALOG'|'DATABASE',
'PathOptions': {
'LastModifiedDateCondition': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
},
'FilesLimit': {
'MaxFiles': 123,
'OrderedBy': 'LAST_MODIFIED_DATE',
'Order': 'DESCENDING'|'ASCENDING'
},
'Parameters': {
'string': {
'Name': 'string',
'Type': 'Datetime'|'Number'|'String',
'DatetimeOptions': {
'Format': 'string',
'TimezoneOffset': 'string',
'LocaleCode': 'string'
},
'CreateColumn': True|False,
'Filter': {
'Expression': 'string',
'ValuesMap': {
'string': 'string'
}
}
}
}
},
'Tags': {
'string': 'string'
},
'ResourceArn': 'string'
},
],
}
Response Structure
A list of datasets that are defined.
Represents a dataset that can be processed by DataBrew.
The ID of the AWS account that owns the dataset.
The Amazon Resource Name (ARN) of the user who created the dataset.
The date and time that the dataset was created.
The unique name of the dataset.
The file format of a dataset that is created from an S3 file or folder.
A set of options that define how DataBrew interprets the data in the dataset.
Options that define how JSON input is to be interpreted by DataBrew.
A value that specifies whether JSON input contains embedded new line characters.
Options that define how Excel input is to be interpreted by DataBrew.
One or more named sheets in the Excel file that will be included in the dataset.
One or more sheet numbers in the Excel file that will be included in the dataset.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Options that define how CSV input is to be interpreted by DataBrew.
A single character that specifies the delimiter being used in the CSV file.
A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3.
The Amazon S3 location where the data is stored.
The S3 bucket name.
The unique name of the object in the bucket.
The AWS Glue Data Catalog parameters for the data.
The unique identifier of the AWS account that holds the Data Catalog that stores the data.
The name of a database in the Data Catalog.
The name of a database table in the Data Catalog. This table corresponds to a DataBrew dataset.
An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
The S3 bucket name.
The unique name of the object in the bucket.
Connection information for dataset input files stored in a database.
The AWS Glue Connection that stores the connection information for the target database.
The table within the target database.
Represents an Amazon S3 location (bucket name and object key) where DataBrew can read input data, or write output from a job.
The S3 bucket name.
The unique name of the object in the bucket.
The last modification date and time of the dataset.
The Amazon Resource Name (ARN) of the user who last modified the dataset.
The location of the data for the dataset, either Amazon S3 or the AWS Glue Data Catalog.
A set of options that defines how DataBrew interprets an S3 path of the dataset.
If provided, this structure defines a date range for matching S3 objects based on their LastModifiedDate attribute in S3.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
If provided, this structure imposes a limit on a number of files that should be selected.
The number of S3 files to select.
A criteria to use for S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
A criteria to use for S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.
A structure that maps names of parameters used in the S3 path of a dataset to their definitions.
Represents a dataset paramater that defines type and conditions for a parameter in the S3 path of the dataset.
The name of the parameter that is used in the dataset's S3 path.
The type of the dataset parameter, can be one of a 'String', 'Number' or 'Datetime'.
Additional parameter options such as a format and a timezone. Required for datetime parameters.
Required option, that defines the datetime format used for a date parameter in the S3 path. Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
Optional value for a timezone offset of the datetime parameter value in the S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
Optional boolean value that defines whether the captured value of this parameter should be loaded as an additional column in the dataset.
The optional filter expression structure to apply additional matching criteria to the parameter.
The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, "(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)". Substitution variables should start with ':' symbol.
The map of substitution variable names to their values used in this filter expression.
Metadata tags that have been applied to the dataset.
The unique Amazon Resource Name (ARN) for the dataset.
paginator = client.get_paginator('list_job_runs')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_job_runs().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Name='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the job.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'JobRuns': [
{
'Attempt': 123,
'CompletedOn': datetime(2015, 1, 1),
'DatasetName': 'string',
'ErrorMessage': 'string',
'ExecutionTime': 123,
'JobName': 'string',
'RunId': 'string',
'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
'LogSubscription': 'ENABLE'|'DISABLE',
'LogGroupName': 'string',
'Outputs': [
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
'RecipeReference': {
'Name': 'string',
'RecipeVersion': 'string'
},
'StartedBy': 'string',
'StartedOn': datetime(2015, 1, 1),
'JobSample': {
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
},
],
}
Response Structure
(dict) --
JobRuns (list) --
A list of job runs that have occurred for the specified job.
(dict) --
Represents one run of a DataBrew job.
Attempt (integer) --
The number of times that DataBrew has attempted to run the job.
CompletedOn (datetime) --
The date and time when the job completed processing.
DatasetName (string) --
The name of the dataset for the job to process.
ErrorMessage (string) --
A message indicating an error (if any) that was encountered when the job ran.
ExecutionTime (integer) --
The amount of time, in seconds, during which a job run consumed resources.
JobName (string) --
The name of the job being processed during this run.
RunId (string) --
The unique identifier of the job run.
State (string) --
The current state of the job run entity itself.
LogSubscription (string) --
The current status of Amazon CloudWatch logging for the job run.
LogGroupName (string) --
The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs.
Outputs (list) --
One or more output artifacts from a job run.
(dict) --
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
CompressionFormat (string) --
The compression algorithm used to compress the output text of the job.
Format (string) --
The data format of the output of the job.
PartitionColumns (list) --
The names of one or more partition columns for the output of the job.
Location (dict) --
The location in Amazon S3 where the job writes its output.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
Overwrite (boolean) --
A value that, if true, means that any data in the location specified for output is overwritten with new output.
FormatOptions (dict) --
Represents options that define how DataBrew formats job output files.
Csv (dict) --
Represents a set of options that define the structure of comma-separated value (CSV) job output.
Delimiter (string) --
A single character that specifies the delimiter used to create CSV job output.
RecipeReference (dict) --
The set of steps processed by the job.
Name (string) --
The name of the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe.
StartedBy (string) --
The Amazon Resource Name (ARN) of the user who initiated the job run.
StartedOn (datetime) --
The date and time when the job run began.
JobSample (dict) --
A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.
Mode (string) --
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
Size (integer) --
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
paginator = client.get_paginator('list_jobs')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_jobs().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
DatasetName='string',
ProjectName='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Jobs': [
{
'AccountId': 'string',
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'DatasetName': 'string',
'EncryptionKeyArn': 'string',
'EncryptionMode': 'SSE-KMS'|'SSE-S3',
'Name': 'string',
'Type': 'PROFILE'|'RECIPE',
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'LogSubscription': 'ENABLE'|'DISABLE',
'MaxCapacity': 123,
'MaxRetries': 123,
'Outputs': [
{
'CompressionFormat': 'GZIP'|'LZ4'|'SNAPPY'|'BZIP2'|'DEFLATE'|'LZO'|'BROTLI'|'ZSTD'|'ZLIB',
'Format': 'CSV'|'JSON'|'PARQUET'|'GLUEPARQUET'|'AVRO'|'ORC'|'XML',
'PartitionColumns': [
'string',
],
'Location': {
'Bucket': 'string',
'Key': 'string'
},
'Overwrite': True|False,
'FormatOptions': {
'Csv': {
'Delimiter': 'string'
}
}
},
],
'ProjectName': 'string',
'RecipeReference': {
'Name': 'string',
'RecipeVersion': 'string'
},
'ResourceArn': 'string',
'RoleArn': 'string',
'Timeout': 123,
'Tags': {
'string': 'string'
},
'JobSample': {
'Mode': 'FULL_DATASET'|'CUSTOM_ROWS',
'Size': 123
}
},
],
}
Response Structure
(dict) --
Jobs (list) --
A list of jobs that are defined.
(dict) --
Represents all of the attributes of a DataBrew job.
AccountId (string) --
The ID of the AWS account that owns the job.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the job.
CreateDate (datetime) --
The date and time that the job was created.
DatasetName (string) --
A dataset that the job is to process.
EncryptionKeyArn (string) --
The Amazon Resource Name (ARN) of an encryption key that is used to protect the job output. For more information, see Encrypting data written by DataBrew jobs
EncryptionMode (string) --
The encryption mode for the job, which can be one of the following:
Name (string) --
The unique name of the job.
Type (string) --
The job type of the job, which must be one of the following:
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the job.
LastModifiedDate (datetime) --
The modification date and time of the job.
LogSubscription (string) --
The current status of Amazon CloudWatch logging for the job.
MaxCapacity (integer) --
The maximum number of nodes that can be consumed when the job processes data.
MaxRetries (integer) --
The maximum number of times to retry the job after a job run fails.
Outputs (list) --
One or more artifacts that represent output from running the job.
(dict) --
Represents options that specify how and where DataBrew writes the output generated by recipe jobs or profile jobs.
CompressionFormat (string) --
The compression algorithm used to compress the output text of the job.
Format (string) --
The data format of the output of the job.
PartitionColumns (list) --
The names of one or more partition columns for the output of the job.
Location (dict) --
The location in Amazon S3 where the job writes its output.
Bucket (string) --
The S3 bucket name.
Key (string) --
The unique name of the object in the bucket.
Overwrite (boolean) --
A value that, if true, means that any data in the location specified for output is overwritten with new output.
FormatOptions (dict) --
Represents options that define how DataBrew formats job output files.
Csv (dict) --
Represents a set of options that define the structure of comma-separated value (CSV) job output.
Delimiter (string) --
A single character that specifies the delimiter used to create CSV job output.
ProjectName (string) --
The name of the project that the job is associated with.
RecipeReference (dict) --
A set of steps that the job runs.
Name (string) --
The name of the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe.
ResourceArn (string) --
The unique Amazon Resource Name (ARN) for the job.
RoleArn (string) --
The Amazon Resource Name (ARN) of the role to be assumed for this job.
Timeout (integer) --
The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT .
Tags (dict) --
Metadata tags that have been applied to the job.
JobSample (dict) --
A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a JobSample value isn't provided, the default value is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.
Mode (string) --
A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
Size (integer) --
The Size parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
Long.MAX_VALUE = 9223372036854775807
paginator = client.get_paginator('list_projects')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_projects().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
{
'Projects': [
{
'AccountId': 'string',
'CreateDate': datetime(2015, 1, 1),
'CreatedBy': 'string',
'DatasetName': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'Name': 'string',
'RecipeName': 'string',
'ResourceArn': 'string',
'Sample': {
'Size': 123,
'Type': 'FIRST_N'|'LAST_N'|'RANDOM'
},
'Tags': {
'string': 'string'
},
'RoleArn': 'string',
'OpenedBy': 'string',
'OpenDate': datetime(2015, 1, 1)
},
],
}
Response Structure
A list of projects that are defined .
Represents all of the attributes of a DataBrew project.
The ID of the AWS account that owns the project.
The date and time that the project was created.
The Amazon Resource Name (ARN) of the user who crated the project.
The dataset that the project is to act upon.
The last modification date and time for the project.
The Amazon Resource Name (ARN) of the user who last modified the project.
The unique name of a project.
The name of a recipe that will be developed during a project session.
The Amazon Resource Name (ARN) for the project.
The sample size and sampling type to apply to the data. If this parameter isn't specified, then the sample consists of the first 500 rows from the dataset.
The number of rows in the sample.
The way in which DataBrew obtains rows from a dataset.
Metadata tags that have been applied to the project.
The Amazon Resource Name (ARN) of the role that will be assumed for this project.
The Amazon Resource Name (ARN) of the user that opened the project for use.
The date and time when the project was opened.
paginator = client.get_paginator('list_recipe_versions')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_recipe_versions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Name='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the recipe for which to return version information.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Recipes': [
{
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ProjectName': 'string',
'PublishedBy': 'string',
'PublishedDate': datetime(2015, 1, 1),
'Description': 'string',
'Name': 'string',
'ResourceArn': 'string',
'Steps': [
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
],
'Tags': {
'string': 'string'
},
'RecipeVersion': 'string'
},
]
}
Response Structure
(dict) --
Recipes (list) --
A list of versions for the specified recipe.
(dict) --
Represents one or more actions to be performed on a DataBrew dataset.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the recipe.
CreateDate (datetime) --
The date and time that the recipe was created.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the recipe.
LastModifiedDate (datetime) --
The last modification date and time of the recipe.
ProjectName (string) --
The name of the project that the recipe is associated with.
PublishedBy (string) --
The Amazon Resource Name (ARN) of the user who published the recipe.
PublishedDate (datetime) --
The date and time when the recipe was published.
Description (string) --
The description of the recipe.
Name (string) --
The unique name for the recipe.
ResourceArn (string) --
The Amazon Resource Name (ARN) for the recipe.
Steps (list) --
A list of steps that are defined by the recipe.
(dict) --
Represents a single step from a DataBrew recipe to be performed.
Action (dict) --
The particular action to be performed in the recipe step.
Operation (string) --
The name of a valid DataBrew transformation to be performed on the data.
Parameters (dict) --
Contextual parameters for the transformation.
ConditionExpressions (list) --
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
(dict) --
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
Condition (string) --
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
Value (string) --
A value that the condition must evaluate to for the condition to succeed.
TargetColumn (string) --
A column to apply this condition to.
Tags (dict) --
Metadata tags that have been applied to the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe. Must be one of the following:
paginator = client.get_paginator('list_recipes')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_recipes().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
RecipeVersion='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Return only those recipes with a version identifier of LATEST_WORKING or LATEST_PUBLISHED . If RecipeVersion is omitted, ListRecipes returns all of the LATEST_PUBLISHED recipe versions.
Valid values: LATEST_WORKING | LATEST_PUBLISHED
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Recipes': [
{
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ProjectName': 'string',
'PublishedBy': 'string',
'PublishedDate': datetime(2015, 1, 1),
'Description': 'string',
'Name': 'string',
'ResourceArn': 'string',
'Steps': [
{
'Action': {
'Operation': 'string',
'Parameters': {
'string': 'string'
}
},
'ConditionExpressions': [
{
'Condition': 'string',
'Value': 'string',
'TargetColumn': 'string'
},
]
},
],
'Tags': {
'string': 'string'
},
'RecipeVersion': 'string'
},
],
}
Response Structure
(dict) --
Recipes (list) --
A list of recipes that are defined.
(dict) --
Represents one or more actions to be performed on a DataBrew dataset.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the recipe.
CreateDate (datetime) --
The date and time that the recipe was created.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the recipe.
LastModifiedDate (datetime) --
The last modification date and time of the recipe.
ProjectName (string) --
The name of the project that the recipe is associated with.
PublishedBy (string) --
The Amazon Resource Name (ARN) of the user who published the recipe.
PublishedDate (datetime) --
The date and time when the recipe was published.
Description (string) --
The description of the recipe.
Name (string) --
The unique name for the recipe.
ResourceArn (string) --
The Amazon Resource Name (ARN) for the recipe.
Steps (list) --
A list of steps that are defined by the recipe.
(dict) --
Represents a single step from a DataBrew recipe to be performed.
Action (dict) --
The particular action to be performed in the recipe step.
Operation (string) --
The name of a valid DataBrew transformation to be performed on the data.
Parameters (dict) --
Contextual parameters for the transformation.
ConditionExpressions (list) --
One or more conditions that must be met for the recipe step to succeed.
Note
All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.
(dict) --
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
Condition (string) --
A specific condition to apply to a recipe action. For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
Value (string) --
A value that the condition must evaluate to for the condition to succeed.
TargetColumn (string) --
A column to apply this condition to.
Tags (dict) --
Metadata tags that have been applied to the recipe.
RecipeVersion (string) --
The identifier for the version for the recipe. Must be one of the following:
paginator = client.get_paginator('list_schedules')
Creates an iterator that will paginate through responses from GlueDataBrew.Client.list_schedules().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
JobName='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Schedules': [
{
'AccountId': 'string',
'CreatedBy': 'string',
'CreateDate': datetime(2015, 1, 1),
'JobNames': [
'string',
],
'LastModifiedBy': 'string',
'LastModifiedDate': datetime(2015, 1, 1),
'ResourceArn': 'string',
'CronExpression': 'string',
'Tags': {
'string': 'string'
},
'Name': 'string'
},
],
}
Response Structure
(dict) --
Schedules (list) --
A list of schedules that are defined.
(dict) --
Represents one or more dates and times when a job is to run.
AccountId (string) --
The ID of the AWS account that owns the schedule.
CreatedBy (string) --
The Amazon Resource Name (ARN) of the user who created the schedule.
CreateDate (datetime) --
The date and time that the schedule was created.
JobNames (list) --
A list of jobs to be run, according to the schedule.
LastModifiedBy (string) --
The Amazon Resource Name (ARN) of the user who last modified the schedule.
LastModifiedDate (datetime) --
The date and time when the schedule was last modified.
ResourceArn (string) --
The Amazon Resource Name (ARN) of the schedule.
CronExpression (string) --
The dates and times when the job is to run. For more information, see Cron expressions in the AWS Glue DataBrew Developer Guide .
Tags (dict) --
Metadata tags that have been applied to the schedule.
Name (string) --
The name of the schedule.