@Stability(value=Stable) public static final class CfnScheduledAction.Builder extends Object implements software.amazon.jsii.Builder<CfnScheduledAction>
CfnScheduledAction.| Modifier and Type | Method and Description |
|---|---|
CfnScheduledAction |
build() |
static CfnScheduledAction.Builder |
create(software.constructs.Construct scope,
String id) |
CfnScheduledAction.Builder |
enable(Boolean enable)
If true, the schedule is enabled.
|
CfnScheduledAction.Builder |
enable(IResolvable enable)
If true, the schedule is enabled.
|
CfnScheduledAction.Builder |
endTime(String endTime)
The end time in UTC when the schedule is no longer active.
|
CfnScheduledAction.Builder |
iamRole(String iamRole)
The IAM role to assume to run the scheduled action.
|
CfnScheduledAction.Builder |
schedule(String schedule)
The schedule for a one-time (at format) or recurring (cron format) scheduled action.
|
CfnScheduledAction.Builder |
scheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
|
CfnScheduledAction.Builder |
scheduledActionName(String scheduledActionName)
The name of the scheduled action.
|
CfnScheduledAction.Builder |
startTime(String startTime)
The start time in UTC when the schedule is active.
|
CfnScheduledAction.Builder |
targetAction(Object targetAction)
A JSON format string of the Amazon Redshift API operation with input parameters.
|
@Stability(value=Stable) public static CfnScheduledAction.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnScheduledAction.Builder.@Stability(value=Stable) public CfnScheduledAction.Builder scheduledActionName(String scheduledActionName)
scheduledActionName - The name of the scheduled action. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder enable(Boolean enable)
If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction .
enable - If true, the schedule is enabled. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder enable(IResolvable enable)
If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction .
enable - If true, the schedule is enabled. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder endTime(String endTime)
After this time, the scheduled action does not trigger.
endTime - The end time in UTC when the schedule is no longer active. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder iamRole(String iamRole)
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 .
iamRole - The IAM role to assume to run the scheduled action. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder schedule(String schedule)
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 .
schedule - The schedule for a one-time (at format) or recurring (cron format) scheduled action. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder scheduledActionDescription(String scheduledActionDescription)
scheduledActionDescription - The description of the scheduled action. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder startTime(String startTime)
Before this time, the scheduled action does not trigger.
startTime - The start time in UTC when the schedule is active. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction.Builder targetAction(Object targetAction)
" {\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}} ".
targetAction - A JSON format string of the Amazon Redshift API operation with input parameters. This parameter is required.this@Stability(value=Stable) public CfnScheduledAction build()
build in interface software.amazon.jsii.Builder<CfnScheduledAction>Copyright © 2022. All rights reserved.