/AWS1/CL_EC2LAUNCHTMPLOVERRI00¶
Describes overrides for a launch template.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_instancetype TYPE /AWS1/EC2INSTANCETYPE /AWS1/EC2INSTANCETYPE¶
The instance type.
iv_spotprice TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
iv_subnetid TYPE /AWS1/EC2SUBNETID /AWS1/EC2SUBNETID¶
The ID of the subnet in which to launch the instances.
iv_availabilityzone TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
The Availability Zone in which to launch the instances. For example,
us-east-2a.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
iv_weightedcapacity TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPriceandpriceCapacityOptimizedallocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity, resulting in only 1 instance being launched, the price used is per instance hour.
iv_priority TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategyis set toprioritized, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategyis set tocapacityOptimizedPrioritized, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.
io_instancerequirements TYPE REF TO /AWS1/CL_EC2INSTREQUIREMENTS /AWS1/CL_EC2INSTREQUIREMENTS¶
The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements, you can't specifyInstanceType.
iv_availabilityzoneid TYPE /AWS1/EC2AVAILABILITYZONEID /AWS1/EC2AVAILABILITYZONEID¶
The ID of the Availability Zone in which to launch the instances. For example,
use2-az1.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
Queryable Attributes¶
InstanceType¶
The instance type.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INSTANCETYPE() |
Getter for INSTANCETYPE, with configurable default |
ASK_INSTANCETYPE() |
Getter for INSTANCETYPE w/ exceptions if field has no value |
HAS_INSTANCETYPE() |
Determine if INSTANCETYPE has a value |
SpotPrice¶
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SPOTPRICE() |
Getter for SPOTPRICE, with configurable default |
ASK_SPOTPRICE() |
Getter for SPOTPRICE w/ exceptions if field has no value |
HAS_SPOTPRICE() |
Determine if SPOTPRICE has a value |
SubnetId¶
The ID of the subnet in which to launch the instances.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SUBNETID() |
Getter for SUBNETID, with configurable default |
ASK_SUBNETID() |
Getter for SUBNETID w/ exceptions if field has no value |
HAS_SUBNETID() |
Determine if SUBNETID has a value |
AvailabilityZone¶
The Availability Zone in which to launch the instances. For example,
us-east-2a.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_AVAILABILITYZONE() |
Getter for AVAILABILITYZONE, with configurable default |
ASK_AVAILABILITYZONE() |
Getter for AVAILABILITYZONE w/ exceptions if field has no va |
HAS_AVAILABILITYZONE() |
Determine if AVAILABILITYZONE has a value |
WeightedCapacity¶
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPriceandpriceCapacityOptimizedallocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity, resulting in only 1 instance being launched, the price used is per instance hour.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_WEIGHTEDCAPACITY() |
Getter for WEIGHTEDCAPACITY, with configurable default |
ASK_WEIGHTEDCAPACITY() |
Getter for WEIGHTEDCAPACITY w/ exceptions if field has no va |
STR_WEIGHTEDCAPACITY() |
String format for WEIGHTEDCAPACITY, with configurable defaul |
HAS_WEIGHTEDCAPACITY() |
Determine if WEIGHTEDCAPACITY has a value |
Priority¶
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategyis set toprioritized, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategyis set tocapacityOptimizedPrioritized, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PRIORITY() |
Getter for PRIORITY, with configurable default |
ASK_PRIORITY() |
Getter for PRIORITY w/ exceptions if field has no value |
STR_PRIORITY() |
String format for PRIORITY, with configurable default |
HAS_PRIORITY() |
Determine if PRIORITY has a value |
InstanceRequirements¶
The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements, you can't specifyInstanceType.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_INSTANCEREQUIREMENTS() |
Getter for INSTANCEREQUIREMENTS |
AvailabilityZoneId¶
The ID of the Availability Zone in which to launch the instances. For example,
use2-az1.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_AVAILABILITYZONEID() |
Getter for AVAILABILITYZONEID, with configurable default |
ASK_AVAILABILITYZONEID() |
Getter for AVAILABILITYZONEID w/ exceptions if field has no |
HAS_AVAILABILITYZONEID() |
Determine if AVAILABILITYZONEID has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_LAUNCHTEMPLATEOVERRIDESLIST¶
TYPES TT_LAUNCHTEMPLATEOVERRIDESLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_EC2LAUNCHTMPLOVERRI00 WITH DEFAULT KEY
.