ScheduledEc2TaskDefinitionOptions

class aws_cdk.aws_ecs_patterns.ScheduledEc2TaskDefinitionOptions(*, task_definition)

Bases: object

The properties for the ScheduledEc2Task using a task definition.

Parameters:

task_definition (Ec2TaskDefinition) – The task definition to use for tasks in the service. One of image or taskDefinition must be specified. [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

# ec2_task_definition: ecs.Ec2TaskDefinition

scheduled_ec2_task_definition_options = ecs_patterns.ScheduledEc2TaskDefinitionOptions(
    task_definition=ec2_task_definition
)

Attributes

task_definition

The task definition to use for tasks in the service. One of image or taskDefinition must be specified.

[disable-awslint:ref-via-interface]

Default:
  • none