Class InstanceLaunchTemplate
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceLaunchTemplate.Builder,InstanceLaunchTemplate>
The instance launch configuration for an Amazon ECS Managed Instances capacity provider. Specifies the instance profile, networking, instance selection constraints, capacity pricing model, storage, and monitoring settings.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe capacity pricing model for the managed instances.The capacity reservation configuration for the managed instances.final StringThe Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final BooleanSpecifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanSpecifies whether instance tags are accessible from the instance metadata service (IMDS).The instance type requirements for the capacity provider.The local storage configuration for the managed instances.final StringThe level of CloudWatch monitoring for the managed instances.The network configuration for the managed instances.static Class<? extends InstanceLaunchTemplate.Builder> The storage configuration for the managed instances.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.- Returns:
- 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.
-
networkConfiguration
The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.
- Returns:
- The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.
-
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:
- 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.
-
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:
- 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.
-
-
-
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:
- 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.
-
monitoring
The level of CloudWatch monitoring for the managed instances. Valid values are
BASICandDETAILED.- Returns:
- The level of CloudWatch monitoring for the managed instances. Valid values are
BASICandDETAILED.
-
fipsEnabled
Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.
- Returns:
- Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.
-
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:
- 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.
-
instanceMetadataTagsPropagation
Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.
- Returns:
- Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.
-
localStorageConfiguration
The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.
- Returns:
- The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceLaunchTemplate.Builder,InstanceLaunchTemplate> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-