Class CloudwatchEventTargetEcsTarget.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.cloudwatch_event_target.CloudwatchEventTargetEcsTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudwatchEventTargetEcsTarget>
- Enclosing interface:
- CloudwatchEventTargetEcsTarget
@Stability(Stable) public static final class CloudwatchEventTargetEcsTarget.Builder extends Object implements software.amazon.jsii.Builder<CloudwatchEventTargetEcsTarget>
A builder forCloudwatchEventTargetEcsTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
taskDefinitionArn
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder taskDefinitionArn(String taskDefinitionArn)
Sets the value ofCloudwatchEventTargetEcsTarget.getTaskDefinitionArn()- Parameters:
taskDefinitionArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#task_definition_arn CloudwatchEventTarget#task_definition_arn}. This parameter is required.- Returns:
this
-
capacityProviderStrategy
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder capacityProviderStrategy(com.hashicorp.cdktf.IResolvable capacityProviderStrategy)
Sets the value ofCloudwatchEventTargetEcsTarget.getCapacityProviderStrategy()- Parameters:
capacityProviderStrategy- capacity_provider_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#capacity_provider_strategy CloudwatchEventTarget#capacity_provider_strategy}- Returns:
this
-
capacityProviderStrategy
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder capacityProviderStrategy(List<? extends CloudwatchEventTargetEcsTargetCapacityProviderStrategy> capacityProviderStrategy)
Sets the value ofCloudwatchEventTargetEcsTarget.getCapacityProviderStrategy()- Parameters:
capacityProviderStrategy- capacity_provider_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#capacity_provider_strategy CloudwatchEventTarget#capacity_provider_strategy}- Returns:
this
-
enableEcsManagedTags
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
Sets the value ofCloudwatchEventTargetEcsTarget.getEnableEcsManagedTags()- Parameters:
enableEcsManagedTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#enable_ecs_managed_tags CloudwatchEventTarget#enable_ecs_managed_tags}.- Returns:
this
-
enableEcsManagedTags
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder enableEcsManagedTags(com.hashicorp.cdktf.IResolvable enableEcsManagedTags)
Sets the value ofCloudwatchEventTargetEcsTarget.getEnableEcsManagedTags()- Parameters:
enableEcsManagedTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#enable_ecs_managed_tags CloudwatchEventTarget#enable_ecs_managed_tags}.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder enableExecuteCommand(Boolean enableExecuteCommand)
Sets the value ofCloudwatchEventTargetEcsTarget.getEnableExecuteCommand()- Parameters:
enableExecuteCommand- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#enable_execute_command CloudwatchEventTarget#enable_execute_command}.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder enableExecuteCommand(com.hashicorp.cdktf.IResolvable enableExecuteCommand)
Sets the value ofCloudwatchEventTargetEcsTarget.getEnableExecuteCommand()- Parameters:
enableExecuteCommand- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#enable_execute_command CloudwatchEventTarget#enable_execute_command}.- Returns:
this
-
group
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder group(String group)
Sets the value ofCloudwatchEventTargetEcsTarget.getGroup()- Parameters:
group- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#group CloudwatchEventTarget#group}.- Returns:
this
-
launchType
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder launchType(String launchType)
Sets the value ofCloudwatchEventTargetEcsTarget.getLaunchType()- Parameters:
launchType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#launch_type CloudwatchEventTarget#launch_type}.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder networkConfiguration(CloudwatchEventTargetEcsTargetNetworkConfiguration networkConfiguration)
Sets the value ofCloudwatchEventTargetEcsTarget.getNetworkConfiguration()- Parameters:
networkConfiguration- network_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#network_configuration CloudwatchEventTarget#network_configuration}- Returns:
this
-
orderedPlacementStrategy
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder orderedPlacementStrategy(com.hashicorp.cdktf.IResolvable orderedPlacementStrategy)
Sets the value ofCloudwatchEventTargetEcsTarget.getOrderedPlacementStrategy()- Parameters:
orderedPlacementStrategy- ordered_placement_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#ordered_placement_strategy CloudwatchEventTarget#ordered_placement_strategy}- Returns:
this
-
orderedPlacementStrategy
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder orderedPlacementStrategy(List<? extends CloudwatchEventTargetEcsTargetOrderedPlacementStrategy> orderedPlacementStrategy)
Sets the value ofCloudwatchEventTargetEcsTarget.getOrderedPlacementStrategy()- Parameters:
orderedPlacementStrategy- ordered_placement_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#ordered_placement_strategy CloudwatchEventTarget#ordered_placement_strategy}- Returns:
this
-
placementConstraint
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder placementConstraint(com.hashicorp.cdktf.IResolvable placementConstraint)
Sets the value ofCloudwatchEventTargetEcsTarget.getPlacementConstraint()- Parameters:
placementConstraint- placement_constraint block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#placement_constraint CloudwatchEventTarget#placement_constraint}- Returns:
this
-
placementConstraint
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder placementConstraint(List<? extends CloudwatchEventTargetEcsTargetPlacementConstraint> placementConstraint)
Sets the value ofCloudwatchEventTargetEcsTarget.getPlacementConstraint()- Parameters:
placementConstraint- placement_constraint block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#placement_constraint CloudwatchEventTarget#placement_constraint}- Returns:
this
-
platformVersion
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder platformVersion(String platformVersion)
Sets the value ofCloudwatchEventTargetEcsTarget.getPlatformVersion()- Parameters:
platformVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#platform_version CloudwatchEventTarget#platform_version}.- Returns:
this
-
propagateTags
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder propagateTags(String propagateTags)
Sets the value ofCloudwatchEventTargetEcsTarget.getPropagateTags()- Parameters:
propagateTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#propagate_tags CloudwatchEventTarget#propagate_tags}.- Returns:
this
-
tags
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder tags(Map<String,String> tags)
Sets the value ofCloudwatchEventTargetEcsTarget.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#tags CloudwatchEventTarget#tags}.- Returns:
this
-
taskCount
@Stability(Stable) public CloudwatchEventTargetEcsTarget.Builder taskCount(Number taskCount)
Sets the value ofCloudwatchEventTargetEcsTarget.getTaskCount()- Parameters:
taskCount- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#task_count CloudwatchEventTarget#task_count}.- Returns:
this
-
build
@Stability(Stable) public CloudwatchEventTargetEcsTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudwatchEventTargetEcsTarget>- Returns:
- a new instance of
CloudwatchEventTargetEcsTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-