@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.917Z") @Stability(value=Stable) public interface CfnInstanceProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnInstanceProps cfnInstanceProps = CfnInstanceProps.builder()
.additionalInfo("additionalInfo")
.affinity("affinity")
.availabilityZone("availabilityZone")
.blockDeviceMappings(List.of(BlockDeviceMappingProperty.builder()
.deviceName("deviceName")
// the properties below are optional
.ebs(EbsProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice(NoDeviceProperty.builder().build())
.virtualName("virtualName")
.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(ElasticInferenceAcceleratorProperty.builder()
.type("type")
// the properties below are optional
.count(123)
.build()))
.enclaveOptions(EnclaveOptionsProperty.builder()
.enabled(false)
.build())
.hibernationOptions(HibernationOptionsProperty.builder()
.configured(false)
.build())
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.iamInstanceProfile("iamInstanceProfile")
.imageId("imageId")
.instanceInitiatedShutdownBehavior("instanceInitiatedShutdownBehavior")
.instanceType("instanceType")
.ipv6AddressCount(123)
.ipv6Addresses(List.of(InstanceIpv6AddressProperty.builder()
.ipv6Address("ipv6Address")
.build()))
.kernelId("kernelId")
.keyName("keyName")
.launchTemplate(LaunchTemplateSpecificationProperty.builder()
.version("version")
// the properties below are optional
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.build())
.licenseSpecifications(List.of(LicenseSpecificationProperty.builder()
.licenseConfigurationArn("licenseConfigurationArn")
.build()))
.monitoring(false)
.networkInterfaces(List.of(NetworkInterfaceProperty.builder()
.deviceIndex("deviceIndex")
// the properties below are optional
.associatePublicIpAddress(false)
.deleteOnTermination(false)
.description("description")
.groupSet(List.of("groupSet"))
.ipv6AddressCount(123)
.ipv6Addresses(List.of(InstanceIpv6AddressProperty.builder()
.ipv6Address("ipv6Address")
.build()))
.networkInterfaceId("networkInterfaceId")
.privateIpAddress("privateIpAddress")
.privateIpAddresses(List.of(PrivateIpAddressSpecificationProperty.builder()
.primary(false)
.privateIpAddress("privateIpAddress")
.build()))
.secondaryPrivateIpAddressCount(123)
.subnetId("subnetId")
.build()))
.placementGroupName("placementGroupName")
.privateIpAddress("privateIpAddress")
.ramdiskId("ramdiskId")
.securityGroupIds(List.of("securityGroupIds"))
.securityGroups(List.of("securityGroups"))
.sourceDestCheck(false)
.ssmAssociations(List.of(SsmAssociationProperty.builder()
.documentName("documentName")
// the properties below are optional
.associationParameters(List.of(AssociationParameterProperty.builder()
.key("key")
.value(List.of("value"))
.build()))
.build()))
.subnetId("subnetId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tenancy("tenancy")
.userData("userData")
.volumes(List.of(VolumeProperty.builder()
.device("device")
.volumeId("volumeId")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstanceProps.Builder
A builder for
CfnInstanceProps |
static class |
CfnInstanceProps.Jsii$Proxy
An implementation for
CfnInstanceProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstanceProps.Builder |
builder() |
default String |
getAdditionalInfo()
`AWS::EC2::Instance.AdditionalInfo`.
|
default String |
getAffinity()
`AWS::EC2::Instance.Affinity`.
|
default String |
getAvailabilityZone()
`AWS::EC2::Instance.AvailabilityZone`.
|
default Object |
getBlockDeviceMappings()
`AWS::EC2::Instance.BlockDeviceMappings`.
|
default Object |
getCpuOptions()
`AWS::EC2::Instance.CpuOptions`.
|
default Object |
getCreditSpecification()
`AWS::EC2::Instance.CreditSpecification`.
|
default Object |
getDisableApiTermination()
`AWS::EC2::Instance.DisableApiTermination`.
|
default Object |
getEbsOptimized()
`AWS::EC2::Instance.EbsOptimized`.
|
default Object |
getElasticGpuSpecifications()
`AWS::EC2::Instance.ElasticGpuSpecifications`.
|
default Object |
getElasticInferenceAccelerators()
`AWS::EC2::Instance.ElasticInferenceAccelerators`.
|
default Object |
getEnclaveOptions()
`AWS::EC2::Instance.EnclaveOptions`.
|
default Object |
getHibernationOptions()
`AWS::EC2::Instance.HibernationOptions`.
|
default String |
getHostId()
`AWS::EC2::Instance.HostId`.
|
default String |
getHostResourceGroupArn()
`AWS::EC2::Instance.HostResourceGroupArn`.
|
default String |
getIamInstanceProfile()
`AWS::EC2::Instance.IamInstanceProfile`.
|
default String |
getImageId()
`AWS::EC2::Instance.ImageId`.
|
default String |
getInstanceInitiatedShutdownBehavior()
`AWS::EC2::Instance.InstanceInitiatedShutdownBehavior`.
|
default String |
getInstanceType()
`AWS::EC2::Instance.InstanceType`.
|
default Number |
getIpv6AddressCount()
`AWS::EC2::Instance.Ipv6AddressCount`.
|
default Object |
getIpv6Addresses()
`AWS::EC2::Instance.Ipv6Addresses`.
|
default String |
getKernelId()
`AWS::EC2::Instance.KernelId`.
|
default String |
getKeyName()
`AWS::EC2::Instance.KeyName`.
|
default Object |
getLaunchTemplate()
`AWS::EC2::Instance.LaunchTemplate`.
|
default Object |
getLicenseSpecifications()
`AWS::EC2::Instance.LicenseSpecifications`.
|
default Object |
getMonitoring()
`AWS::EC2::Instance.Monitoring`.
|
default Object |
getNetworkInterfaces()
`AWS::EC2::Instance.NetworkInterfaces`.
|
default String |
getPlacementGroupName()
`AWS::EC2::Instance.PlacementGroupName`.
|
default String |
getPrivateIpAddress()
`AWS::EC2::Instance.PrivateIpAddress`.
|
default String |
getRamdiskId()
`AWS::EC2::Instance.RamdiskId`.
|
default List<String> |
getSecurityGroupIds()
`AWS::EC2::Instance.SecurityGroupIds`.
|
default List<String> |
getSecurityGroups()
`AWS::EC2::Instance.SecurityGroups`.
|
default Object |
getSourceDestCheck()
`AWS::EC2::Instance.SourceDestCheck`.
|
default Object |
getSsmAssociations()
`AWS::EC2::Instance.SsmAssociations`.
|
default String |
getSubnetId()
`AWS::EC2::Instance.SubnetId`.
|
default List<CfnTag> |
getTags()
`AWS::EC2::Instance.Tags`.
|
default String |
getTenancy()
`AWS::EC2::Instance.Tenancy`.
|
default String |
getUserData()
`AWS::EC2::Instance.UserData`.
|
default Object |
getVolumes()
`AWS::EC2::Instance.Volumes`.
|
@Stability(value=Stable) @Nullable default String getAdditionalInfo()
@Stability(value=Stable) @Nullable default String getAffinity()
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
@Stability(value=Stable) @Nullable default Object getBlockDeviceMappings()
@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 String getHostId()
@Stability(value=Stable) @Nullable default String getHostResourceGroupArn()
@Stability(value=Stable) @Nullable default String getIamInstanceProfile()
@Stability(value=Stable) @Nullable default String getImageId()
@Stability(value=Stable) @Nullable default String getInstanceInitiatedShutdownBehavior()
@Stability(value=Stable) @Nullable default String getInstanceType()
@Stability(value=Stable) @Nullable default Number getIpv6AddressCount()
@Stability(value=Stable) @Nullable default Object getIpv6Addresses()
@Stability(value=Stable) @Nullable default String getKernelId()
@Stability(value=Stable) @Nullable default String getKeyName()
@Stability(value=Stable) @Nullable default Object getLaunchTemplate()
@Stability(value=Stable) @Nullable default Object getLicenseSpecifications()
@Stability(value=Stable) @Nullable default Object getMonitoring()
@Stability(value=Stable) @Nullable default Object getNetworkInterfaces()
@Stability(value=Stable) @Nullable default String getPlacementGroupName()
@Stability(value=Stable) @Nullable default String getPrivateIpAddress()
@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 getSourceDestCheck()
@Stability(value=Stable) @Nullable default Object getSsmAssociations()
@Stability(value=Stable) @Nullable default String getSubnetId()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default String getTenancy()
@Stability(value=Stable) @Nullable default String getUserData()
@Stability(value=Stable) @Nullable default Object getVolumes()
@Stability(value=Stable) static CfnInstanceProps.Builder builder()
CfnInstanceProps.Builder of CfnInstancePropsCopyright © 2021. All rights reserved.