Class CfnScheduledActionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshift.CfnScheduledActionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScheduledActionMixinProps>
- Enclosing interface:
CfnScheduledActionMixinProps
@Stability(Stable)
public static final class CfnScheduledActionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScheduledActionMixinProps>
A builder for
CfnScheduledActionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnScheduledActionMixinProps.getEnable()enable(IResolvable enable) Sets the value ofCfnScheduledActionMixinProps.getEnable()Sets the value ofCfnScheduledActionMixinProps.getEndTime()Sets the value ofCfnScheduledActionMixinProps.getIamRole()Sets the value ofCfnScheduledActionMixinProps.getSchedule()scheduledActionDescription(String scheduledActionDescription) Sets the value ofCfnScheduledActionMixinProps.getScheduledActionDescription()scheduledActionName(String scheduledActionName) Sets the value ofCfnScheduledActionMixinProps.getScheduledActionName()Sets the value ofCfnScheduledActionMixinProps.getStartTime()Sets the value ofCfnScheduledActionMixinProps.getTargetAction()targetAction(IResolvable targetAction) Sets the value ofCfnScheduledActionMixinProps.getTargetAction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enable
Sets the value ofCfnScheduledActionMixinProps.getEnable()- Parameters:
enable- If true, the schedule is enabled. If false, the scheduled action does not trigger. For more information aboutstateof the scheduled action, seeScheduledAction.- Returns:
this
-
enable
Sets the value ofCfnScheduledActionMixinProps.getEnable()- Parameters:
enable- If true, the schedule is enabled. If false, the scheduled action does not trigger. For more information aboutstateof the scheduled action, seeScheduledAction.- Returns:
this
-
endTime
Sets the value ofCfnScheduledActionMixinProps.getEndTime()- Parameters:
endTime- The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.- Returns:
this
-
iamRole
Sets the value ofCfnScheduledActionMixinProps.getIamRole()- Parameters:
iamRole- The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management Guide .- Returns:
this
-
schedule
Sets the value ofCfnScheduledActionMixinProps.getSchedule()- Parameters:
schedule- The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.Format of at expressions is "
at(yyyy-mm-ddThh:mm:ss)". For example, "at(2016-03-04T17:27:00)".Format of cron expressions is "
cron(Minutes Hours Day-of-month Month Day-of-week Year)". For example, "cron(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide .- Returns:
this
-
scheduledActionDescription
@Stability(Stable) public CfnScheduledActionMixinProps.Builder scheduledActionDescription(String scheduledActionDescription) Sets the value ofCfnScheduledActionMixinProps.getScheduledActionDescription()- Parameters:
scheduledActionDescription- The description of the scheduled action.- Returns:
this
-
scheduledActionName
@Stability(Stable) public CfnScheduledActionMixinProps.Builder scheduledActionName(String scheduledActionName) Sets the value ofCfnScheduledActionMixinProps.getScheduledActionName()- Parameters:
scheduledActionName- The name of the scheduled action.- Returns:
this
-
startTime
Sets the value ofCfnScheduledActionMixinProps.getStartTime()- Parameters:
startTime- The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.- Returns:
this
-
targetAction
@Stability(Stable) public CfnScheduledActionMixinProps.Builder targetAction(IResolvable targetAction) Sets the value ofCfnScheduledActionMixinProps.getTargetAction()- Parameters:
targetAction- A JSON format string of the Amazon Redshift API operation with input parameters. "{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}".- Returns:
this
-
targetAction
@Stability(Stable) public CfnScheduledActionMixinProps.Builder targetAction(CfnScheduledActionPropsMixin.ScheduledActionTypeProperty targetAction) Sets the value ofCfnScheduledActionMixinProps.getTargetAction()- Parameters:
targetAction- A JSON format string of the Amazon Redshift API operation with input parameters. "{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}".- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScheduledActionMixinProps>- Returns:
- a new instance of
CfnScheduledActionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-