@Stability(value=Stable) public static final class EcsTaskProps.Builder extends Object implements software.amazon.jsii.Builder<EcsTaskProps>
EcsTaskProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public EcsTaskProps.Builder cluster(ICluster cluster)
EcsTaskProps.getCluster()cluster - Cluster where service will be deployed. This parameter is required.this@Stability(value=Stable) public EcsTaskProps.Builder taskDefinition(ITaskDefinition taskDefinition)
EcsTaskProps.getTaskDefinition()taskDefinition - Task Definition of the task that should be started. This parameter is required.this@Stability(value=Stable) public EcsTaskProps.Builder containerOverrides(List<? extends ContainerOverride> containerOverrides)
EcsTaskProps.getContainerOverrides()containerOverrides - Container setting overrides.
Key is the name of the container to override, value is the
values you want to override.this@Stability(value=Stable) public EcsTaskProps.Builder platformVersion(FargatePlatformVersion platformVersion)
EcsTaskProps.getPlatformVersion()platformVersion - The platform version on which to run your task.
Unless you have specific compatibility requirements, you don't need to specify this.this@Stability(value=Stable) public EcsTaskProps.Builder role(IRole role)
EcsTaskProps.getRole()role - Existing IAM role to run the ECS task.this@Stability(value=Stable) public EcsTaskProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
EcsTaskProps.getSecurityGroups()securityGroups - Existing security groups to use for the task's ENIs.
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)this@Stability(value=Stable) public EcsTaskProps.Builder subnetSelection(SubnetSelection subnetSelection)
EcsTaskProps.getSubnetSelection()subnetSelection - In what subnets to place the task's ENIs.
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)this@Stability(value=Stable) public EcsTaskProps.Builder taskCount(Number taskCount)
EcsTaskProps.getTaskCount()taskCount - How many tasks should be started when this event is triggered.this@Stability(value=Stable) public EcsTaskProps.Builder deadLetterQueue(IQueue deadLetterQueue)
TargetBaseProps.getDeadLetterQueue()deadLetterQueue - The SQS queue to be used as deadLetterQueue. Check out the [considerations for using a dead-letter queue](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations).
The events not successfully delivered are automatically retried for a specified period of time,
depending on the retry policy of the target.
If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.this@Stability(value=Stable) public EcsTaskProps.Builder maxEventAge(Duration maxEventAge)
TargetBaseProps.getMaxEventAge()maxEventAge - The maximum age of a request that Lambda sends to a function for processing.
Minimum value of 60.
Maximum value of 86400.this@Stability(value=Stable) public EcsTaskProps.Builder retryAttempts(Number retryAttempts)
TargetBaseProps.getRetryAttempts()retryAttempts - The maximum number of times to retry when the function returns an error.
Minimum value of 0.
Maximum value of 185.this@Stability(value=Stable) public EcsTaskProps build()
build in interface software.amazon.jsii.Builder<EcsTaskProps>EcsTaskPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.