EcsParametersProperty Struct
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
capacityProviderStrategyIResolvable | IResolvable | CfnSchedule.CapacityProviderStrategyItemProperty[]capacity_provider_strategytyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CapacityProviderStrategyItemProperty]]]capacityProviderStrategyIResolvableCapacityProviderStrategyIResolvableCapacityProviderStrategyinterface{}#enableEcsManagedTagsboolean | IResolvableenable_ecs_managed_tagstyping.Union[bool, IResolvable]enableEcsManagedTagsBooleanEnableEcsManagedTagsboolEnableEcsManagedTagsinterface{}#For more information, see Tagging Your Amazon ECS Resources in the Amazon ECS Developer Guide .
enableExecuteCommandboolean | IResolvableenable_execute_commandtyping.Union[bool, IResolvable]enableExecuteCommandBooleanEnableExecuteCommandboolEnableExecuteCommandinterface{}#If true, this enables execute command functionality on all containers in the task.
The maximum length is 255 characters.
notes
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 .
networkConfigurationIResolvable | CfnSchedule.NetworkConfigurationPropertynetwork_configurationtyping.Union[IResolvable, NetworkConfigurationProperty]networkConfigurationIResolvableNetworkConfigurationIResolvableNetworkConfigurationinterface{}#placementConstraintsIResolvable | IResolvable | CfnSchedule.PlacementConstraintProperty[]placement_constraintstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PlacementConstraintProperty]]]placementConstraintsIResolvablePlacementConstraintsIResolvablePlacementConstraintsinterface{}#You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime).
placementStrategyIResolvable | IResolvable | CfnSchedule.PlacementStrategyProperty[]placement_strategytyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PlacementStrategyProperty]]]placementStrategyIResolvablePlacementStrategyIResolvablePlacementStrategyinterface{}#platformVersionstringplatform_versionstrplatformVersionStringPlatformVersionstringPlatformVersion*string#Specify only the numeric portion of the platform version, such as 1.1.0 .
notes
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.
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 .
The default is 1 .
taskDefinitionArnstringtask_definition_arnstrtaskDefinitionArnStringTaskDefinitionArnstringTaskDefinitionArn*stringrequired#