aws-cdk-lib.aws_scheduler.CfnSchedule.EcsParametersProperty

interface EcsParametersProperty

LanguageType name
.NETAmazon.CDK.AWS.Scheduler.CfnSchedule.EcsParametersProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsscheduler#CfnSchedule_EcsParametersProperty
Javasoftware.amazon.awscdk.services.scheduler.CfnSchedule.EcsParametersProperty
Pythonaws_cdk.aws_scheduler.CfnSchedule.EcsParametersProperty
TypeScript aws-cdk-lib » aws_scheduler » CfnSchedule » EcsParametersProperty

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

Example

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

declare const tags: any;
const ecsParametersProperty: scheduler.CfnSchedule.EcsParametersProperty = {
  taskDefinitionArn: 'taskDefinitionArn',

  // the properties below are optional
  capacityProviderStrategy: [{
    capacityProvider: 'capacityProvider',

    // the properties below are optional
    base: 123,
    weight: 123,
  }],
  enableEcsManagedTags: false,
  enableExecuteCommand: false,
  group: 'group',
  launchType: 'launchType',
  networkConfiguration: {
    awsvpcConfiguration: {
      subnets: ['subnets'],

      // the properties below are optional
      assignPublicIp: 'assignPublicIp',
      securityGroups: ['securityGroups'],
    },
  },
  placementConstraints: [{
    expression: 'expression',
    type: 'type',
  }],
  placementStrategy: [{
    field: 'field',
    type: 'type',
  }],
  platformVersion: 'platformVersion',
  propagateTags: 'propagateTags',
  referenceId: 'referenceId',
  tags: tags,
  taskCount: 123,
};

Properties

NameTypeDescription
taskDefinitionArnstringThe Amazon Resource Name (ARN) of the task definition to use if the event target is an Amazon ECS task.
capacityProviderStrategy?IResolvable | IResolvable | CapacityProviderStrategyItemProperty[]The capacity provider strategy to use for the task.
enableEcsManagedTags?boolean | IResolvableSpecifies whether to enable Amazon ECS managed tags for the task.
enableExecuteCommand?boolean | IResolvableWhether or not to enable the execute command functionality for the containers in this task.
group?stringSpecifies an Amazon ECS task group for the task.
launchType?stringSpecifies the launch type on which your task is running.
networkConfiguration?IResolvable | NetworkConfigurationPropertyThis structure specifies the network configuration for an ECS task.
placementConstraints?IResolvable | IResolvable | PlacementConstraintProperty[]An array of placement constraint objects to use for the task.
placementStrategy?IResolvable | IResolvable | PlacementStrategyProperty[]The task placement strategy for a task or service.
platformVersion?stringSpecifies the platform version for the task.
propagateTags?stringSpecifies whether to propagate the tags from the task definition to the task.
referenceId?stringThe reference ID to use for the task.
tags?anyThe metadata that you apply to the task to help you categorize and organize them.
taskCount?numberThe number of tasks to create based on TaskDefinition .

taskDefinitionArn

Type: string

The Amazon Resource Name (ARN) of the task definition to use if the event target is an Amazon ECS task.


capacityProviderStrategy?

Type: IResolvable | IResolvable | CapacityProviderStrategyItemProperty[] (optional)

The capacity provider strategy to use for the task.


enableEcsManagedTags?

Type: boolean | IResolvable (optional)

Specifies whether to enable Amazon ECS managed tags for the task.

For more information, see Tagging Your Amazon ECS Resources in the Amazon ECS Developer Guide .


enableExecuteCommand?

Type: boolean | IResolvable (optional)

Whether or not to enable the execute command functionality for the containers in this task.

If true, this enables execute command functionality on all containers in the task.


group?

Type: string (optional)

Specifies an Amazon ECS task group for the task.

The maximum length is 255 characters.


launchType?

Type: string (optional)

Specifies the launch type on which your task is running.

The launch type that you specify here must match one of the launch type (compatibilities) of the target task. The FARGATE value is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon ECS in the Amazon ECS Developer Guide .


networkConfiguration?

Type: IResolvable | NetworkConfigurationProperty (optional)

This structure specifies the network configuration for an ECS task.


placementConstraints?

Type: IResolvable | IResolvable | PlacementConstraintProperty[] (optional)

An array of placement constraint objects to use for the task.

You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime).


placementStrategy?

Type: IResolvable | IResolvable | PlacementStrategyProperty[] (optional)

The task placement strategy for a task or service.


platformVersion?

Type: string (optional)

Specifies the platform version for the task.

Specify only the numeric portion of the platform version, such as 1.1.0 .


propagateTags?

Type: string (optional)

Specifies whether to propagate the tags from the task definition to the task.

If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after task creation, use the Amazon ECS TagResource API action.


referenceId?

Type: string (optional)

The reference ID to use for the task.


tags?

Type: any (optional)

The metadata that you apply to the task to help you categorize and organize them.

Each tag consists of a key and an optional value, both of which you define. For more information, see RunTask in the Amazon ECS API Reference .


taskCount?

Type: number (optional)

The number of tasks to create based on TaskDefinition .

The default is 1 .