CfnScheduleMixinProps

class aws_cdk.mixins_preview.aws_scheduler.mixins.CfnScheduleMixinProps(*, description=None, end_date=None, flexible_time_window=None, group_name=None, kms_key_arn=None, name=None, schedule_expression=None, schedule_expression_timezone=None, start_date=None, state=None, target=None)

Bases: object

Properties for CfnSchedulePropsMixin.

Parameters:
  • description (Optional[str]) – The description you specify for the schedule.

  • end_date (Optional[str]) – The date, in UTC, before which the schedule can invoke its target. Depending on the schedule’s recurrence expression, invocations might stop on, or before, the EndDate you specify. EventBridge Scheduler ignores EndDate for one-time schedules.

  • flexible_time_window (Union[IResolvable, FlexibleTimeWindowProperty, Dict[str, Any], None]) – Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.

  • group_name (Optional[str]) – The name of the schedule group associated with this schedule.

  • kms_key_arn (Optional[str]) – The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.

  • name (Optional[str]) – The name of the schedule.

  • schedule_expression (Optional[str]) – The expression that defines when the schedule runs. The following formats are supported. - at expression - at(yyyy-mm-ddThh:mm:ss) - rate expression - rate(value unit) - cron expression - cron(fields) You can use at expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use rate and cron expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. A cron expression consists of six fields separated by white spaces: (minutes hours day_of_month month day_of_week year) . A rate expression consists of a value as a positive integer, and a unit with the following options: minute | minutes | hour | hours | day | days For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide .

  • schedule_expression_timezone (Optional[str]) – The timezone in which the scheduling expression is evaluated.

  • start_date (Optional[str]) – The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule’s recurrence expression, invocations might occur on, or after, the StartDate you specify. EventBridge Scheduler ignores StartDate for one-time schedules.

  • state (Optional[str]) – Specifies whether the schedule is enabled or disabled. Allowed Values : ENABLED | DISABLED

  • target (Union[IResolvable, TargetProperty, Dict[str, Any], None]) – The schedule’s target details.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_scheduler import mixins as scheduler_mixins

# tags: Any

cfn_schedule_mixin_props = scheduler_mixins.CfnScheduleMixinProps(
    description="description",
    end_date="endDate",
    flexible_time_window=scheduler_mixins.CfnSchedulePropsMixin.FlexibleTimeWindowProperty(
        maximum_window_in_minutes=123,
        mode="mode"
    ),
    group_name="groupName",
    kms_key_arn="kmsKeyArn",
    name="name",
    schedule_expression="scheduleExpression",
    schedule_expression_timezone="scheduleExpressionTimezone",
    start_date="startDate",
    state="state",
    target=scheduler_mixins.CfnSchedulePropsMixin.TargetProperty(
        arn="arn",
        dead_letter_config=scheduler_mixins.CfnSchedulePropsMixin.DeadLetterConfigProperty(
            arn="arn"
        ),
        ecs_parameters=scheduler_mixins.CfnSchedulePropsMixin.EcsParametersProperty(
            capacity_provider_strategy=[scheduler_mixins.CfnSchedulePropsMixin.CapacityProviderStrategyItemProperty(
                base=123,
                capacity_provider="capacityProvider",
                weight=123
            )],
            enable_ecs_managed_tags=False,
            enable_execute_command=False,
            group="group",
            launch_type="launchType",
            network_configuration=scheduler_mixins.CfnSchedulePropsMixin.NetworkConfigurationProperty(
                awsvpc_configuration=scheduler_mixins.CfnSchedulePropsMixin.AwsVpcConfigurationProperty(
                    assign_public_ip="assignPublicIp",
                    security_groups=["securityGroups"],
                    subnets=["subnets"]
                )
            ),
            placement_constraints=[scheduler_mixins.CfnSchedulePropsMixin.PlacementConstraintProperty(
                expression="expression",
                type="type"
            )],
            placement_strategy=[scheduler_mixins.CfnSchedulePropsMixin.PlacementStrategyProperty(
                field="field",
                type="type"
            )],
            platform_version="platformVersion",
            propagate_tags="propagateTags",
            reference_id="referenceId",
            tags=tags,
            task_count=123,
            task_definition_arn="taskDefinitionArn"
        ),
        event_bridge_parameters=scheduler_mixins.CfnSchedulePropsMixin.EventBridgeParametersProperty(
            detail_type="detailType",
            source="source"
        ),
        input="input",
        kinesis_parameters=scheduler_mixins.CfnSchedulePropsMixin.KinesisParametersProperty(
            partition_key="partitionKey"
        ),
        retry_policy=scheduler_mixins.CfnSchedulePropsMixin.RetryPolicyProperty(
            maximum_event_age_in_seconds=123,
            maximum_retry_attempts=123
        ),
        role_arn="roleArn",
        sage_maker_pipeline_parameters=scheduler_mixins.CfnSchedulePropsMixin.SageMakerPipelineParametersProperty(
            pipeline_parameter_list=[scheduler_mixins.CfnSchedulePropsMixin.SageMakerPipelineParameterProperty(
                name="name",
                value="value"
            )]
        ),
        sqs_parameters=scheduler_mixins.CfnSchedulePropsMixin.SqsParametersProperty(
            message_group_id="messageGroupId"
        )
    )
)

Attributes

description

The description you specify for the schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-description

end_date

The date, in UTC, before which the schedule can invoke its target.

Depending on the schedule’s recurrence expression, invocations might stop on, or before, the EndDate you specify. EventBridge Scheduler ignores EndDate for one-time schedules.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-enddate

flexible_time_window

Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-flexibletimewindow

group_name

The name of the schedule group associated with this schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-groupname

kms_key_arn

The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-kmskeyarn

name

The name of the schedule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-name

schedule_expression

The expression that defines when the schedule runs. The following formats are supported.

  • at expression - at(yyyy-mm-ddThh:mm:ss)

  • rate expression - rate(value unit)

  • cron expression - cron(fields)

You can use at expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use rate and cron expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.

A cron expression consists of six fields separated by white spaces: (minutes hours day_of_month month day_of_week year) .

A rate expression consists of a value as a positive integer, and a unit with the following options: minute | minutes | hour | hours | day | days

For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-scheduleexpression

schedule_expression_timezone

The timezone in which the scheduling expression is evaluated.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-scheduleexpressiontimezone

start_date

The date, in UTC, after which the schedule can begin invoking its target.

Depending on the schedule’s recurrence expression, invocations might occur on, or after, the StartDate you specify. EventBridge Scheduler ignores StartDate for one-time schedules.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-startdate

state

Specifies whether the schedule is enabled or disabled.

Allowed Values : ENABLED | DISABLED

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-state

target

The schedule’s target details.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scheduler-schedule.html#cfn-scheduler-schedule-target