Class DataAwsEcsTaskExecutionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.data_aws_ecs_task_execution.DataAwsEcsTaskExecutionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataAwsEcsTaskExecutionConfig>
- Enclosing interface:
- DataAwsEcsTaskExecutionConfig
@Stability(Stable) public static final class DataAwsEcsTaskExecutionConfig.Builder extends Object implements software.amazon.jsii.Builder<DataAwsEcsTaskExecutionConfig>
A builder forDataAwsEcsTaskExecutionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cluster
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder cluster(String cluster)
Sets the value ofDataAwsEcsTaskExecutionConfig.getCluster()- Parameters:
cluster- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#cluster DataAwsEcsTaskExecution#cluster}. This parameter is required.- Returns:
this
-
taskDefinition
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder taskDefinition(String taskDefinition)
Sets the value ofDataAwsEcsTaskExecutionConfig.getTaskDefinition()- Parameters:
taskDefinition- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#task_definition DataAwsEcsTaskExecution#task_definition}. This parameter is required.- Returns:
this
-
capacityProviderStrategy
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder capacityProviderStrategy(com.hashicorp.cdktf.IResolvable capacityProviderStrategy)
Sets the value ofDataAwsEcsTaskExecutionConfig.getCapacityProviderStrategy()- Parameters:
capacityProviderStrategy- capacity_provider_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#capacity_provider_strategy DataAwsEcsTaskExecution#capacity_provider_strategy}- Returns:
this
-
capacityProviderStrategy
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder capacityProviderStrategy(List<? extends DataAwsEcsTaskExecutionCapacityProviderStrategy> capacityProviderStrategy)
Sets the value ofDataAwsEcsTaskExecutionConfig.getCapacityProviderStrategy()- Parameters:
capacityProviderStrategy- capacity_provider_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#capacity_provider_strategy DataAwsEcsTaskExecution#capacity_provider_strategy}- Returns:
this
-
desiredCount
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder desiredCount(Number desiredCount)
Sets the value ofDataAwsEcsTaskExecutionConfig.getDesiredCount()- Parameters:
desiredCount- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#desired_count DataAwsEcsTaskExecution#desired_count}.- Returns:
this
-
enableEcsManagedTags
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
Sets the value ofDataAwsEcsTaskExecutionConfig.getEnableEcsManagedTags()- Parameters:
enableEcsManagedTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#enable_ecs_managed_tags DataAwsEcsTaskExecution#enable_ecs_managed_tags}.- Returns:
this
-
enableEcsManagedTags
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder enableEcsManagedTags(com.hashicorp.cdktf.IResolvable enableEcsManagedTags)
Sets the value ofDataAwsEcsTaskExecutionConfig.getEnableEcsManagedTags()- Parameters:
enableEcsManagedTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#enable_ecs_managed_tags DataAwsEcsTaskExecution#enable_ecs_managed_tags}.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder enableExecuteCommand(Boolean enableExecuteCommand)
Sets the value ofDataAwsEcsTaskExecutionConfig.getEnableExecuteCommand()- Parameters:
enableExecuteCommand- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#enable_execute_command DataAwsEcsTaskExecution#enable_execute_command}.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder enableExecuteCommand(com.hashicorp.cdktf.IResolvable enableExecuteCommand)
Sets the value ofDataAwsEcsTaskExecutionConfig.getEnableExecuteCommand()- Parameters:
enableExecuteCommand- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#enable_execute_command DataAwsEcsTaskExecution#enable_execute_command}.- Returns:
this
-
group
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder group(String group)
Sets the value ofDataAwsEcsTaskExecutionConfig.getGroup()- Parameters:
group- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#group DataAwsEcsTaskExecution#group}.- Returns:
this
-
id
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder id(String id)
Sets the value ofDataAwsEcsTaskExecutionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#id DataAwsEcsTaskExecution#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
launchType
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder launchType(String launchType)
Sets the value ofDataAwsEcsTaskExecutionConfig.getLaunchType()- Parameters:
launchType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#launch_type DataAwsEcsTaskExecution#launch_type}.- Returns:
this
-
networkConfiguration
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder networkConfiguration(DataAwsEcsTaskExecutionNetworkConfiguration networkConfiguration)
Sets the value ofDataAwsEcsTaskExecutionConfig.getNetworkConfiguration()- Parameters:
networkConfiguration- network_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#network_configuration DataAwsEcsTaskExecution#network_configuration}- Returns:
this
-
overrides
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder overrides(DataAwsEcsTaskExecutionOverrides overrides)
Sets the value ofDataAwsEcsTaskExecutionConfig.getOverrides()- Parameters:
overrides- overrides block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#overrides DataAwsEcsTaskExecution#overrides}- Returns:
this
-
placementConstraints
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder placementConstraints(com.hashicorp.cdktf.IResolvable placementConstraints)
Sets the value ofDataAwsEcsTaskExecutionConfig.getPlacementConstraints()- Parameters:
placementConstraints- placement_constraints block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#placement_constraints DataAwsEcsTaskExecution#placement_constraints}- Returns:
this
-
placementConstraints
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder placementConstraints(List<? extends DataAwsEcsTaskExecutionPlacementConstraints> placementConstraints)
Sets the value ofDataAwsEcsTaskExecutionConfig.getPlacementConstraints()- Parameters:
placementConstraints- placement_constraints block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#placement_constraints DataAwsEcsTaskExecution#placement_constraints}- Returns:
this
-
placementStrategy
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder placementStrategy(com.hashicorp.cdktf.IResolvable placementStrategy)
Sets the value ofDataAwsEcsTaskExecutionConfig.getPlacementStrategy()- Parameters:
placementStrategy- placement_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#placement_strategy DataAwsEcsTaskExecution#placement_strategy}- Returns:
this
-
placementStrategy
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder placementStrategy(List<? extends DataAwsEcsTaskExecutionPlacementStrategy> placementStrategy)
Sets the value ofDataAwsEcsTaskExecutionConfig.getPlacementStrategy()- Parameters:
placementStrategy- placement_strategy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#placement_strategy DataAwsEcsTaskExecution#placement_strategy}- Returns:
this
-
platformVersion
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder platformVersion(String platformVersion)
Sets the value ofDataAwsEcsTaskExecutionConfig.getPlatformVersion()- Parameters:
platformVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#platform_version DataAwsEcsTaskExecution#platform_version}.- Returns:
this
-
propagateTags
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder propagateTags(String propagateTags)
Sets the value ofDataAwsEcsTaskExecutionConfig.getPropagateTags()- Parameters:
propagateTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#propagate_tags DataAwsEcsTaskExecution#propagate_tags}.- Returns:
this
-
referenceId
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder referenceId(String referenceId)
Sets the value ofDataAwsEcsTaskExecutionConfig.getReferenceId()- Parameters:
referenceId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#reference_id DataAwsEcsTaskExecution#reference_id}.- Returns:
this
-
startedBy
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder startedBy(String startedBy)
Sets the value ofDataAwsEcsTaskExecutionConfig.getStartedBy()- Parameters:
startedBy- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#started_by DataAwsEcsTaskExecution#started_by}.- Returns:
this
-
tags
@Stability(Stable) public DataAwsEcsTaskExecutionConfig.Builder tags(Map<String,String> tags)
Sets the value ofDataAwsEcsTaskExecutionConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ecs_task_execution#tags DataAwsEcsTaskExecution#tags}.- Returns:
this
-
connection
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DataAwsEcsTaskExecutionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataAwsEcsTaskExecutionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataAwsEcsTaskExecutionConfig>- Returns:
- a new instance of
DataAwsEcsTaskExecutionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-