@Stability(value=Stable)
public static interface CfnLaunchTemplate.CapacityReservationTargetProperty
extends software.amazon.jsii.JsiiSerializable
CapacityReservationTarget is a property of the Amazon EC2 LaunchTemplate LaunchTemplateData property type.
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.*;
CapacityReservationTargetProperty capacityReservationTargetProperty = CapacityReservationTargetProperty.builder()
.capacityReservationId("capacityReservationId")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.CapacityReservationTargetProperty.Builder
A builder for
CfnLaunchTemplate.CapacityReservationTargetProperty |
static class |
CfnLaunchTemplate.CapacityReservationTargetProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.CapacityReservationTargetProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.CapacityReservationTargetProperty.Builder |
builder() |
default String |
getCapacityReservationId()
The ID of the Capacity Reservation in which to run the instance.
|
default String |
getCapacityReservationResourceGroupArn()
The ARN of the Capacity Reservation resource group in which to run the instance.
|
@Stability(value=Stable) @Nullable default String getCapacityReservationId()
@Stability(value=Stable) @Nullable default String getCapacityReservationResourceGroupArn()
@Stability(value=Stable) static CfnLaunchTemplate.CapacityReservationTargetProperty.Builder builder()
Copyright © 2022. All rights reserved.