Class CfnSchedulePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
Every schedule has a schedule expression that determines when, and with what frequency, the schedule runs. EventBridge Scheduler supports three types of schedules: rate, cron, and one-time schedules. For more information about different schedule types, see Schedule types in the EventBridge Scheduler User Guide .
When you create a schedule, you configure a target for the schedule to invoke. A target is an API operation that EventBridge Scheduler calls on your behalf every time your schedule runs. EventBridge Scheduler supports two types of targets: templated targets invoke common API operations across a core groups of services, and customizeable universal targets that you can use to call more than 6,000 operations across over 270 services. For more information about configuring targets, see Managing targets in the EventBridge Scheduler User Guide .
For more information about managing schedules, changing the schedule state, setting up flexible time windows, and configuring a dead-letter queue for a schedule, see Managing a schedule in the EventBridge Scheduler User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.scheduler.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
Object tags;
CfnSchedulePropsMixin cfnSchedulePropsMixin = CfnSchedulePropsMixin.Builder.create(CfnScheduleMixinProps.builder()
.description("description")
.endDate("endDate")
.flexibleTimeWindow(FlexibleTimeWindowProperty.builder()
.maximumWindowInMinutes(123)
.mode("mode")
.build())
.groupName("groupName")
.kmsKeyArn("kmsKeyArn")
.name("name")
.scheduleExpression("scheduleExpression")
.scheduleExpressionTimezone("scheduleExpressionTimezone")
.startDate("startDate")
.state("state")
.target(TargetProperty.builder()
.arn("arn")
.deadLetterConfig(DeadLetterConfigProperty.builder()
.arn("arn")
.build())
.ecsParameters(EcsParametersProperty.builder()
.capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
.base(123)
.capacityProvider("capacityProvider")
.weight(123)
.build()))
.enableEcsManagedTags(false)
.enableExecuteCommand(false)
.group("group")
.launchType("launchType")
.networkConfiguration(NetworkConfigurationProperty.builder()
.awsvpcConfiguration(AwsVpcConfigurationProperty.builder()
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build())
.placementConstraints(List.of(PlacementConstraintProperty.builder()
.expression("expression")
.type("type")
.build()))
.placementStrategy(List.of(PlacementStrategyProperty.builder()
.field("field")
.type("type")
.build()))
.platformVersion("platformVersion")
.propagateTags("propagateTags")
.referenceId("referenceId")
.tags(tags)
.taskCount(123)
.taskDefinitionArn("taskDefinitionArn")
.build())
.eventBridgeParameters(EventBridgeParametersProperty.builder()
.detailType("detailType")
.source("source")
.build())
.input("input")
.kinesisParameters(KinesisParametersProperty.builder()
.partitionKey("partitionKey")
.build())
.retryPolicy(RetryPolicyProperty.builder()
.maximumEventAgeInSeconds(123)
.maximumRetryAttempts(123)
.build())
.roleArn("roleArn")
.sageMakerPipelineParameters(SageMakerPipelineParametersProperty.builder()
.pipelineParameterList(List.of(SageMakerPipelineParameterProperty.builder()
.name("name")
.value("value")
.build()))
.build())
.sqsParameters(SqsParametersProperty.builder()
.messageGroupId("messageGroupId")
.build())
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used.static final classA fluent builder forCfnSchedulePropsMixin.static interfaceThe details of a capacity provider strategy.static interfaceAn object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule.static interfaceThe templated target type for the Amazon ECSRunTaskAPI operation.static interfaceThe templated target type for the EventBridgePutEventsAPI operation.static interfaceAllows you to configure a time window during which EventBridge Scheduler invokes the schedule.static interfaceThe templated target type for the Amazon KinesisPutRecordAPI operation.static interfaceSpecifies the network configuration for an ECS task.static interfaceAn object representing a constraint on task placement.static interfaceThe task placement strategy for a task or service.static interfaceARetryPolicyobject that includes information about the retry policy settings, including the maximum age of an event, and the maximum number of times EventBridge Scheduler will try to deliver the event to a target.static interfaceThe name and value pair of a parameter to use to start execution of a SageMaker Model Building Pipeline.static interfaceThe templated target type for the Amazon SageMakerStartPipelineExecutionAPI operation.static interfaceThe templated target type for the Amazon SQSSendMessageAPI operation.static interfaceThe schedule's target.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Scheduler::Schedule.CfnSchedulePropsMixin(CfnScheduleMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Scheduler::Schedule.protectedCfnSchedulePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSchedulePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnScheduleMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnSchedulePropsMixin
protected CfnSchedulePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSchedulePropsMixin
protected CfnSchedulePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSchedulePropsMixin
@Stability(Stable) public CfnSchedulePropsMixin(@NotNull CfnScheduleMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Scheduler::Schedule.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnSchedulePropsMixin
Create a mixin to apply properties toAWS::Scheduler::Schedule.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-