@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.551Z") @Stability(value=Stable) public interface CfnScheduledActionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.redshift.*;
Object targetAction;
CfnScheduledActionProps cfnScheduledActionProps = CfnScheduledActionProps.builder()
.scheduledActionName("scheduledActionName")
// the properties below are optional
.enable(false)
.endTime("endTime")
.iamRole("iamRole")
.schedule("schedule")
.scheduledActionDescription("scheduledActionDescription")
.startTime("startTime")
.targetAction(targetAction)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnScheduledActionProps.Builder
A builder for
CfnScheduledActionProps |
static class |
CfnScheduledActionProps.Jsii$Proxy
An implementation for
CfnScheduledActionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnScheduledActionProps.Builder |
builder() |
default Object |
getEnable()
If true, the schedule is enabled.
|
default String |
getEndTime()
The end time in UTC when the schedule is no longer active.
|
default String |
getIamRole()
The IAM role to assume to run the scheduled action.
|
default String |
getSchedule()
The schedule for a one-time (at format) or recurring (cron format) scheduled action.
|
default String |
getScheduledActionDescription()
The description of the scheduled action.
|
String |
getScheduledActionName()
The name of the scheduled action.
|
default String |
getStartTime()
The start time in UTC when the schedule is active.
|
default Object |
getTargetAction()
A JSON format string of the Amazon Redshift API operation with input parameters.
|
@Stability(value=Stable) @NotNull String getScheduledActionName()
@Stability(value=Stable) @Nullable default Object getEnable()
If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction .
@Stability(value=Stable) @Nullable default String getEndTime()
After this time, the scheduled action does not trigger.
@Stability(value=Stable) @Nullable default String getIamRole()
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 .
@Stability(value=Stable) @Nullable default String getSchedule()
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 .
@Stability(value=Stable) @Nullable default String getScheduledActionDescription()
@Stability(value=Stable) @Nullable default String getStartTime()
Before this time, the scheduled action does not trigger.
@Stability(value=Stable) @Nullable default Object getTargetAction()
" {\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}} ".
@Stability(value=Stable) static CfnScheduledActionProps.Builder builder()
CfnScheduledActionProps.Builder of CfnScheduledActionPropsCopyright © 2022. All rights reserved.