Class CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityOptionType(String capacityOptionType) capacityReservations(CfnCapacityProviderPropsMixin.CapacityReservationRequestProperty capacityReservations) capacityReservations(IResolvable capacityReservations) ec2InstanceProfileArn(String ec2InstanceProfileArn) fipsEnabled(Boolean fipsEnabled) fipsEnabled(IResolvable fipsEnabled) instanceRequirements(CfnCapacityProviderPropsMixin.InstanceRequirementsRequestProperty instanceRequirements) instanceRequirements(IResolvable instanceRequirements) monitoring(String monitoring) networkConfiguration(CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty networkConfiguration) networkConfiguration(IResolvable networkConfiguration) storageConfiguration(CfnCapacityProviderPropsMixin.ManagedInstancesStorageConfigurationProperty storageConfiguration) storageConfiguration(IResolvable storageConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityOptionType
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder capacityOptionType(String capacityOptionType) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getCapacityOptionType()- Parameters:
capacityOptionType- The capacity option type. This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.Valid values are:
ON_DEMAND- Launches standard On-Demand Instances. On-Demand Instances provide predictable pricing and availability.SPOT- Launches Spot Instances that use spare Amazon EC2 capacity at reduced cost. Spot Instances can be interrupted by Amazon EC2 with a two-minute notification when the capacity is needed back.
The default is On-Demand
For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide .
- Returns:
this
-
capacityReservations
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder capacityReservations(IResolvable capacityReservations) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getCapacityReservations()- Parameters:
capacityReservations- the value to be set.- Returns:
this
-
capacityReservations
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder capacityReservations(CfnCapacityProviderPropsMixin.CapacityReservationRequestProperty capacityReservations) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getCapacityReservations()- Parameters:
capacityReservations- the value to be set.- Returns:
this
-
ec2InstanceProfileArn
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder ec2InstanceProfileArn(String ec2InstanceProfileArn) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getEc2InstanceProfileArn()- Parameters:
ec2InstanceProfileArn- The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances. This instance profile must include the necessary permissions for your tasks to access AWS services and resources.For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide .
- Returns:
this
-
fipsEnabled
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder fipsEnabled(Boolean fipsEnabled) - Parameters:
fipsEnabled- the value to be set.- Returns:
this
-
fipsEnabled
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder fipsEnabled(IResolvable fipsEnabled) - Parameters:
fipsEnabled- the value to be set.- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder instanceRequirements(IResolvable instanceRequirements) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getInstanceRequirements()- Parameters:
instanceRequirements- The instance requirements. You can specify:.- The instance types
- Instance requirements such as vCPU count, memory, network performance, and accelerator specifications
Amazon ECS automatically selects the instances that match the specified criteria.
- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder instanceRequirements(CfnCapacityProviderPropsMixin.InstanceRequirementsRequestProperty instanceRequirements) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getInstanceRequirements()- Parameters:
instanceRequirements- The instance requirements. You can specify:.- The instance types
- Instance requirements such as vCPU count, memory, network performance, and accelerator specifications
Amazon ECS automatically selects the instances that match the specified criteria.
- Returns:
this
-
monitoring
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder monitoring(String monitoring) - Parameters:
monitoring- CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getNetworkConfiguration()- Parameters:
networkConfiguration- The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder networkConfiguration(CfnCapacityProviderPropsMixin.ManagedInstancesNetworkConfigurationProperty networkConfiguration) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getNetworkConfiguration()- Parameters:
networkConfiguration- The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder storageConfiguration(IResolvable storageConfiguration) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getStorageConfiguration()- Parameters:
storageConfiguration- The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.Builder storageConfiguration(CfnCapacityProviderPropsMixin.ManagedInstancesStorageConfigurationProperty storageConfiguration) Sets the value ofCfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty.getStorageConfiguration()- Parameters:
storageConfiguration- The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.InstanceLaunchTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-