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:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-04T00:39:38.856Z")
@Stability(Stable)
public class CfnScheduledAction
extends CfnResource
implements IInspectable
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnScheduledAction
.static interface
Describes a pause cluster operation.static interface
Describes a resize cluster operation.static interface
Describes a resume cluster operation.static interface
The 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnScheduledAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnScheduledAction
(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.The start time in UTC when the schedule is active.A JSON format string of the Amazon Redshift API operation with input parameters.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
If true, the schedule is enabled.void
setEnable
(IResolvable value) If true, the schedule is enabled.void
setEndTime
(String value) The end time in UTC when the schedule is no longer active.void
setIamRole
(String value) The IAM role to assume to run the scheduled action.void
setSchedule
(String value) The schedule for a one-time (at format) or recurring (cron format) scheduled action.void
The description of the scheduled action.void
setScheduledActionName
(String value) The name of the scheduled action.void
setStartTime
(String value) The start time in UTC when the schedule is active.void
setTargetAction
(IResolvable value) A JSON format string of the Amazon Redshift API operation with input parameters.void
A 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getScheduledActionName
The name of the scheduled action. -
setScheduledActionName
The name of the scheduled action. -
getEnable
If true, the schedule is enabled. -
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. -
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.
-