Skip to content

Target

Source code in docs_src/capo_scheduler/types/target.py
class Target(TypedDict, closed=True):
    arn: "capo_scheduler.types.target_arn.TargetArn"
    """<p>The Amazon Resource Name (ARN) of the target.</p>"""
    role_arn: "capo_scheduler.types.role_arn.RoleArn"
    """<p>The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.</p>"""
    dead_letter_config: NotRequired[
        "capo_scheduler.types.dead_letter_config.DeadLetterConfig"
    ]
    """<p>An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue.</p>"""
    retry_policy: NotRequired["capo_scheduler.types.retry_policy.RetryPolicy"]
    """<p>A <code>RetryPolicy</code> object 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.</p>"""
    input: NotRequired["capo_scheduler.types.target_input.TargetInput"]
    """<p>The text, or well-formed JSON, passed to the target. If you are configuring a templated Lambda, AWS Step Functions, or Amazon EventBridge target, the input must be a well-formed JSON. For all other target types, a JSON is not required. If you do not specify anything for this field, EventBridge Scheduler delivers a default notification to the target.</p>"""
    ecs_parameters: NotRequired["capo_scheduler.types.ecs_parameters.EcsParameters"]
    """<p>The templated target type for the Amazon ECS <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html"> <code>RunTask</code> </a> API operation.</p>"""
    event_bridge_parameters: NotRequired[
        "capo_scheduler.types.event_bridge_parameters.EventBridgeParameters"
    ]
    """<p>The templated target type for the EventBridge <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html"> <code>PutEvents</code> </a> API operation.</p>"""
    kinesis_parameters: NotRequired[
        "capo_scheduler.types.kinesis_parameters.KinesisParameters"
    ]
    """<p>The templated target type for the Amazon Kinesis <a href="../kinesis/latest/APIReference/API_PutRecord.html"> <code>PutRecord</code> </a> API operation.</p>"""
    sage_maker_pipeline_parameters: NotRequired[
        "capo_scheduler.types.sage_maker_pipeline_parameters.SageMakerPipelineParameters"
    ]
    """<p>The templated target type for the Amazon SageMaker <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StartPipelineExecution.html"> <code>StartPipelineExecution</code> </a> API operation.</p>"""
    sqs_parameters: NotRequired["capo_scheduler.types.sqs_parameters.SqsParameters"]
    """<p>The templated target type for the Amazon SQS <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html"> <code>SendMessage</code> </a> API operation. Contains the message group ID to use when the target is a FIFO queue. If you specify an Amazon SQS FIFO queue as a target, the queue must have content-based deduplication enabled. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html">Using the Amazon SQS message deduplication ID</a> in the <i>Amazon SQS Developer Guide</i>.</p>"""

arn instance-attribute

arn: TargetArn

The Amazon Resource Name (ARN) of the target.

dead_letter_config instance-attribute

dead_letter_config: NotRequired[DeadLetterConfig]

An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue.

ecs_parameters instance-attribute

ecs_parameters: NotRequired[EcsParameters]

The templated target type for the Amazon ECS RunTask API operation.

event_bridge_parameters instance-attribute

event_bridge_parameters: NotRequired[EventBridgeParameters]

The templated target type for the EventBridge PutEvents API operation.

input instance-attribute

input: NotRequired[TargetInput]

The text, or well-formed JSON, passed to the target. If you are configuring a templated Lambda, AWS Step Functions, or Amazon EventBridge target, the input must be a well-formed JSON. For all other target types, a JSON is not required. If you do not specify anything for this field, EventBridge Scheduler delivers a default notification to the target.

kinesis_parameters instance-attribute

kinesis_parameters: NotRequired[KinesisParameters]

The templated target type for the Amazon Kinesis PutRecord API operation.

retry_policy instance-attribute

retry_policy: NotRequired[RetryPolicy]

A RetryPolicy object 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.

role_arn instance-attribute

role_arn: RoleArn

The Amazon Resource Name (ARN) of the IAM role that EventBridge Scheduler will use for this target when the schedule is invoked.

sage_maker_pipeline_parameters instance-attribute

sage_maker_pipeline_parameters: NotRequired[SageMakerPipelineParameters]

The templated target type for the Amazon SageMaker StartPipelineExecution API operation.

sqs_parameters instance-attribute

sqs_parameters: NotRequired[SqsParameters]

The templated target type for the Amazon SQS SendMessage API operation. Contains the message group ID to use when the target is a FIFO queue. If you specify an Amazon SQS FIFO queue as a target, the queue must have content-based deduplication enabled. For more information, see Using the Amazon SQS message deduplication ID in the Amazon SQS Developer Guide.