Class CfnTrigger.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTrigger.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrigger.ActionProperty>
- Enclosing interface:
- CfnTrigger.ActionProperty
@Stability(Stable)
public static final class CfnTrigger.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrigger.ActionProperty>
A builder for
CfnTrigger.ActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTrigger.ActionProperty.getArguments()
build()
Builds the configured instance.crawlerName
(String crawlerName) Sets the value ofCfnTrigger.ActionProperty.getCrawlerName()
Sets the value ofCfnTrigger.ActionProperty.getJobName()
notificationProperty
(IResolvable notificationProperty) Sets the value ofCfnTrigger.ActionProperty.getNotificationProperty()
notificationProperty
(CfnTrigger.NotificationPropertyProperty notificationProperty) Sets the value ofCfnTrigger.ActionProperty.getNotificationProperty()
securityConfiguration
(String securityConfiguration) Sets the value ofCfnTrigger.ActionProperty.getSecurityConfiguration()
Sets the value ofCfnTrigger.ActionProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arguments
Sets the value ofCfnTrigger.ActionProperty.getArguments()
- Parameters:
arguments
- The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.You can specify arguments here that your own job-execution script consumes, in addition to arguments that AWS Glue itself consumes.
For information about how to specify and consume your own job arguments, see Calling AWS Glue APIs in Python in the AWS Glue Developer Guide .
For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.
- Returns:
this
-
crawlerName
Sets the value ofCfnTrigger.ActionProperty.getCrawlerName()
- Parameters:
crawlerName
- The name of the crawler to be used with this action.- Returns:
this
-
jobName
Sets the value ofCfnTrigger.ActionProperty.getJobName()
- Parameters:
jobName
- The name of a job to be executed.- Returns:
this
-
notificationProperty
@Stability(Stable) public CfnTrigger.ActionProperty.Builder notificationProperty(IResolvable notificationProperty) Sets the value ofCfnTrigger.ActionProperty.getNotificationProperty()
- Parameters:
notificationProperty
- Specifies configuration properties of a job run notification.- Returns:
this
-
notificationProperty
@Stability(Stable) public CfnTrigger.ActionProperty.Builder notificationProperty(CfnTrigger.NotificationPropertyProperty notificationProperty) Sets the value ofCfnTrigger.ActionProperty.getNotificationProperty()
- Parameters:
notificationProperty
- Specifies configuration properties of a job run notification.- Returns:
this
-
securityConfiguration
@Stability(Stable) public CfnTrigger.ActionProperty.Builder securityConfiguration(String securityConfiguration) Sets the value ofCfnTrigger.ActionProperty.getSecurityConfiguration()
- Parameters:
securityConfiguration
- The name of theSecurityConfiguration
structure to be used with this action.- Returns:
this
-
timeout
Sets the value ofCfnTrigger.ActionProperty.getTimeout()
- Parameters:
timeout
- TheJobRun
timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrigger.ActionProperty>
- Returns:
- a new instance of
CfnTrigger.ActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-