Class CfnJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.databrew.CfnJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobProps>
- Enclosing interface:
CfnJobProps
@Stability(Stable)
public static final class CfnJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobProps>
A builder for
CfnJobProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.databaseOutputs
(List<? extends Object> databaseOutputs) Sets the value ofCfnJobProps.getDatabaseOutputs()
databaseOutputs
(IResolvable databaseOutputs) Sets the value ofCfnJobProps.getDatabaseOutputs()
dataCatalogOutputs
(List<? extends Object> dataCatalogOutputs) Sets the value ofCfnJobProps.getDataCatalogOutputs()
dataCatalogOutputs
(IResolvable dataCatalogOutputs) Sets the value ofCfnJobProps.getDataCatalogOutputs()
datasetName
(String datasetName) Sets the value ofCfnJobProps.getDatasetName()
encryptionKeyArn
(String encryptionKeyArn) Sets the value ofCfnJobProps.getEncryptionKeyArn()
encryptionMode
(String encryptionMode) Sets the value ofCfnJobProps.getEncryptionMode()
jobSample
(IResolvable jobSample) Sets the value ofCfnJobProps.getJobSample()
jobSample
(CfnJob.JobSampleProperty jobSample) Sets the value ofCfnJobProps.getJobSample()
logSubscription
(String logSubscription) Sets the value ofCfnJobProps.getLogSubscription()
maxCapacity
(Number maxCapacity) Sets the value ofCfnJobProps.getMaxCapacity()
maxRetries
(Number maxRetries) Sets the value ofCfnJobProps.getMaxRetries()
Sets the value ofCfnJobProps.getName()
outputLocation
(IResolvable outputLocation) Sets the value ofCfnJobProps.getOutputLocation()
outputLocation
(CfnJob.OutputLocationProperty outputLocation) Sets the value ofCfnJobProps.getOutputLocation()
Sets the value ofCfnJobProps.getOutputs()
outputs
(IResolvable outputs) Sets the value ofCfnJobProps.getOutputs()
profileConfiguration
(IResolvable profileConfiguration) Sets the value ofCfnJobProps.getProfileConfiguration()
profileConfiguration
(CfnJob.ProfileConfigurationProperty profileConfiguration) Sets the value ofCfnJobProps.getProfileConfiguration()
projectName
(String projectName) Sets the value ofCfnJobProps.getProjectName()
recipe
(IResolvable recipe) Sets the value ofCfnJobProps.getRecipe()
recipe
(CfnJob.RecipeProperty recipe) Sets the value ofCfnJobProps.getRecipe()
Sets the value ofCfnJobProps.getRoleArn()
Sets the value ofCfnJobProps.getTags()
Sets the value ofCfnJobProps.getTimeout()
Sets the value ofCfnJobProps.getType()
validationConfigurations
(List<? extends Object> validationConfigurations) Sets the value ofCfnJobProps.getValidationConfigurations()
validationConfigurations
(IResolvable validationConfigurations) Sets the value ofCfnJobProps.getValidationConfigurations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnJobProps.getName()
- Parameters:
name
- The unique name of the job. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnJobProps.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the role to be assumed for this job. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnJobProps.getType()
- Parameters:
type
- The job type of the job, which must be one of the following:. This parameter is required.PROFILE
- A job to analyze a dataset, to determine its size, data types, data distribution, and more.RECIPE
- A job to apply one or more transformations to a dataset.
- Returns:
this
-
databaseOutputs
Sets the value ofCfnJobProps.getDatabaseOutputs()
- Parameters:
databaseOutputs
- Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job to write into.- Returns:
this
-
databaseOutputs
@Stability(Stable) public CfnJobProps.Builder databaseOutputs(List<? extends Object> databaseOutputs) Sets the value ofCfnJobProps.getDatabaseOutputs()
- Parameters:
databaseOutputs
- Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job to write into.- Returns:
this
-
dataCatalogOutputs
Sets the value ofCfnJobProps.getDataCatalogOutputs()
- Parameters:
dataCatalogOutputs
- One or more artifacts that represent the AWS Glue Data Catalog output from running the job.- Returns:
this
-
dataCatalogOutputs
@Stability(Stable) public CfnJobProps.Builder dataCatalogOutputs(List<? extends Object> dataCatalogOutputs) Sets the value ofCfnJobProps.getDataCatalogOutputs()
- Parameters:
dataCatalogOutputs
- One or more artifacts that represent the AWS Glue Data Catalog output from running the job.- Returns:
this
-
datasetName
Sets the value ofCfnJobProps.getDatasetName()
- Parameters:
datasetName
- A dataset that the job is to process.- Returns:
this
-
encryptionKeyArn
Sets the value ofCfnJobProps.getEncryptionKeyArn()
- Parameters:
encryptionKeyArn
- 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- Returns:
this
-
encryptionMode
Sets the value ofCfnJobProps.getEncryptionMode()
- Parameters:
encryptionMode
- The encryption mode for the job, which can be one of the following:.SSE-KMS
- Server-side encryption with keys managed by AWS KMS .SSE-S3
- Server-side encryption with keys managed by Amazon S3.
- Returns:
this
-
jobSample
Sets the value ofCfnJobProps.getJobSample()
- Parameters:
jobSample
- A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If aJobSample
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.- Returns:
this
-
jobSample
Sets the value ofCfnJobProps.getJobSample()
- Parameters:
jobSample
- A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If aJobSample
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.- Returns:
this
-
logSubscription
Sets the value ofCfnJobProps.getLogSubscription()
- Parameters:
logSubscription
- The current status of Amazon CloudWatch logging for the job.- Returns:
this
-
maxCapacity
Sets the value ofCfnJobProps.getMaxCapacity()
- Parameters:
maxCapacity
- The maximum number of nodes that can be consumed when the job processes data.- Returns:
this
-
maxRetries
Sets the value ofCfnJobProps.getMaxRetries()
- Parameters:
maxRetries
- The maximum number of times to retry the job after a job run fails.- Returns:
this
-
outputLocation
Sets the value ofCfnJobProps.getOutputLocation()
- Parameters:
outputLocation
-AWS::DataBrew::Job.OutputLocation
.- Returns:
this
-
outputLocation
@Stability(Stable) public CfnJobProps.Builder outputLocation(CfnJob.OutputLocationProperty outputLocation) Sets the value ofCfnJobProps.getOutputLocation()
- Parameters:
outputLocation
-AWS::DataBrew::Job.OutputLocation
.- Returns:
this
-
outputs
Sets the value ofCfnJobProps.getOutputs()
- Parameters:
outputs
- One or more artifacts that represent output from running the job.- Returns:
this
-
outputs
Sets the value ofCfnJobProps.getOutputs()
- Parameters:
outputs
- One or more artifacts that represent output from running the job.- Returns:
this
-
profileConfiguration
@Stability(Stable) public CfnJobProps.Builder profileConfiguration(IResolvable profileConfiguration) Sets the value ofCfnJobProps.getProfileConfiguration()
- Parameters:
profileConfiguration
- Configuration for profile jobs. Configuration can be used to select columns, do evaluations, and override default parameters of evaluations. When configuration is undefined, the profile job will apply default settings to all supported columns.- Returns:
this
-
profileConfiguration
@Stability(Stable) public CfnJobProps.Builder profileConfiguration(CfnJob.ProfileConfigurationProperty profileConfiguration) Sets the value ofCfnJobProps.getProfileConfiguration()
- Parameters:
profileConfiguration
- Configuration for profile jobs. Configuration can be used to select columns, do evaluations, and override default parameters of evaluations. When configuration is undefined, the profile job will apply default settings to all supported columns.- Returns:
this
-
projectName
Sets the value ofCfnJobProps.getProjectName()
- Parameters:
projectName
- The name of the project that the job is associated with.- Returns:
this
-
recipe
Sets the value ofCfnJobProps.getRecipe()
- Parameters:
recipe
- A series of data transformation steps that the job runs.- Returns:
this
-
recipe
Sets the value ofCfnJobProps.getRecipe()
- Parameters:
recipe
- A series of data transformation steps that the job runs.- Returns:
this
-
tags
Sets the value ofCfnJobProps.getTags()
- Parameters:
tags
- Metadata tags that have been applied to the job.- Returns:
this
-
timeout
Sets the value ofCfnJobProps.getTimeout()
- Parameters:
timeout
- The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status ofTIMEOUT
.- Returns:
this
-
validationConfigurations
@Stability(Stable) public CfnJobProps.Builder validationConfigurations(IResolvable validationConfigurations) Sets the value ofCfnJobProps.getValidationConfigurations()
- Parameters:
validationConfigurations
- List of validation configurations that are applied to the profile job.- Returns:
this
-
validationConfigurations
@Stability(Stable) public CfnJobProps.Builder validationConfigurations(List<? extends Object> validationConfigurations) Sets the value ofCfnJobProps.getValidationConfigurations()
- Parameters:
validationConfigurations
- List of validation configurations that are applied to the profile job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobProps>
- Returns:
- a new instance of
CfnJobProps
- Throws:
NullPointerException
- if any required attribute was not provided
-