@Stability(value=Stable)
public static interface CfnLaunchTemplate.LaunchTemplateDataProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
LaunchTemplateDataProperty launchTemplateDataProperty = LaunchTemplateDataProperty.builder()
.blockDeviceMappings(List.of(BlockDeviceMappingProperty.builder()
.deviceName("deviceName")
.ebs(EbsProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.throughput(123)
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice("noDevice")
.virtualName("virtualName")
.build()))
.capacityReservationSpecification(CapacityReservationSpecificationProperty.builder()
.capacityReservationPreference("capacityReservationPreference")
.capacityReservationTarget(CapacityReservationTargetProperty.builder()
.capacityReservationId("capacityReservationId")
.capacityReservationResourceGroupArn("capacityReservationResourceGroupArn")
.build())
.build())
.cpuOptions(CpuOptionsProperty.builder()
.coreCount(123)
.threadsPerCore(123)
.build())
.creditSpecification(CreditSpecificationProperty.builder()
.cpuCredits("cpuCredits")
.build())
.disableApiTermination(false)
.ebsOptimized(false)
.elasticGpuSpecifications(List.of(ElasticGpuSpecificationProperty.builder()
.type("type")
.build()))
.elasticInferenceAccelerators(List.of(LaunchTemplateElasticInferenceAcceleratorProperty.builder()
.count(123)
.type("type")
.build()))
.enclaveOptions(EnclaveOptionsProperty.builder()
.enabled(false)
.build())
.hibernationOptions(HibernationOptionsProperty.builder()
.configured(false)
.build())
.iamInstanceProfile(IamInstanceProfileProperty.builder()
.arn("arn")
.name("name")
.build())
.imageId("imageId")
.instanceInitiatedShutdownBehavior("instanceInitiatedShutdownBehavior")
.instanceMarketOptions(InstanceMarketOptionsProperty.builder()
.marketType("marketType")
.spotOptions(SpotOptionsProperty.builder()
.blockDurationMinutes(123)
.instanceInterruptionBehavior("instanceInterruptionBehavior")
.maxPrice("maxPrice")
.spotInstanceType("spotInstanceType")
.validUntil("validUntil")
.build())
.build())
.instanceType("instanceType")
.kernelId("kernelId")
.keyName("keyName")
.licenseSpecifications(List.of(LicenseSpecificationProperty.builder()
.licenseConfigurationArn("licenseConfigurationArn")
.build()))
.metadataOptions(MetadataOptionsProperty.builder()
.httpEndpoint("httpEndpoint")
.httpProtocolIpv6("httpProtocolIpv6")
.httpPutResponseHopLimit(123)
.httpTokens("httpTokens")
.build())
.monitoring(MonitoringProperty.builder()
.enabled(false)
.build())
.networkInterfaces(List.of(NetworkInterfaceProperty.builder()
.associateCarrierIpAddress(false)
.associatePublicIpAddress(false)
.deleteOnTermination(false)
.description("description")
.deviceIndex(123)
.groups(List.of("groups"))
.interfaceType("interfaceType")
.ipv6AddressCount(123)
.ipv6Addresses(List.of(Ipv6AddProperty.builder()
.ipv6Address("ipv6Address")
.build()))
.networkCardIndex(123)
.networkInterfaceId("networkInterfaceId")
.privateIpAddress("privateIpAddress")
.privateIpAddresses(List.of(PrivateIpAddProperty.builder()
.primary(false)
.privateIpAddress("privateIpAddress")
.build()))
.secondaryPrivateIpAddressCount(123)
.subnetId("subnetId")
.build()))
.placement(PlacementProperty.builder()
.affinity("affinity")
.availabilityZone("availabilityZone")
.groupName("groupName")
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.partitionNumber(123)
.spreadDomain("spreadDomain")
.tenancy("tenancy")
.build())
.ramDiskId("ramDiskId")
.securityGroupIds(List.of("securityGroupIds"))
.securityGroups(List.of("securityGroups"))
.tagSpecifications(List.of(TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.userData("userData")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.LaunchTemplateDataProperty.Builder
A builder for
CfnLaunchTemplate.LaunchTemplateDataProperty |
static class |
CfnLaunchTemplate.LaunchTemplateDataProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.LaunchTemplateDataProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.LaunchTemplateDataProperty.Builder |
builder() |
default Object |
getBlockDeviceMappings()
`CfnLaunchTemplate.LaunchTemplateDataProperty.BlockDeviceMappings`.
|
default Object |
getCapacityReservationSpecification()
`CfnLaunchTemplate.LaunchTemplateDataProperty.CapacityReservationSpecification`.
|
default Object |
getCpuOptions()
`CfnLaunchTemplate.LaunchTemplateDataProperty.CpuOptions`.
|
default Object |
getCreditSpecification()
`CfnLaunchTemplate.LaunchTemplateDataProperty.CreditSpecification`.
|
default Object |
getDisableApiTermination()
`CfnLaunchTemplate.LaunchTemplateDataProperty.DisableApiTermination`.
|
default Object |
getEbsOptimized()
`CfnLaunchTemplate.LaunchTemplateDataProperty.EbsOptimized`.
|
default Object |
getElasticGpuSpecifications()
`CfnLaunchTemplate.LaunchTemplateDataProperty.ElasticGpuSpecifications`.
|
default Object |
getElasticInferenceAccelerators()
`CfnLaunchTemplate.LaunchTemplateDataProperty.ElasticInferenceAccelerators`.
|
default Object |
getEnclaveOptions()
`CfnLaunchTemplate.LaunchTemplateDataProperty.EnclaveOptions`.
|
default Object |
getHibernationOptions()
`CfnLaunchTemplate.LaunchTemplateDataProperty.HibernationOptions`.
|
default Object |
getIamInstanceProfile()
`CfnLaunchTemplate.LaunchTemplateDataProperty.IamInstanceProfile`.
|
default String |
getImageId()
`CfnLaunchTemplate.LaunchTemplateDataProperty.ImageId`.
|
default String |
getInstanceInitiatedShutdownBehavior()
`CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceInitiatedShutdownBehavior`.
|
default Object |
getInstanceMarketOptions()
`CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceMarketOptions`.
|
default String |
getInstanceType()
`CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceType`.
|
default String |
getKernelId()
`CfnLaunchTemplate.LaunchTemplateDataProperty.KernelId`.
|
default String |
getKeyName()
`CfnLaunchTemplate.LaunchTemplateDataProperty.KeyName`.
|
default Object |
getLicenseSpecifications()
`CfnLaunchTemplate.LaunchTemplateDataProperty.LicenseSpecifications`.
|
default Object |
getMetadataOptions()
`CfnLaunchTemplate.LaunchTemplateDataProperty.MetadataOptions`.
|
default Object |
getMonitoring()
`CfnLaunchTemplate.LaunchTemplateDataProperty.Monitoring`.
|
default Object |
getNetworkInterfaces()
`CfnLaunchTemplate.LaunchTemplateDataProperty.NetworkInterfaces`.
|
default Object |
getPlacement()
`CfnLaunchTemplate.LaunchTemplateDataProperty.Placement`.
|
default String |
getRamDiskId()
`CfnLaunchTemplate.LaunchTemplateDataProperty.RamDiskId`.
|
default List<String> |
getSecurityGroupIds()
`CfnLaunchTemplate.LaunchTemplateDataProperty.SecurityGroupIds`.
|
default List<String> |
getSecurityGroups()
`CfnLaunchTemplate.LaunchTemplateDataProperty.SecurityGroups`.
|
default Object |
getTagSpecifications()
`CfnLaunchTemplate.LaunchTemplateDataProperty.TagSpecifications`.
|
default String |
getUserData()
`CfnLaunchTemplate.LaunchTemplateDataProperty.UserData`.
|
@Stability(value=Stable) @Nullable default Object getBlockDeviceMappings()
@Stability(value=Stable) @Nullable default Object getCapacityReservationSpecification()
@Stability(value=Stable) @Nullable default Object getCpuOptions()
@Stability(value=Stable) @Nullable default Object getCreditSpecification()
@Stability(value=Stable) @Nullable default Object getDisableApiTermination()
@Stability(value=Stable) @Nullable default Object getEbsOptimized()
@Stability(value=Stable) @Nullable default Object getElasticGpuSpecifications()
@Stability(value=Stable) @Nullable default Object getElasticInferenceAccelerators()
@Stability(value=Stable) @Nullable default Object getEnclaveOptions()
@Stability(value=Stable) @Nullable default Object getHibernationOptions()
@Stability(value=Stable) @Nullable default Object getIamInstanceProfile()
@Stability(value=Stable) @Nullable default String getImageId()
@Stability(value=Stable) @Nullable default String getInstanceInitiatedShutdownBehavior()
@Stability(value=Stable) @Nullable default Object getInstanceMarketOptions()
@Stability(value=Stable) @Nullable default String getInstanceType()
@Stability(value=Stable) @Nullable default String getKernelId()
@Stability(value=Stable) @Nullable default String getKeyName()
@Stability(value=Stable) @Nullable default Object getLicenseSpecifications()
@Stability(value=Stable) @Nullable default Object getMetadataOptions()
@Stability(value=Stable) @Nullable default Object getMonitoring()
@Stability(value=Stable) @Nullable default Object getNetworkInterfaces()
@Stability(value=Stable) @Nullable default Object getPlacement()
@Stability(value=Stable) @Nullable default String getRamDiskId()
@Stability(value=Stable) @Nullable default List<String> getSecurityGroupIds()
@Stability(value=Stable) @Nullable default List<String> getSecurityGroups()
@Stability(value=Stable) @Nullable default Object getTagSpecifications()
@Stability(value=Stable) @Nullable default String getUserData()
@Stability(value=Stable) static CfnLaunchTemplate.LaunchTemplateDataProperty.Builder builder()
Copyright © 2021. All rights reserved.