@Stability(value=Stable)
public static interface CfnLaunchTemplate.CapacityReservationSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
CapacityReservationSpecification is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CapacityReservationSpecificationProperty capacityReservationSpecificationProperty = CapacityReservationSpecificationProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationTarget(CapacityReservationTargetProperty.builder()
.capacityReservationId("capacityReservationId")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder
|
static class |
CfnLaunchTemplate.CapacityReservationSpecificationProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.CapacityReservationSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder |
builder() |
default String |
getCapacityReservationPreference()
Indicates the instance's Capacity Reservation preferences.
|
default Object |
getCapacityReservationTarget()
Information about the target Capacity Reservation or Capacity Reservation group.
|
@Stability(value=Stable) @Nullable default String getCapacityReservationPreference()
open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.@Stability(value=Stable) @Nullable default Object getCapacityReservationTarget()
@Stability(value=Stable) static CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.