/AWS1/CL_ECSINSTANCELAUNCHTMPL¶
The launch template configuration for Amazon ECS Managed Instances. This defines how Amazon ECS launches Amazon EC2 instances, including the instance profile for your tasks, network and storage configuration, capacity options, and instance requirements for flexible instance type selection.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_ec2instanceprofilearn TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING¶
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 Amazon Web Services services and resources.
For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide.
io_networkconfiguration TYPE REF TO /AWS1/CL_ECSMANAGEDINSNETCONF /AWS1/CL_ECSMANAGEDINSNETCONF¶
The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.
Optional arguments:¶
io_storageconfiguration TYPE REF TO /AWS1/CL_ECSMANAGEDINSSTRGCONF /AWS1/CL_ECSMANAGEDINSSTRGCONF¶
The storage configuration for Amazon ECS Managed Instances. This defines the data volume properties for the instances.
io_localstorageconfiguration TYPE REF TO /AWS1/CL_ECSMGDINSLOCALSTRGC00 /AWS1/CL_ECSMGDINSLOCALSTRGC00¶
The local storage configuration for Amazon ECS Managed Instances. This defines how ECS uses instance store volumes available on the container instance.
iv_monitoring TYPE /AWS1/ECSMANAGEDINSTSMONOPTS /AWS1/ECSMANAGEDINSTSMONOPTS¶
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.
iv_capacityoptiontype TYPE /AWS1/ECSCAPACITYOPTIONTYPE /AWS1/ECSCAPACITYOPTIONTYPE¶
The capacity option type. This determines whether Amazon ECS launches On-Demand, Spot or Capacity Reservation 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.
RESERVED- Launches Instances using Amazon EC2 Capacity Reservations. Capacity Reservations allow you to reserve compute capacity for Amazon EC2 instances in a specific Availability Zone.The default is On-Demand
For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide.
iv_instmetadatatagspropag TYPE /AWS1/ECSBOXEDBOOLEAN /AWS1/ECSBOXEDBOOLEAN¶
Determines whether tags are propagated to the instance metadata service (IMDS) for Amazon EC2 instances launched by the Managed Instances capacity provider. When enabled, all tags associated with the instance are available through the instance metadata service. When disabled, tags are not propagated to IMDS.
Disable this setting if your tags contain characters that are not compatible with IMDS, such as
/. IMDS requires tag keys to match the pattern[0-9a-zA-Z-_+=,.@:]{1,255}.The default value is
true.For more information, see Work with instance tags in instance metadata in the Amazon EC2 User Guide.
io_instancerequirements TYPE REF TO /AWS1/CL_ECSINSTREQSREQUEST /AWS1/CL_ECSINSTREQSREQUEST¶
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.
iv_fipsenabled TYPE /AWS1/ECSBOXEDBOOLEAN /AWS1/ECSBOXEDBOOLEAN¶
Determines whether to enable FIPS 140-2 validated cryptographic modules on EC2 instances launched by the capacity provider. If
true, instances use FIPS-compliant cryptographic algorithms and modules for enhanced security compliance. Iffalse, instances use standard cryptographic implementations.If not specified, instances are launched with FIPS enabled in Amazon Web Services GovCloud (US) regions and FIPS disabled in other regions.
io_capacityreservations TYPE REF TO /AWS1/CL_ECSCAPRESVREQUEST /AWS1/CL_ECSCAPRESVREQUEST¶
Capacity reservation specifications. You can specify:
Capacity reservation preference
Reservation resource group to be used for targeted capacity reservations
Amazon ECS will launch instances according to the specified criteria.
Queryable Attributes¶
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 Amazon Web Services services and resources.
For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_EC2INSTANCEPROFILEARN() |
Getter for EC2INSTANCEPROFILEARN, with configurable default |
ASK_EC2INSTANCEPROFILEARN() |
Getter for EC2INSTANCEPROFILEARN w/ exceptions if field has |
HAS_EC2INSTANCEPROFILEARN() |
Determine if EC2INSTANCEPROFILEARN has a value |
networkConfiguration¶
The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_NETWORKCONFIGURATION() |
Getter for NETWORKCONFIGURATION |
storageConfiguration¶
The storage configuration for Amazon ECS Managed Instances. This defines the data volume properties for the instances.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STORAGECONFIGURATION() |
Getter for STORAGECONFIGURATION |
localStorageConfiguration¶
The local storage configuration for Amazon ECS Managed Instances. This defines how ECS uses instance store volumes available on the container instance.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_LOCALSTORAGECONF() |
Getter for LOCALSTORAGECONFIGURATION |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MONITORING() |
Getter for MONITORING, with configurable default |
ASK_MONITORING() |
Getter for MONITORING w/ exceptions if field has no value |
HAS_MONITORING() |
Determine if MONITORING has a value |
capacityOptionType¶
The capacity option type. This determines whether Amazon ECS launches On-Demand, Spot or Capacity Reservation 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.
RESERVED- Launches Instances using Amazon EC2 Capacity Reservations. Capacity Reservations allow you to reserve compute capacity for Amazon EC2 instances in a specific Availability Zone.The default is On-Demand
For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CAPACITYOPTIONTYPE() |
Getter for CAPACITYOPTIONTYPE, with configurable default |
ASK_CAPACITYOPTIONTYPE() |
Getter for CAPACITYOPTIONTYPE w/ exceptions if field has no |
HAS_CAPACITYOPTIONTYPE() |
Determine if CAPACITYOPTIONTYPE has a value |
instanceMetadataTagsPropagation¶
Determines whether tags are propagated to the instance metadata service (IMDS) for Amazon EC2 instances launched by the Managed Instances capacity provider. When enabled, all tags associated with the instance are available through the instance metadata service. When disabled, tags are not propagated to IMDS.
Disable this setting if your tags contain characters that are not compatible with IMDS, such as
/. IMDS requires tag keys to match the pattern[0-9a-zA-Z-_+=,.@:]{1,255}.The default value is
true.For more information, see Work with instance tags in instance metadata in the Amazon EC2 User Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INSTMETADATATAGSPROPAG() |
Getter for INSTANCEMETADATATAGSPROPAG, with configurable def |
ASK_INSTMETADATATAGSPROPAG() |
Getter for INSTANCEMETADATATAGSPROPAG w/ exceptions if field |
HAS_INSTMETADATATAGSPROPAG() |
Determine if INSTANCEMETADATATAGSPROPAG has a value |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INSTANCEREQUIREMENTS() |
Getter for INSTANCEREQUIREMENTS |
fipsEnabled¶
Determines whether to enable FIPS 140-2 validated cryptographic modules on EC2 instances launched by the capacity provider. If
true, instances use FIPS-compliant cryptographic algorithms and modules for enhanced security compliance. Iffalse, instances use standard cryptographic implementations.If not specified, instances are launched with FIPS enabled in Amazon Web Services GovCloud (US) regions and FIPS disabled in other regions.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FIPSENABLED() |
Getter for FIPSENABLED, with configurable default |
ASK_FIPSENABLED() |
Getter for FIPSENABLED w/ exceptions if field has no value |
HAS_FIPSENABLED() |
Determine if FIPSENABLED has a value |
capacityReservations¶
Capacity reservation specifications. You can specify:
Capacity reservation preference
Reservation resource group to be used for targeted capacity reservations
Amazon ECS will launch instances according to the specified criteria.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CAPACITYRESERVATIONS() |
Getter for CAPACITYRESERVATIONS |