aws-cdk-lib.aws_ecs_patterns.ScheduledEc2TaskDefinitionOptions

interface ScheduledEc2TaskDefinitionOptions

LanguageType name
.NETAmazon.CDK.AWS.ECS.Patterns.ScheduledEc2TaskDefinitionOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecspatterns#ScheduledEc2TaskDefinitionOptions
Javasoftware.amazon.awscdk.services.ecs.patterns.ScheduledEc2TaskDefinitionOptions
Pythonaws_cdk.aws_ecs_patterns.ScheduledEc2TaskDefinitionOptions
TypeScript (source)aws-cdk-lib » aws_ecs_patterns » ScheduledEc2TaskDefinitionOptions

The properties for the ScheduledEc2Task using a task definition.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
import { aws_ecs_patterns as ecs_patterns } from 'aws-cdk-lib';

declare const ec2TaskDefinition: ecs.Ec2TaskDefinition;
const scheduledEc2TaskDefinitionOptions: ecs_patterns.ScheduledEc2TaskDefinitionOptions = {
  taskDefinition: ec2TaskDefinition,
};

Properties

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

taskDefinition

Type: Ec2TaskDefinition

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

[disable-awslint:ref-via-interface]