Package com.pulumi.aws.ecs.inputs
Class GetTaskExecutionArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ecs.inputs.GetTaskExecutionArgs.Builder
-
- Enclosing class:
- GetTaskExecutionArgs
public static final class GetTaskExecutionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GetTaskExecutionArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetTaskExecutionArgs defaults)
-
-
Method Detail
-
capacityProviderStrategies
public GetTaskExecutionArgs.Builder capacityProviderStrategies(@Nullable com.pulumi.core.Output<java.util.List<GetTaskExecutionCapacityProviderStrategyArgs>> capacityProviderStrategies)
- Parameters:
capacityProviderStrategies
- Set of capacity provider strategies to use for the cluster. See below.- Returns:
- builder
-
capacityProviderStrategies
public GetTaskExecutionArgs.Builder capacityProviderStrategies(java.util.List<GetTaskExecutionCapacityProviderStrategyArgs> capacityProviderStrategies)
- Parameters:
capacityProviderStrategies
- Set of capacity provider strategies to use for the cluster. See below.- Returns:
- builder
-
capacityProviderStrategies
public GetTaskExecutionArgs.Builder capacityProviderStrategies(GetTaskExecutionCapacityProviderStrategyArgs... capacityProviderStrategies)
- Parameters:
capacityProviderStrategies
- Set of capacity provider strategies to use for the cluster. See below.- Returns:
- builder
-
clientToken
public GetTaskExecutionArgs.Builder clientToken(@Nullable com.pulumi.core.Output<java.lang.String> clientToken)
- Parameters:
clientToken
- An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 64 characters are allowed. The valid characters are characters in the range of 33-126, inclusive. For more information, see [Ensuring idempotency](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/ECS_Idempotency.html).- Returns:
- builder
-
clientToken
public GetTaskExecutionArgs.Builder clientToken(java.lang.String clientToken)
- Parameters:
clientToken
- An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 64 characters are allowed. The valid characters are characters in the range of 33-126, inclusive. For more information, see [Ensuring idempotency](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/ECS_Idempotency.html).- Returns:
- builder
-
cluster
public GetTaskExecutionArgs.Builder cluster(com.pulumi.core.Output<java.lang.String> cluster)
- Parameters:
cluster
- Short name or full Amazon Resource Name (ARN) of the cluster to run the task on.- Returns:
- builder
-
cluster
public GetTaskExecutionArgs.Builder cluster(java.lang.String cluster)
- Parameters:
cluster
- Short name or full Amazon Resource Name (ARN) of the cluster to run the task on.- Returns:
- builder
-
desiredCount
public GetTaskExecutionArgs.Builder desiredCount(@Nullable com.pulumi.core.Output<java.lang.Integer> desiredCount)
- Parameters:
desiredCount
- Number of instantiations of the specified task to place on your cluster. You can specify up to 10 tasks for each call.- Returns:
- builder
-
desiredCount
public GetTaskExecutionArgs.Builder desiredCount(java.lang.Integer desiredCount)
- Parameters:
desiredCount
- Number of instantiations of the specified task to place on your cluster. You can specify up to 10 tasks for each call.- Returns:
- builder
-
enableEcsManagedTags
public GetTaskExecutionArgs.Builder enableEcsManagedTags(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableEcsManagedTags)
- Parameters:
enableEcsManagedTags
- Specifies whether to enable Amazon ECS managed tags for the tasks within the service.- Returns:
- builder
-
enableEcsManagedTags
public GetTaskExecutionArgs.Builder enableEcsManagedTags(java.lang.Boolean enableEcsManagedTags)
- Parameters:
enableEcsManagedTags
- Specifies whether to enable Amazon ECS managed tags for the tasks within the service.- Returns:
- builder
-
enableExecuteCommand
public GetTaskExecutionArgs.Builder enableExecuteCommand(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableExecuteCommand)
- Parameters:
enableExecuteCommand
- Specifies whether to enable Amazon ECS Exec for the tasks within the service.- Returns:
- builder
-
enableExecuteCommand
public GetTaskExecutionArgs.Builder enableExecuteCommand(java.lang.Boolean enableExecuteCommand)
- Parameters:
enableExecuteCommand
- Specifies whether to enable Amazon ECS Exec for the tasks within the service.- Returns:
- builder
-
group
public GetTaskExecutionArgs.Builder group(@Nullable com.pulumi.core.Output<java.lang.String> group)
- Parameters:
group
- Name of the task group to associate with the task. The default value is the family name of the task definition.- Returns:
- builder
-
group
public GetTaskExecutionArgs.Builder group(java.lang.String group)
- Parameters:
group
- Name of the task group to associate with the task. The default value is the family name of the task definition.- Returns:
- builder
-
launchType
public GetTaskExecutionArgs.Builder launchType(@Nullable com.pulumi.core.Output<java.lang.String> launchType)
- Parameters:
launchType
- Launch type on which to run your service. Valid values are `EC2`, `FARGATE`, and `EXTERNAL`.- Returns:
- builder
-
launchType
public GetTaskExecutionArgs.Builder launchType(java.lang.String launchType)
- Parameters:
launchType
- Launch type on which to run your service. Valid values are `EC2`, `FARGATE`, and `EXTERNAL`.- Returns:
- builder
-
networkConfiguration
public GetTaskExecutionArgs.Builder networkConfiguration(@Nullable com.pulumi.core.Output<GetTaskExecutionNetworkConfigurationArgs> networkConfiguration)
- Parameters:
networkConfiguration
- Network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. See below.- Returns:
- builder
-
networkConfiguration
public GetTaskExecutionArgs.Builder networkConfiguration(GetTaskExecutionNetworkConfigurationArgs networkConfiguration)
- Parameters:
networkConfiguration
- Network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. See below.- Returns:
- builder
-
overrides
public GetTaskExecutionArgs.Builder overrides(@Nullable com.pulumi.core.Output<GetTaskExecutionOverridesArgs> overrides)
- Parameters:
overrides
- A list of container overrides that specify the name of a container in the specified task definition and the overrides it should receive.- Returns:
- builder
-
overrides
public GetTaskExecutionArgs.Builder overrides(GetTaskExecutionOverridesArgs overrides)
- Parameters:
overrides
- A list of container overrides that specify the name of a container in the specified task definition and the overrides it should receive.- Returns:
- builder
-
placementConstraints
public GetTaskExecutionArgs.Builder placementConstraints(@Nullable com.pulumi.core.Output<java.util.List<GetTaskExecutionPlacementConstraintArgs>> placementConstraints)
- Parameters:
placementConstraints
- An array of placement constraint objects to use for the task. You can specify up to 10 constraints for each task. See below.- Returns:
- builder
-
placementConstraints
public GetTaskExecutionArgs.Builder placementConstraints(java.util.List<GetTaskExecutionPlacementConstraintArgs> placementConstraints)
- Parameters:
placementConstraints
- An array of placement constraint objects to use for the task. You can specify up to 10 constraints for each task. See below.- Returns:
- builder
-
placementConstraints
public GetTaskExecutionArgs.Builder placementConstraints(GetTaskExecutionPlacementConstraintArgs... placementConstraints)
- Parameters:
placementConstraints
- An array of placement constraint objects to use for the task. You can specify up to 10 constraints for each task. See below.- Returns:
- builder
-
placementStrategies
public GetTaskExecutionArgs.Builder placementStrategies(@Nullable com.pulumi.core.Output<java.util.List<GetTaskExecutionPlacementStrategyArgs>> placementStrategies)
- Parameters:
placementStrategies
- The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules for each task. See below.- Returns:
- builder
-
placementStrategies
public GetTaskExecutionArgs.Builder placementStrategies(java.util.List<GetTaskExecutionPlacementStrategyArgs> placementStrategies)
- Parameters:
placementStrategies
- The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules for each task. See below.- Returns:
- builder
-
placementStrategies
public GetTaskExecutionArgs.Builder placementStrategies(GetTaskExecutionPlacementStrategyArgs... placementStrategies)
- Parameters:
placementStrategies
- The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules for each task. See below.- Returns:
- builder
-
platformVersion
public GetTaskExecutionArgs.Builder platformVersion(@Nullable com.pulumi.core.Output<java.lang.String> platformVersion)
- Parameters:
platformVersion
- The platform version the task uses. A platform version is only specified for tasks hosted on Fargate. If one isn't specified, the `LATEST` platform version is used.- Returns:
- builder
-
platformVersion
public GetTaskExecutionArgs.Builder platformVersion(java.lang.String platformVersion)
- Parameters:
platformVersion
- The platform version the task uses. A platform version is only specified for tasks hosted on Fargate. If one isn't specified, the `LATEST` platform version is used.- Returns:
- builder
-
propagateTags
public GetTaskExecutionArgs.Builder propagateTags(@Nullable com.pulumi.core.Output<java.lang.String> propagateTags)
- Parameters:
propagateTags
- Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren't propagated. An error will be received if you specify the `SERVICE` option when running a task. Valid values are `TASK_DEFINITION` or `NONE`.- Returns:
- builder
-
propagateTags
public GetTaskExecutionArgs.Builder propagateTags(java.lang.String propagateTags)
- Parameters:
propagateTags
- Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren't propagated. An error will be received if you specify the `SERVICE` option when running a task. Valid values are `TASK_DEFINITION` or `NONE`.- Returns:
- builder
-
referenceId
public GetTaskExecutionArgs.Builder referenceId(@Nullable com.pulumi.core.Output<java.lang.String> referenceId)
- Parameters:
referenceId
- The reference ID to use for the task.- Returns:
- builder
-
referenceId
public GetTaskExecutionArgs.Builder referenceId(java.lang.String referenceId)
- Parameters:
referenceId
- The reference ID to use for the task.- Returns:
- builder
-
startedBy
public GetTaskExecutionArgs.Builder startedBy(@Nullable com.pulumi.core.Output<java.lang.String> startedBy)
- Parameters:
startedBy
- An optional tag specified when a task is started.- Returns:
- builder
-
startedBy
public GetTaskExecutionArgs.Builder startedBy(java.lang.String startedBy)
- Parameters:
startedBy
- An optional tag specified when a task is started.- Returns:
- builder
-
tags
public GetTaskExecutionArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags
- Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public GetTaskExecutionArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags
- Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
taskDefinition
public GetTaskExecutionArgs.Builder taskDefinition(com.pulumi.core.Output<java.lang.String> taskDefinition)
- Parameters:
taskDefinition
- The `family` and `revision` (`family:revision`) or full ARN of the task definition to run. If a revision isn't specified, the latest `ACTIVE` revision is used. The following arguments are optional:- Returns:
- builder
-
taskDefinition
public GetTaskExecutionArgs.Builder taskDefinition(java.lang.String taskDefinition)
- Parameters:
taskDefinition
- The `family` and `revision` (`family:revision`) or full ARN of the task definition to run. If a revision isn't specified, the latest `ACTIVE` revision is used. The following arguments are optional:- Returns:
- builder
-
build
public GetTaskExecutionArgs build()
-
-