Class CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.infrastructureOptimization(CfnCapacityProviderPropsMixin.InfrastructureOptimizationProperty infrastructureOptimization) infrastructureOptimization(IResolvable infrastructureOptimization) infrastructureRoleArn(String infrastructureRoleArn) instanceLaunchTemplate(CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty instanceLaunchTemplate) instanceLaunchTemplate(IResolvable instanceLaunchTemplate) propagateTags(String propagateTags)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
infrastructureOptimization
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder infrastructureOptimization(IResolvable infrastructureOptimization) Sets the value ofCfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.getInfrastructureOptimization()- Parameters:
infrastructureOptimization- Defines how Amazon ECS Managed Instances optimizes the infrastastructure in your capacity provider. Configure it to turn on or off the infrastructure optimization in your capacity provider, and to control the idle or underutilized EC2 instances optimization delay.- Returns:
this
-
infrastructureOptimization
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder infrastructureOptimization(CfnCapacityProviderPropsMixin.InfrastructureOptimizationProperty infrastructureOptimization) Sets the value ofCfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.getInfrastructureOptimization()- Parameters:
infrastructureOptimization- Defines how Amazon ECS Managed Instances optimizes the infrastastructure in your capacity provider. Configure it to turn on or off the infrastructure optimization in your capacity provider, and to control the idle or underutilized EC2 instances optimization delay.- Returns:
this
-
infrastructureRoleArn
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder infrastructureRoleArn(String infrastructureRoleArn) Sets the value ofCfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.getInfrastructureRoleArn()- Parameters:
infrastructureRoleArn- The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS assumes to manage instances. This role must include permissions for Amazon EC2 instance lifecycle management, networking, and any additional AWS services required for your workloads.For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide .
- Returns:
this
-
instanceLaunchTemplate
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder instanceLaunchTemplate(IResolvable instanceLaunchTemplate) Sets the value ofCfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.getInstanceLaunchTemplate()- Parameters:
instanceLaunchTemplate- The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide .
- Returns:
this
-
instanceLaunchTemplate
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder instanceLaunchTemplate(CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty instanceLaunchTemplate) Sets the value ofCfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.getInstanceLaunchTemplate()- Parameters:
instanceLaunchTemplate- The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide .
- Returns:
this
-
propagateTags
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Builder propagateTags(String propagateTags) - Parameters:
propagateTags- Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty - Throws:
NullPointerException- if any required attribute was not provided
-