ScheduledFargateTaskDefinitionOptions

class aws_cdk.aws_ecs_patterns.ScheduledFargateTaskDefinitionOptions(*, task_definition)

Bases: object

The properties for the ScheduledFargateTask using a task definition.

Parameters:

task_definition (FargateTaskDefinition) – The task definition to use for tasks in the service. Image or taskDefinition must be specified, but not both. [disable-awslint:ref-via-interface] Default: - none

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.aws_ecs as ecs
import aws_cdk.aws_ecs_patterns as ecs_patterns

# fargate_task_definition: ecs.FargateTaskDefinition

scheduled_fargate_task_definition_options = ecs_patterns.ScheduledFargateTaskDefinitionOptions(
    task_definition=fargate_task_definition
)

Attributes

task_definition

The task definition to use for tasks in the service. Image or taskDefinition must be specified, but not both.

[disable-awslint:ref-via-interface]

Default:
  • none