Class CfnScheduledAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.redshift.CfnScheduledAction
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IScheduledActionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:13.487Z")
@Stability(Stable)
public class CfnScheduledAction
extends CfnResource
implements IInspectable, IScheduledActionRef
Creates a scheduled action.
A scheduled action contains a schedule and an Amazon Redshift API action. For example, you can create a schedule of when to run the ResizeCluster API operation.
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.*;
CfnScheduledAction cfnScheduledAction = CfnScheduledAction.Builder.create(this, "MyCfnScheduledAction")
.scheduledActionName("scheduledActionName")
// the properties below are optional
.enable(false)
.endTime("endTime")
.iamRole("iamRole")
.schedule("schedule")
.scheduledActionDescription("scheduledActionDescription")
.startTime("startTime")
.targetAction(ScheduledActionTypeProperty.builder()
.pauseCluster(PauseClusterMessageProperty.builder()
.clusterIdentifier("clusterIdentifier")
.build())
.resizeCluster(ResizeClusterMessageProperty.builder()
.clusterIdentifier("clusterIdentifier")
// the properties below are optional
.classic(false)
.clusterType("clusterType")
.nodeType("nodeType")
.numberOfNodes(123)
.build())
.resumeCluster(ResumeClusterMessageProperty.builder()
.clusterIdentifier("clusterIdentifier")
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnScheduledAction.static interfaceDescribes a pause cluster operation.static interfaceDescribes a resize cluster operation.static interfaceDescribes a resume cluster operation.static interfaceThe action type that specifies an Amazon Redshift API operation that is supported by the Amazon Redshift scheduler.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.IScheduledActionRef
IScheduledActionRef.Jsii$Default, IScheduledActionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnScheduledAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnScheduledAction(software.amazon.jsii.JsiiObjectRef objRef) CfnScheduledAction(software.constructs.Construct scope, String id, CfnScheduledActionProps props) -
Method Summary
Modifier and TypeMethodDescriptionList of times when the scheduled action will run.The state of the scheduled action.If true, the schedule is enabled.The end time in UTC when the schedule is no longer active.The IAM role to assume to run the scheduled action.The schedule for a one-time (at format) or recurring (cron format) scheduled action.The description of the scheduled action.The name of the scheduled action.A reference to a ScheduledAction resource.The start time in UTC when the schedule is active.A JSON format string of the Amazon Redshift API operation with input parameters.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidIf true, the schedule is enabled.voidsetEnable(IResolvable value) If true, the schedule is enabled.voidsetEndTime(String value) The end time in UTC when the schedule is no longer active.voidsetIamRole(String value) The IAM role to assume to run the scheduled action.voidsetSchedule(String value) The schedule for a one-time (at format) or recurring (cron format) scheduled action.voidThe description of the scheduled action.voidsetScheduledActionName(String value) The name of the scheduled action.voidsetStartTime(String value) The start time in UTC when the schedule is active.voidsetTargetAction(IResolvable value) A JSON format string of the Amazon Redshift API operation with input parameters.voidA JSON format string of the Amazon Redshift API operation with input parameters.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnScheduledAction
protected CfnScheduledAction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnScheduledAction
protected CfnScheduledAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnScheduledAction
@Stability(Stable) public CfnScheduledAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnScheduledActionProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrNextInvocations
List of times when the scheduled action will run. -
getAttrState
The state of the scheduled action.For example,
DISABLED. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getScheduledActionRef
A reference to a ScheduledAction resource.- Specified by:
getScheduledActionRefin interfaceIScheduledActionRef
-
getScheduledActionName
The name of the scheduled action. -
setScheduledActionName
The name of the scheduled action. -
getEnable
If true, the schedule is enabled.Returns union: either
BooleanorIResolvable -
setEnable
If true, the schedule is enabled. -
setEnable
If true, the schedule is enabled. -
getEndTime
The end time in UTC when the schedule is no longer active. -
setEndTime
The end time in UTC when the schedule is no longer active. -
getIamRole
The IAM role to assume to run the scheduled action. -
setIamRole
The IAM role to assume to run the scheduled action. -
getSchedule
The schedule for a one-time (at format) or recurring (cron format) scheduled action. -
setSchedule
The schedule for a one-time (at format) or recurring (cron format) scheduled action. -
getScheduledActionDescription
The description of the scheduled action. -
setScheduledActionDescription
The description of the scheduled action. -
getStartTime
The start time in UTC when the schedule is active. -
setStartTime
The start time in UTC when the schedule is active. -
getTargetAction
A JSON format string of the Amazon Redshift API operation with input parameters.Returns union: either
IResolvableorCfnScheduledAction.ScheduledActionTypeProperty -
setTargetAction
A JSON format string of the Amazon Redshift API operation with input parameters. -
setTargetAction
@Stability(Stable) public void setTargetAction(@Nullable CfnScheduledAction.ScheduledActionTypeProperty value) A JSON format string of the Amazon Redshift API operation with input parameters.
-