Package com.pulumi.aws.cloudwatch.inputs
Class EventTargetEcsTargetArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudwatch.inputs.EventTargetEcsTargetArgs.Builder
-
- Enclosing class:
- EventTargetEcsTargetArgs
public static final class EventTargetEcsTargetArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(EventTargetEcsTargetArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(EventTargetEcsTargetArgs defaults)
-
-
Method Detail
-
capacityProviderStrategies
public EventTargetEcsTargetArgs.Builder capacityProviderStrategies(@Nullable com.pulumi.core.Output<java.util.List<EventTargetEcsTargetCapacityProviderStrategyArgs>> capacityProviderStrategies)
- Parameters:
capacityProviderStrategies
- The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.- Returns:
- builder
-
capacityProviderStrategies
public EventTargetEcsTargetArgs.Builder capacityProviderStrategies(java.util.List<EventTargetEcsTargetCapacityProviderStrategyArgs> capacityProviderStrategies)
- Parameters:
capacityProviderStrategies
- The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.- Returns:
- builder
-
capacityProviderStrategies
public EventTargetEcsTargetArgs.Builder capacityProviderStrategies(EventTargetEcsTargetCapacityProviderStrategyArgs... capacityProviderStrategies)
- Parameters:
capacityProviderStrategies
- The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.- Returns:
- builder
-
enableEcsManagedTags
public EventTargetEcsTargetArgs.Builder enableEcsManagedTags(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableEcsManagedTags)
- Parameters:
enableEcsManagedTags
- Specifies whether to enable Amazon ECS managed tags for the task.- Returns:
- builder
-
enableEcsManagedTags
public EventTargetEcsTargetArgs.Builder enableEcsManagedTags(java.lang.Boolean enableEcsManagedTags)
- Parameters:
enableEcsManagedTags
- Specifies whether to enable Amazon ECS managed tags for the task.- Returns:
- builder
-
enableExecuteCommand
public EventTargetEcsTargetArgs.Builder enableExecuteCommand(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableExecuteCommand)
- Parameters:
enableExecuteCommand
- 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.- Returns:
- builder
-
enableExecuteCommand
public EventTargetEcsTargetArgs.Builder enableExecuteCommand(java.lang.Boolean enableExecuteCommand)
- Parameters:
enableExecuteCommand
- 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.- Returns:
- builder
-
group
public EventTargetEcsTargetArgs.Builder group(@Nullable com.pulumi.core.Output<java.lang.String> group)
- Parameters:
group
- Specifies an ECS task group for the task. The maximum length is 255 characters.- Returns:
- builder
-
group
public EventTargetEcsTargetArgs.Builder group(java.lang.String group)
- Parameters:
group
- Specifies an ECS task group for the task. The maximum length is 255 characters.- Returns:
- builder
-
launchType
public EventTargetEcsTargetArgs.Builder launchType(@Nullable com.pulumi.core.Output<java.lang.String> launchType)
- Parameters:
launchType
- 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. Valid values include: `EC2`, `EXTERNAL`, or `FARGATE`.- Returns:
- builder
-
launchType
public EventTargetEcsTargetArgs.Builder launchType(java.lang.String launchType)
- Parameters:
launchType
- 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. Valid values include: `EC2`, `EXTERNAL`, or `FARGATE`.- Returns:
- builder
-
networkConfiguration
public EventTargetEcsTargetArgs.Builder networkConfiguration(@Nullable com.pulumi.core.Output<EventTargetEcsTargetNetworkConfigurationArgs> networkConfiguration)
- Parameters:
networkConfiguration
- Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if `launch_type` is `FARGATE` because the awsvpc mode is required for Fargate tasks.- Returns:
- builder
-
networkConfiguration
public EventTargetEcsTargetArgs.Builder networkConfiguration(EventTargetEcsTargetNetworkConfigurationArgs networkConfiguration)
- Parameters:
networkConfiguration
- Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if `launch_type` is `FARGATE` because the awsvpc mode is required for Fargate tasks.- Returns:
- builder
-
orderedPlacementStrategies
public EventTargetEcsTargetArgs.Builder orderedPlacementStrategies(@Nullable com.pulumi.core.Output<java.util.List<EventTargetEcsTargetOrderedPlacementStrategyArgs>> orderedPlacementStrategies)
- Parameters:
orderedPlacementStrategies
- An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.- Returns:
- builder
-
orderedPlacementStrategies
public EventTargetEcsTargetArgs.Builder orderedPlacementStrategies(java.util.List<EventTargetEcsTargetOrderedPlacementStrategyArgs> orderedPlacementStrategies)
- Parameters:
orderedPlacementStrategies
- An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.- Returns:
- builder
-
orderedPlacementStrategies
public EventTargetEcsTargetArgs.Builder orderedPlacementStrategies(EventTargetEcsTargetOrderedPlacementStrategyArgs... orderedPlacementStrategies)
- Parameters:
orderedPlacementStrategies
- An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.- Returns:
- builder
-
placementConstraints
public EventTargetEcsTargetArgs.Builder placementConstraints(@Nullable com.pulumi.core.Output<java.util.List<EventTargetEcsTargetPlacementConstraintArgs>> placementConstraints)
- Parameters:
placementConstraints
- 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). See Below.- Returns:
- builder
-
placementConstraints
public EventTargetEcsTargetArgs.Builder placementConstraints(java.util.List<EventTargetEcsTargetPlacementConstraintArgs> placementConstraints)
- Parameters:
placementConstraints
- 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). See Below.- Returns:
- builder
-
placementConstraints
public EventTargetEcsTargetArgs.Builder placementConstraints(EventTargetEcsTargetPlacementConstraintArgs... placementConstraints)
- Parameters:
placementConstraints
- 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). See Below.- Returns:
- builder
-
platformVersion
public EventTargetEcsTargetArgs.Builder platformVersion(@Nullable com.pulumi.core.Output<java.lang.String> platformVersion)
- Parameters:
platformVersion
- Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as `1.1.0`. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).- Returns:
- builder
-
platformVersion
public EventTargetEcsTargetArgs.Builder platformVersion(java.lang.String platformVersion)
- Parameters:
platformVersion
- Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as `1.1.0`. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).- Returns:
- builder
-
propagateTags
public EventTargetEcsTargetArgs.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 are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: `TASK_DEFINITION`.- Returns:
- builder
-
propagateTags
public EventTargetEcsTargetArgs.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 are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: `TASK_DEFINITION`.- Returns:
- builder
-
tags
public EventTargetEcsTargetArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags
- A map of tags to assign to ecs resources.- Returns:
- builder
-
tags
public EventTargetEcsTargetArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags
- A map of tags to assign to ecs resources.- Returns:
- builder
-
taskCount
public EventTargetEcsTargetArgs.Builder taskCount(@Nullable com.pulumi.core.Output<java.lang.Integer> taskCount)
- Parameters:
taskCount
- The number of tasks to create based on the TaskDefinition. Defaults to `1`.- Returns:
- builder
-
taskCount
public EventTargetEcsTargetArgs.Builder taskCount(java.lang.Integer taskCount)
- Parameters:
taskCount
- The number of tasks to create based on the TaskDefinition. Defaults to `1`.- Returns:
- builder
-
taskDefinitionArn
public EventTargetEcsTargetArgs.Builder taskDefinitionArn(com.pulumi.core.Output<java.lang.String> taskDefinitionArn)
- Parameters:
taskDefinitionArn
- The ARN of the task definition to use if the event target is an Amazon ECS cluster.- Returns:
- builder
-
taskDefinitionArn
public EventTargetEcsTargetArgs.Builder taskDefinitionArn(java.lang.String taskDefinitionArn)
- Parameters:
taskDefinitionArn
- The ARN of the task definition to use if the event target is an Amazon ECS cluster.- Returns:
- builder
-
build
public EventTargetEcsTargetArgs build()
-
-