EventBridgeSchedulerCreateScheduleTaskJsonataProps

class aws_cdk.aws_stepfunctions_tasks.EventBridgeSchedulerCreateScheduleTaskJsonataProps(*, comment=None, query_language=None, state_name=None, credentials=None, heartbeat=None, heartbeat_timeout=None, integration_pattern=None, task_timeout=None, timeout=None, assign=None, outputs=None, schedule, schedule_name, target, action_after_completion=None, client_token=None, description=None, enabled=None, end_date=None, flexible_time_window=None, group_name=None, kms_key=None, start_date=None, timezone=None)

Bases: TaskStateJsonataBaseProps

Properties for creating an AWS EventBridge Scheduler schedule using JSONata.

Parameters:
  • comment (Optional[str]) – A comment describing this state. Default: No comment

  • query_language (Optional[QueryLanguage]) – The name of the query language used by the state. If the state does not contain a queryLanguage field, then it will use the query language specified in the top-level queryLanguage field. Default: - JSONPath

  • state_name (Optional[str]) – Optional name for this state. Default: - The construct ID will be used as state name

  • credentials (Union[Credentials, Dict[str, Any], None]) – Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine’s execution role)

  • heartbeat (Optional[Duration]) – (deprecated) Timeout for the heartbeat. Default: - None

  • heartbeat_timeout (Optional[Timeout]) – Timeout for the heartbeat. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface Default: - None

  • integration_pattern (Optional[IntegrationPattern]) – AWS Step Functions integrates with services directly in the Amazon States Language. You can control these AWS services using service integration patterns. Depending on the AWS Service, the Service Integration Pattern availability will vary. Default: - IntegrationPattern.REQUEST_RESPONSE for most tasks. IntegrationPattern.RUN_JOB for the following exceptions: BatchSubmitJob, EmrAddStep, EmrCreateCluster, EmrTerminationCluster, and EmrContainersStartJobRun.

  • task_timeout (Optional[Timeout]) – Timeout for the task. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface Default: - None

  • timeout (Optional[Duration]) – (deprecated) Timeout for the task. Default: - None

  • assign (Optional[Mapping[str, Any]]) – Workflow variables to store in this step. Using workflow variables, you can store data in a step and retrieve that data in future steps. Default: - Not assign variables

  • outputs (Any) – Used to specify and transform output from the state. When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly. Default: - $states.result or $states.errorOutput

  • schedule (Schedule) – The schedule that defines when the schedule will trigger.

  • schedule_name (str) – Schedule name.

  • target (EventBridgeSchedulerTarget) – The schedule’s target.

  • action_after_completion (Optional[ActionAfterCompletion]) – Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target. Default: ActionAfterCompletion.NONE

  • client_token (Optional[str]) – Unique, case-sensitive identifier to ensure the idempotency of the request. Default: - Automatically generated

  • description (Optional[str]) – The description for the schedule. Default: - No description

  • enabled (Optional[bool]) – Specifies whether the schedule is enabled or disabled. Default: true

  • end_date (Optional[datetime]) – 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. Default: - No end date

  • flexible_time_window (Optional[Duration]) – The maximum time window during which a schedule can be invoked. Minimum value is 1 minute. Maximum value is 1440 minutes (1 day). Default: - Flexible time window is not enabled.

  • group_name (Optional[str]) – The name of the schedule group to associate with this schedule. Default: - The default schedule group is used.

  • kms_key (Optional[IKey]) – The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt payload. Default: - Use automatically generated KMS key

  • start_date (Optional[datetime]) – 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. Default: - No start date

  • timezone (Optional[str]) – The timezone in which the scheduling expression is evaluated. Default: - UTC

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_kms as kms
from aws_cdk import aws_stepfunctions as stepfunctions
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks

# assign: Any
# event_bridge_scheduler_target: stepfunctions_tasks.EventBridgeSchedulerTarget
# key: kms.Key
# outputs: Any
# schedule: stepfunctions_tasks.Schedule
# task_role: stepfunctions.TaskRole
# timeout: stepfunctions.Timeout

