Class CfnScheduledActionMixinProps
Properties for CfnScheduledActionPropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Redshift
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnScheduledActionMixinProps : ICfnScheduledActionMixinProps
Syntax (vb)
Public Class CfnScheduledActionMixinProps Implements ICfnScheduledActionMixinProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Redshift;
var cfnScheduledActionMixinProps = new CfnScheduledActionMixinProps {
Enable = false,
EndTime = "endTime",
IamRole = "iamRole",
Schedule = "schedule",
ScheduledActionDescription = "scheduledActionDescription",
ScheduledActionName = "scheduledActionName",
StartTime = "startTime",
TargetAction = new ScheduledActionTypeProperty {
PauseCluster = new PauseClusterMessageProperty {
ClusterIdentifier = "clusterIdentifier"
},
ResizeCluster = new ResizeClusterMessageProperty {
Classic = false,
ClusterIdentifier = "clusterIdentifier",
ClusterType = "clusterType",
NodeType = "nodeType",
NumberOfNodes = 123
},
ResumeCluster = new ResumeClusterMessageProperty {
ClusterIdentifier = "clusterIdentifier"
}
}
};
Synopsis
Constructors
| CfnScheduledActionMixinProps() | Properties for CfnScheduledActionPropsMixin. |
Properties
| Enable | If true, the schedule is enabled. |
| EndTime | The end time in UTC when the schedule is no longer active. |
| IamRole | The IAM role to assume to run the scheduled action. |
| Schedule | The schedule for a one-time (at format) or recurring (cron format) scheduled action. |
| ScheduledActionDescription | The description of the scheduled action. |
| ScheduledActionName | The name of the scheduled action. |
| StartTime | The start time in UTC when the schedule is active. |
| TargetAction | A JSON format string of the Amazon Redshift API operation with input parameters. |
Constructors
CfnScheduledActionMixinProps()
Properties for CfnScheduledActionPropsMixin.
public CfnScheduledActionMixinProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Redshift;
var cfnScheduledActionMixinProps = new CfnScheduledActionMixinProps {
Enable = false,
EndTime = "endTime",
IamRole = "iamRole",
Schedule = "schedule",
ScheduledActionDescription = "scheduledActionDescription",
ScheduledActionName = "scheduledActionName",
StartTime = "startTime",
TargetAction = new ScheduledActionTypeProperty {
PauseCluster = new PauseClusterMessageProperty {
ClusterIdentifier = "clusterIdentifier"
},
ResizeCluster = new ResizeClusterMessageProperty {
Classic = false,
ClusterIdentifier = "clusterIdentifier",
ClusterType = "clusterType",
NodeType = "nodeType",
NumberOfNodes = 123
},
ResumeCluster = new ResumeClusterMessageProperty {
ClusterIdentifier = "clusterIdentifier"
}
}
};
Properties
Enable
If true, the schedule is enabled.
public object? Enable { get; set; }
Property Value
Remarks
If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction .
Type union: either bool or IResolvable
EndTime
The end time in UTC when the schedule is no longer active.
public string? EndTime { get; set; }
Property Value
Remarks
After this time, the scheduled action does not trigger.
IamRole
The IAM role to assume to run the scheduled action.
public string? IamRole { get; set; }
Property Value
Remarks
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 .
Schedule
The schedule for a one-time (at format) or recurring (cron format) scheduled action.
public string? Schedule { get; set; }
Property Value
Remarks
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 .
ScheduledActionDescription
The description of the scheduled action.
public string? ScheduledActionDescription { get; set; }
Property Value
Remarks
ScheduledActionName
The name of the scheduled action.
public string? ScheduledActionName { get; set; }
Property Value
Remarks
StartTime
The start time in UTC when the schedule is active.
public string? StartTime { get; set; }
Property Value
Remarks
Before this time, the scheduled action does not trigger.
TargetAction
A JSON format string of the Amazon Redshift API operation with input parameters.
public object? TargetAction { get; set; }
Property Value
Remarks
" {"ResizeCluster":{"NodeType":"ra3.4xlarge","ClusterIdentifier":"my-test-cluster","NumberOfNodes":3}} ".
Type union: either IResolvable or CfnScheduledActionPropsMixin.IScheduledActionTypeProperty