Class CfnInstanceProps.Jsii$Proxy
- All Implemented Interfaces:
CfnInstanceProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnInstanceProps
CfnInstanceProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnInstanceProps
CfnInstanceProps.Builder, CfnInstanceProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CfnInstanceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCfnInstanceProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringThis property is reserved for internal use.final StringIndicates whether the instance is associated with a dedicated host.final StringThe Availability Zone of the instance.final ObjectThe block device mapping entries that defines the block devices to attach to the instance at launch.final ObjectThe CPU options for the instance.final ObjectThe credit option for CPU usage of the burstable performance instance.final ObjectIndicates whether termination protection is enabled for the instance.final ObjectIndicates whether the instance is optimized for Amazon EBS I/O.final ObjectAn elastic GPU to associate with the instance.final ObjectAn elastic inference accelerator to associate with the instance.final ObjectIndicates whether the instance is enabled for AWS Nitro Enclaves.final ObjectIndicates whether an instance is enabled for hibernation.final ObjectIf you specify host for theAffinityproperty, the ID of a dedicated host that the instance is associated with.final StringThe ARN of the host resource group in which to launch the instances.final ObjectThe name of an IAM instance profile.final StringThe ID of the AMI.final StringIndicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).final StringThe instance type.final NumberThe number of IPv6 addresses to associate with the primary network interface.final ObjectThe IPv6 addresses from the range of the subnet to associate with the primary network interface.final StringThe ID of the kernel.final StringThe name of the key pair.final ObjectThe launch template.final ObjectThe license configurations.final ObjectThe metadata options for the instance.final ObjectSpecifies whether detailed monitoring is enabled for the instance.final ObjectThe network interfaces to associate with the instance.final ObjectThe name of an existing placement group that you want to launch the instance into (cluster | partition | spread).final ObjectThe options for the instance hostname.final StringThe primary IPv4 address.final ObjectIndicates whether to assign the tags specified in theTagsproperty to the volumes specified in theBlockDeviceMappingsproperty.final StringThe ID of the RAM disk to select.The IDs of the security groups.[Default VPC] The names of the security groups.final ObjectEnable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.final ObjectThe SSM document and parameter values in AWS Systems Manager to associate with this instance.final ObjectThe ID of the subnet to launch the instance into.getTags()The tags to add to the instance.final StringThe tenancy of the instance.final StringThe parameters or scripts to store as user data.final ObjectThe volumes to attach to the instance.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnInstanceProps.Builder.
-
-
Method Details
-
getAdditionalInfo
Description copied from interface:CfnInstancePropsThis property is reserved for internal use.If you use it, the stack fails with this error:
Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).- Specified by:
getAdditionalInfoin interfaceCfnInstanceProps- See Also:
-
getAffinity
Description copied from interface:CfnInstancePropsIndicates whether the instance is associated with a dedicated host.If you want the instance to always restart on the same host on which it was launched, specify
host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specifydefault.- Specified by:
getAffinityin interfaceCfnInstanceProps- See Also:
-
getAvailabilityZone
Description copied from interface:CfnInstancePropsThe Availability Zone of the instance.If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported by DescribeImageAttribute .
- Specified by:
getAvailabilityZonein interfaceCfnInstanceProps- See Also:
-
getBlockDeviceMappings
Description copied from interface:CfnInstancePropsThe block device mapping entries that defines the block devices to attach to the instance at launch.By default, the block devices specified in the block device mapping for the AMI are used. You can override the AMI block device mapping using the instance block device mapping. For the root volume, you can override only the volume size, volume type, volume encryption settings, and the
DeleteOnTerminationsetting.After the instance is running, you can modify only the
DeleteOnTerminationparameter for the attached volumes without interrupting the instance. Modifying any other parameter results in instance replacement .Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.BlockDeviceMappingProperty>- Specified by:
getBlockDeviceMappingsin interfaceCfnInstanceProps- See Also:
-
getCpuOptions
Description copied from interface:CfnInstancePropsThe CPU options for the instance.For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide .
Returns union: either
IResolvableorCfnInstance.CpuOptionsProperty- Specified by:
getCpuOptionsin interfaceCfnInstanceProps- See Also:
-
getCreditSpecification
Description copied from interface:CfnInstancePropsThe credit option for CPU usage of the burstable performance instance.Valid values are
standardandunlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification . For more information, see Burstable performance instances in the Amazon EC2 User Guide .Default:
standard(T2 instances) orunlimited(T3/T3a/T4g instances)For T3 instances with
hosttenancy, onlystandardis supported.Returns union: either
IResolvableorCfnInstance.CreditSpecificationProperty- Specified by:
getCreditSpecificationin interfaceCfnInstanceProps- See Also:
-
getDisableApiTermination
Description copied from interface:CfnInstancePropsIndicates whether termination protection is enabled for the instance.The default is
false, which means that you can terminate the instance using the Amazon EC2 console, command line tools, or API. You can enable termination protection when you launch an instance, while the instance is running, or while the instance is stopped.Returns union: either
BooleanorIResolvable- Specified by:
getDisableApiTerminationin interfaceCfnInstanceProps- See Also:
-
getEbsOptimized
Description copied from interface:CfnInstancePropsIndicates whether the instance is optimized for Amazon EBS I/O.This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default:
falseReturns union: either
BooleanorIResolvable- Specified by:
getEbsOptimizedin interfaceCfnInstanceProps- See Also:
-
getElasticGpuSpecifications
Description copied from interface:CfnInstancePropsAn elastic GPU to associate with the instance.Amazon Elastic Graphics reached end of life on January 8, 2024.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.ElasticGpuSpecificationProperty>- Specified by:
getElasticGpuSpecificationsin interfaceCfnInstanceProps- See Also:
-
getElasticInferenceAccelerators
Description copied from interface:CfnInstancePropsAn elastic inference accelerator to associate with the instance.Amazon Elastic Inference is no longer available.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.ElasticInferenceAcceleratorProperty>- Specified by:
getElasticInferenceAcceleratorsin interfaceCfnInstanceProps- See Also:
-
getEnclaveOptions
Description copied from interface:CfnInstancePropsIndicates whether the instance is enabled for AWS Nitro Enclaves.Returns union: either
IResolvableorCfnInstance.EnclaveOptionsProperty- Specified by:
getEnclaveOptionsin interfaceCfnInstanceProps- See Also:
-
getHibernationOptions
Description copied from interface:CfnInstancePropsIndicates whether an instance is enabled for hibernation.This parameter is valid only if the instance meets the hibernation prerequisites . For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide .
You can't enable hibernation and AWS Nitro Enclaves on the same instance.
Returns union: either
IResolvableorCfnInstance.HibernationOptionsProperty- Specified by:
getHibernationOptionsin interfaceCfnInstanceProps- See Also:
-
getHostId
Description copied from interface:CfnInstancePropsIf you specify host for theAffinityproperty, the ID of a dedicated host that the instance is associated with.If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account. This type of launch is called an untargeted launch. Note that for untargeted launches, you must have a compatible, dedicated host available to successfully launch instances.
- Specified by:
getHostIdin interfaceCfnInstanceProps- See Also:
-
getHostResourceGroupArn
Description copied from interface:CfnInstancePropsThe ARN of the host resource group in which to launch the instances.If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host.- Specified by:
getHostResourceGroupArnin interfaceCfnInstanceProps- See Also:
-
getIamInstanceProfile
Description copied from interface:CfnInstancePropsThe name of an IAM instance profile.To create a new IAM instance profile, use the AWS::IAM::InstanceProfile resource.
Returns union: either
StringorIInstanceProfileRef- Specified by:
getIamInstanceProfilein interfaceCfnInstanceProps- See Also:
-
getImageId
Description copied from interface:CfnInstancePropsThe ID of the AMI.An AMI ID is required to launch an instance and must be specified here or in a launch template.
- Specified by:
getImageIdin interfaceCfnInstanceProps- See Also:
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:CfnInstancePropsIndicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).Default:
stop- Specified by:
getInstanceInitiatedShutdownBehaviorin interfaceCfnInstanceProps- See Also:
-
getInstanceType
Description copied from interface:CfnInstancePropsThe instance type. For more information, see Instance types in the Amazon EC2 User Guide .When you change your EBS-backed instance type, instance restart or replacement behavior depends on the instance type compatibility between the old and new types. An instance with an instance store volume as the root volume is always replaced. For more information, see Change the instance type in the Amazon EC2 User Guide .
- Specified by:
getInstanceTypein interfaceCfnInstanceProps- See Also:
-
getIpv6AddressCount
Description copied from interface:CfnInstancePropsThe number of IPv6 addresses to associate with the primary network interface.Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
You cannot specify this option and the network interfaces option in the same request.
- Specified by:
getIpv6AddressCountin interfaceCfnInstanceProps- See Also:
-
getIpv6Addresses
Description copied from interface:CfnInstancePropsThe IPv6 addresses from the range of the subnet to associate with the primary network interface.You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
You cannot specify this option and the network interfaces option in the same request.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.InstanceIpv6AddressProperty>- Specified by:
getIpv6Addressesin interfaceCfnInstanceProps- See Also:
-
getKernelId
Description copied from interface:CfnInstancePropsThe ID of the kernel.We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide .
- Specified by:
getKernelIdin interfaceCfnInstanceProps- See Also:
-
getKeyName
Description copied from interface:CfnInstancePropsThe name of the key pair. For more information, see Create a key pair for your EC2 instance .If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- Specified by:
getKeyNamein interfaceCfnInstanceProps- See Also:
-
getLaunchTemplate
Description copied from interface:CfnInstancePropsThe launch template.Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template.
Returns union: either
IResolvableorCfnInstance.LaunchTemplateSpecificationProperty- Specified by:
getLaunchTemplatein interfaceCfnInstanceProps- See Also:
-
getLicenseSpecifications
Description copied from interface:CfnInstancePropsThe license configurations.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.LicenseSpecificationProperty>- Specified by:
getLicenseSpecificationsin interfaceCfnInstanceProps- See Also:
-
getMetadataOptions
Description copied from interface:CfnInstancePropsThe metadata options for the instance.Returns union: either
IResolvableorCfnInstance.MetadataOptionsProperty- Specified by:
getMetadataOptionsin interfaceCfnInstanceProps- See Also:
-
getMonitoring
Description copied from interface:CfnInstancePropsSpecifies whether detailed monitoring is enabled for the instance.Specify
trueto enable detailed monitoring. Otherwise, basic monitoring is enabled. For more information about detailed monitoring, see Enable or turn off detailed monitoring for your instances in the Amazon EC2 User Guide .Returns union: either
BooleanorIResolvable- Specified by:
getMonitoringin interfaceCfnInstanceProps- See Also:
-
getNetworkInterfaces
Description copied from interface:CfnInstancePropsThe network interfaces to associate with the instance.If you use this property to point to a network interface, you must terminate the original interface before attaching a new one to allow the update of the instance to succeed.
If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn Attribute to declare a dependency on the VPC-gateway attachment.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.NetworkInterfaceProperty>- Specified by:
getNetworkInterfacesin interfaceCfnInstanceProps- See Also:
-
getPlacementGroupName
Description copied from interface:CfnInstancePropsThe name of an existing placement group that you want to launch the instance into (cluster | partition | spread).Returns union: either
StringorIPlacementGroupRef- Specified by:
getPlacementGroupNamein interfaceCfnInstanceProps- See Also:
-
getPrivateDnsNameOptions
Description copied from interface:CfnInstancePropsThe options for the instance hostname.Returns union: either
IResolvableorCfnInstance.PrivateDnsNameOptionsProperty- Specified by:
getPrivateDnsNameOptionsin interfaceCfnInstanceProps- See Also:
-
getPrivateIpAddress
Description copied from interface:CfnInstancePropsThe primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
If you make an update to an instance that requires replacement, you must assign a new private IP address. During a replacement, AWS CloudFormation creates a new instance but doesn't delete the old instance until the stack has successfully updated. If the stack update fails, AWS CloudFormation uses the old instance to roll back the stack to the previous working state. The old and new instances cannot have the same private IP address.
- Specified by:
getPrivateIpAddressin interfaceCfnInstanceProps- See Also:
-
getPropagateTagsToVolumeOnCreation
Description copied from interface:CfnInstancePropsIndicates whether to assign the tags specified in theTagsproperty to the volumes specified in theBlockDeviceMappingsproperty.Note that using this feature does not assign the tags to volumes that are created separately and then attached using
AWS::EC2::VolumeAttachment.Returns union: either
BooleanorIResolvable- Specified by:
getPropagateTagsToVolumeOnCreationin interfaceCfnInstanceProps- See Also:
-
getRamdiskId
Description copied from interface:CfnInstancePropsThe ID of the RAM disk to select.Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go to the AWS Resource Center and search for the kernel ID.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide .
- Specified by:
getRamdiskIdin interfaceCfnInstanceProps- See Also:
-
getSecurityGroupIds
Description copied from interface:CfnInstancePropsThe IDs of the security groups.You can specify the IDs of existing security groups and references to resources created by the stack template.
If you specify a network interface, you must specify any security groups as part of the network interface.
Returns union: Listinvalid input: '<'either
StringorISecurityGroupRef>- Specified by:
getSecurityGroupIdsin interfaceCfnInstanceProps- See Also:
-
getSecurityGroups
Description copied from interface:CfnInstanceProps[Default VPC] The names of the security groups. For a nondefault VPC, you must use security group IDs instead.You cannot specify this option and the network interfaces option in the same request. The list can contain both the name of existing Amazon EC2 security groups or references to AWS::EC2::SecurityGroup resources created in the template.
Default: Amazon EC2 uses the default security group.
- Specified by:
getSecurityGroupsin interfaceCfnInstanceProps- See Also:
-
getSourceDestCheck
Description copied from interface:CfnInstancePropsEnable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.If the value is
true, source/destination checks are enabled; otherwise, they are disabled. The default value istrue. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.Returns union: either
BooleanorIResolvable- Specified by:
getSourceDestCheckin interfaceCfnInstanceProps- See Also:
-
getSsmAssociations
Description copied from interface:CfnInstancePropsThe SSM document and parameter values in AWS Systems Manager to associate with this instance. To use this property, you must specify an IAM instance profile role for the instance. For more information, see Create an IAM instance profile for Systems Manager in the AWS Systems Manager User Guide .You can associate only one document with an instance.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.SsmAssociationProperty>- Specified by:
getSsmAssociationsin interfaceCfnInstanceProps- See Also:
-
getSubnetId
Description copied from interface:CfnInstancePropsThe ID of the subnet to launch the instance into.If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
Returns union: either
StringorISubnetRef- Specified by:
getSubnetIdin interfaceCfnInstanceProps- See Also:
-
getTags
Description copied from interface:CfnInstancePropsThe tags to add to the instance.These tags are not applied to the EBS volumes, such as the root volume, unless PropagateTagsToVolumeOnCreation is
true.- Specified by:
getTagsin interfaceCfnInstanceProps- See Also:
-
getTenancy
Description copied from interface:CfnInstancePropsThe tenancy of the instance.An instance with a tenancy of
dedicatedruns on single-tenant hardware.- Specified by:
getTenancyin interfaceCfnInstanceProps- See Also:
-
getUserData
Description copied from interface:CfnInstancePropsThe parameters or scripts to store as user data.Any scripts in user data are run when you launch the instance. User data is limited to 16 KB. You must provide base64-encoded text. For more information, see Fn::Base64 .
If the root volume is an EBS volume and you update user data, CloudFormation restarts the instance. If the root volume is an instance store volume and you update user data, the instance is replaced.
- Specified by:
getUserDatain interfaceCfnInstanceProps- See Also:
-
getVolumes
Description copied from interface:CfnInstancePropsThe volumes to attach to the instance.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.VolumeProperty>- Specified by:
getVolumesin interfaceCfnInstanceProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-