event_bridge_scheduler_create_schedule_task_jsonata_props = stepfunctions_tasks.EventBridgeSchedulerCreateScheduleTaskJsonataProps(
    schedule=schedule,
    schedule_name="scheduleName",
    target=event_bridge_scheduler_target,

    # the properties below are optional
    action_after_completion=stepfunctions_tasks.ActionAfterCompletion.NONE,
    assign={
        "assign_key": assign
    },
    client_token="clientToken",
    comment="comment",
    credentials=stepfunctions.Credentials(
        role=task_role
    ),
    description="description",
    enabled=False,
    end_date=Date(),
    flexible_time_window=cdk.Duration.minutes(30),
    group_name="groupName",
    heartbeat=cdk.Duration.minutes(30),
    heartbeat_timeout=timeout,
    integration_pattern=stepfunctions.IntegrationPattern.REQUEST_RESPONSE,
    kms_key=key,
    outputs=outputs,
    query_language=stepfunctions.QueryLanguage.JSON_PATH,
    start_date=Date(),
    state_name="stateName",
    task_timeout=timeout,
    timeout=cdk.Duration.minutes(30),
    timezone="timezone"
)

Attributes

action_after_completion

Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.

Default:

ActionAfterCompletion.NONE

assign

Workflow variables to store in this step.

Using workflow variables, you can store data in a step and retrieve that data in future steps.

Default:
  • Not assign variables

See:

https://docs.aws.amazon.com/step-functions/latest/dg/workflow-variables.html

client_token

Unique, case-sensitive identifier to ensure the idempotency of the request.

Default:
  • Automatically generated

comment

A comment describing this state.

Default:

No comment

credentials

Credentials for an IAM Role that the State Machine assumes for executing the task.

This enables cross-account resource invocations.

Default:
  • None (Task is executed using the State Machine’s execution role)

See:

https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html

description

The description for the schedule.

Default:
  • No description

enabled

Specifies whether the schedule is enabled or disabled.

Default:

true

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.

Default:
  • No end date

flexible_time_window

The maximum time window during which a schedule can be invoked.

Minimum value is 1 minute. Maximum value is 1440 minutes (1 day).

Default:
  • Flexible time window is not enabled.

group_name

The name of the schedule group to associate with this schedule.

Default:
  • The default schedule group is used.

heartbeat

(deprecated) Timeout for the heartbeat.

Default:
  • None

Deprecated:

use heartbeatTimeout

Stability:

deprecated

heartbeat_timeout

Timeout for the heartbeat.

[disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface

Default:
  • None

integration_pattern

AWS Step Functions integrates with services directly in the Amazon States Language.

You can control these AWS services using service integration patterns.

Depending on the AWS Service, the Service Integration Pattern availability will vary.

Default:

  • IntegrationPattern.REQUEST_RESPONSE for most tasks.

IntegrationPattern.RUN_JOB for the following exceptions: BatchSubmitJob, EmrAddStep, EmrCreateCluster, EmrTerminationCluster, and EmrContainersStartJobRun.

See:

https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html

kms_key

The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt payload.

Default:
  • Use automatically generated KMS key

See:

https://docs.aws.amazon.com/scheduler/latest/UserGuide/encryption-rest.html

outputs

Used to specify and transform output from the state.

When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly.

Default:
  • $states.result or $states.errorOutput

See:

https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html

query_language

The name of the query language used by the state.

If the state does not contain a queryLanguage field, then it will use the query language specified in the top-level queryLanguage field.

Default:
  • JSONPath

schedule

The schedule that defines when the schedule will trigger.

See:

https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html

schedule_name

Schedule name.

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.

Default:
  • No start date

state_name

Optional name for this state.

Default:
  • The construct ID will be used as state name

target

The schedule’s target.

task_timeout

Timeout for the task.

[disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface

Default:
  • None

timeout

(deprecated) Timeout for the task.

Default:
  • None

Deprecated:

use taskTimeout

Stability:

deprecated

timezone

The timezone in which the scheduling expression is evaluated.

Default:
  • UTC