Interface InstanceLaunchTemplate.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceLaunchTemplate.Builder,,InstanceLaunchTemplate> SdkBuilder<InstanceLaunchTemplate.Builder,,InstanceLaunchTemplate> SdkPojo
- Enclosing class:
InstanceLaunchTemplate
-
Method Summary
Modifier and TypeMethodDescriptioncapacityOptionType(String capacityOptionType) The capacity pricing model for the managed instances.default InstanceLaunchTemplate.BuildercapacityReservations(Consumer<CapacityReservationRequest.Builder> capacityReservations) The capacity reservation configuration for the managed instances.capacityReservations(CapacityReservationRequest capacityReservations) The capacity reservation configuration for the managed instances.ec2InstanceProfileArn(String ec2InstanceProfileArn) The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances.fipsEnabled(Boolean fipsEnabled) Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances.instanceMetadataTagsPropagation(Boolean instanceMetadataTagsPropagation) Specifies whether instance tags are accessible from the instance metadata service (IMDS).default InstanceLaunchTemplate.BuilderinstanceRequirements(Consumer<InstanceRequirementsRequest.Builder> instanceRequirements) The instance type requirements for the capacity provider.instanceRequirements(InstanceRequirementsRequest instanceRequirements) The instance type requirements for the capacity provider.default InstanceLaunchTemplate.BuilderlocalStorageConfiguration(Consumer<ManagedInstancesLocalStorageConfiguration.Builder> localStorageConfiguration) The local storage configuration for the managed instances.localStorageConfiguration(ManagedInstancesLocalStorageConfiguration localStorageConfiguration) The local storage configuration for the managed instances.monitoring(String monitoring) The level of CloudWatch monitoring for the managed instances.default InstanceLaunchTemplate.BuildernetworkConfiguration(Consumer<ManagedInstancesNetworkConfiguration.Builder> networkConfiguration) The network configuration for the managed instances.networkConfiguration(ManagedInstancesNetworkConfiguration networkConfiguration) The network configuration for the managed instances.default InstanceLaunchTemplate.BuilderstorageConfiguration(Consumer<ManagedInstancesStorageConfiguration.Builder> storageConfiguration) The storage configuration for the managed instances.storageConfiguration(ManagedInstancesStorageConfiguration storageConfiguration) The storage configuration for the managed instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ec2InstanceProfileArn
The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances. The instance profile must use the
AmazonECSInstanceRolePolicyForManagedInstancesmanaged policy with a trust policy forec2.amazonaws.com.- Parameters:
ec2InstanceProfileArn- The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances. The instance profile must use theAmazonECSInstanceRolePolicyForManagedInstancesmanaged policy with a trust policy forec2.amazonaws.com.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
InstanceLaunchTemplate.Builder networkConfiguration(ManagedInstancesNetworkConfiguration networkConfiguration) The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.
- Parameters:
networkConfiguration- The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default InstanceLaunchTemplate.Builder networkConfiguration(Consumer<ManagedInstancesNetworkConfiguration.Builder> networkConfiguration) The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.
This is a convenience method that creates an instance of theManagedInstancesNetworkConfiguration.Builderavoiding the need to create one manually viaManagedInstancesNetworkConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkConfiguration(ManagedInstancesNetworkConfiguration).- Parameters:
networkConfiguration- a consumer that will call methods onManagedInstancesNetworkConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRequirements
InstanceLaunchTemplate.Builder instanceRequirements(InstanceRequirementsRequest instanceRequirements) The instance type requirements for the capacity provider. Use this to constrain which Amazon EC2 instance types Amazon ECS can launch. If not specified, all available instance types are eligible.
- Parameters:
instanceRequirements- The instance type requirements for the capacity provider. Use this to constrain which Amazon EC2 instance types Amazon ECS can launch. If not specified, all available instance types are eligible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
default InstanceLaunchTemplate.Builder instanceRequirements(Consumer<InstanceRequirementsRequest.Builder> instanceRequirements) The instance type requirements for the capacity provider. Use this to constrain which Amazon EC2 instance types Amazon ECS can launch. If not specified, all available instance types are eligible.
This is a convenience method that creates an instance of theInstanceRequirementsRequest.Builderavoiding the need to create one manually viaInstanceRequirementsRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceRequirements(InstanceRequirementsRequest).- Parameters:
instanceRequirements- a consumer that will call methods onInstanceRequirementsRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityOptionType
The capacity pricing model for the managed instances. Valid values:
-
ON_DEMAND(default) — On-Demand pricing. -
SPOT— Spot Instances, which can provide significant cost savings for fault-tolerant workloads.
- Parameters:
capacityOptionType- The capacity pricing model for the managed instances. Valid values:-
ON_DEMAND(default) — On-Demand pricing. -
SPOT— Spot Instances, which can provide significant cost savings for fault-tolerant workloads.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
storageConfiguration
InstanceLaunchTemplate.Builder storageConfiguration(ManagedInstancesStorageConfiguration storageConfiguration) The storage configuration for the managed instances. Configures the root EBS volume size. If not specified, the service uses the default EBS volume size for the instance type.
- Parameters:
storageConfiguration- The storage configuration for the managed instances. Configures the root EBS volume size. If not specified, the service uses the default EBS volume size for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default InstanceLaunchTemplate.Builder storageConfiguration(Consumer<ManagedInstancesStorageConfiguration.Builder> storageConfiguration) The storage configuration for the managed instances. Configures the root EBS volume size. If not specified, the service uses the default EBS volume size for the instance type.
This is a convenience method that creates an instance of theManagedInstancesStorageConfiguration.Builderavoiding the need to create one manually viaManagedInstancesStorageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostorageConfiguration(ManagedInstancesStorageConfiguration).- Parameters:
storageConfiguration- a consumer that will call methods onManagedInstancesStorageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoring
The level of CloudWatch monitoring for the managed instances. Valid values are
BASICandDETAILED.- Parameters:
monitoring- The level of CloudWatch monitoring for the managed instances. Valid values areBASICandDETAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fipsEnabled
Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.
- Parameters:
fipsEnabled- Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
InstanceLaunchTemplate.Builder capacityReservations(CapacityReservationRequest capacityReservations) The capacity reservation configuration for the managed instances. Use this to target On-Demand Capacity Reservations or Reserved Instances for predictable capacity and cost optimization.
- Parameters:
capacityReservations- The capacity reservation configuration for the managed instances. Use this to target On-Demand Capacity Reservations or Reserved Instances for predictable capacity and cost optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
default InstanceLaunchTemplate.Builder capacityReservations(Consumer<CapacityReservationRequest.Builder> capacityReservations) The capacity reservation configuration for the managed instances. Use this to target On-Demand Capacity Reservations or Reserved Instances for predictable capacity and cost optimization.
This is a convenience method that creates an instance of theCapacityReservationRequest.Builderavoiding the need to create one manually viaCapacityReservationRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityReservations(CapacityReservationRequest).- Parameters:
capacityReservations- a consumer that will call methods onCapacityReservationRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceMetadataTagsPropagation
InstanceLaunchTemplate.Builder instanceMetadataTagsPropagation(Boolean instanceMetadataTagsPropagation) Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.
- Parameters:
instanceMetadataTagsPropagation- Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageConfiguration
InstanceLaunchTemplate.Builder localStorageConfiguration(ManagedInstancesLocalStorageConfiguration localStorageConfiguration) The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.
- Parameters:
localStorageConfiguration- The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageConfiguration
default InstanceLaunchTemplate.Builder localStorageConfiguration(Consumer<ManagedInstancesLocalStorageConfiguration.Builder> localStorageConfiguration) The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.
This is a convenience method that creates an instance of theManagedInstancesLocalStorageConfiguration.Builderavoiding the need to create one manually viaManagedInstancesLocalStorageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocalStorageConfiguration(ManagedInstancesLocalStorageConfiguration).- Parameters:
localStorageConfiguration- a consumer that will call methods onManagedInstancesLocalStorageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-