Class CfnInstance
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
If an Elastic IP address is attached to your instance, AWS CloudFormation reattaches the Elastic IP address after it updates the instance. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
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.*; CfnInstance cfnInstance = CfnInstance.Builder.create(this, "MyCfnInstance") .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 .associateCarrierIpAddress(false) .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") .privateDnsNameOptions(PrivateDnsNameOptionsProperty.builder() .enableResourceNameDnsAaaaRecord(false) .enableResourceNameDnsARecord(false) .hostnameType("hostnameType") .build()) .privateIpAddress("privateIpAddress") .propagateTagsToVolumeOnCreation(false) .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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Specifies input parameter values for an SSM document in AWS Systems Manager .static interface
Specifies a block device mapping for an instance.static final class
A fluent builder forCfnInstance
.static interface
Specifies the CPU options for the instance.static interface
Specifies the credit option for CPU usage of a T instance.static interface
Specifies a block device for an EBS volume.static interface
static interface
Specifies the Elastic Inference Accelerator for the instance.static interface
Indicates whether the instance is enabled for AWS Nitro Enclaves.static interface
Specifies the hibernation options for the instance.static interface
Specifies the IPv6 address for the instance.static interface
Specifies a launch template to use when launching an Amazon EC2 instance.static interface
Specifies the license configuration to use.static interface
Specifies a network interface that is to be attached to an instance.static interface
Example:static interface
The type of hostnames to assign to instances in the subnet at launch.static interface
Specifies a secondary private IPv4 address for a network interface.static interface
Specifies the SSM document and parameter values in AWS Systems Manager to associate with an instance.static interface
Describes the current state of an instance.static interface
Specifies a volume to attach to an instance.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnInstance
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnInstance
(software.amazon.jsii.JsiiObjectRef objRef) CfnInstance
(software.constructs.Construct scope, String id) CfnInstance
(software.constructs.Construct scope, String id, CfnInstanceProps props) -
Method Summary
Modifier and TypeMethodDescriptionThis property is reserved for internal use.Indicates whether the instance is associated with a dedicated host.The ID of the instance.The private DNS name of the specified instance.The private IP address of the specified instance.The public DNS name of the specified instance.The public IP address of the specified instance.The current state of the instance.The ID of the VPC in which the instance is running.The Availability Zone of the instance.The block device mapping entries that defines the block devices to attach to the instance at launch.The CPU options for the instance.The credit option for CPU usage of the burstable performance instance.Indicates whether termination protection is enabled for the instance.Indicates whether the instance is optimized for Amazon EBS I/O.An elastic GPU to associate with the instance.An elastic inference accelerator to associate with the instance.Indicates whether the instance is enabled for AWS Nitro Enclaves.Indicates whether an instance is enabled for hibernation.If you specify host for theAffinity
property, the ID of a dedicated host that the instance is associated with.The ARN of the host resource group in which to launch the instances.The name of an IAM instance profile.The ID of the AMI.Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).The instance type.The number of IPv6 addresses to associate with the primary network interface.The IPv6 addresses from the range of the subnet to associate with the primary network interface.The ID of the kernel.The name of the key pair.The launch template.The license configurations.Specifies whether detailed monitoring is enabled for the instance.The network interfaces to associate with the instance.The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).The options for the instance hostname.The primary IPv4 address.Indicates whether to assign the tags specified in theTags
property to the volumes specified in theBlockDeviceMappings
property.The ID of the RAM disk to select.The IDs of the security groups.[Default VPC] The names of the security groups.Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.The SSM document and parameter values in AWS Systems Manager to associate with this instance.The ID of the subnet to launch the instance into.getTags()
Tag Manager which manages the tags for this resource.The tags to add to the instance.The tenancy of the instance.The parameters or scripts to store as user data.The volumes to attach to the instance.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAdditionalInfo
(String value) This property is reserved for internal use.void
setAffinity
(String value) Indicates whether the instance is associated with a dedicated host.void
setAvailabilityZone
(String value) The Availability Zone of the instance.void
setBlockDeviceMappings
(List<Object> value) The block device mapping entries that defines the block devices to attach to the instance at launch.void
The block device mapping entries that defines the block devices to attach to the instance at launch.void
setCpuOptions
(IResolvable value) The CPU options for the instance.void
The CPU options for the instance.void
The credit option for CPU usage of the burstable performance instance.void
The credit option for CPU usage of the burstable performance instance.void
setDisableApiTermination
(Boolean value) Indicates whether termination protection is enabled for the instance.void
Indicates whether termination protection is enabled for the instance.void
setEbsOptimized
(Boolean value) Indicates whether the instance is optimized for Amazon EBS I/O.void
setEbsOptimized
(IResolvable value) Indicates whether the instance is optimized for Amazon EBS I/O.void
setElasticGpuSpecifications
(List<Object> value) An elastic GPU to associate with the instance.void
An elastic GPU to associate with the instance.void
An elastic inference accelerator to associate with the instance.void
An elastic inference accelerator to associate with the instance.void
setEnclaveOptions
(IResolvable value) Indicates whether the instance is enabled for AWS Nitro Enclaves.void
Indicates whether the instance is enabled for AWS Nitro Enclaves.void
setHibernationOptions
(IResolvable value) Indicates whether an instance is enabled for hibernation.void
Indicates whether an instance is enabled for hibernation.void
If you specify host for theAffinity
property, the ID of a dedicated host that the instance is associated with.void
setHostResourceGroupArn
(String value) The ARN of the host resource group in which to launch the instances.void
setIamInstanceProfile
(String value) The name of an IAM instance profile.void
setImageId
(String value) The ID of the AMI.void
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).void
setInstanceType
(String value) The instance type.void
setIpv6AddressCount
(Number value) The number of IPv6 addresses to associate with the primary network interface.void
setIpv6Addresses
(List<Object> value) The IPv6 addresses from the range of the subnet to associate with the primary network interface.void
setIpv6Addresses
(IResolvable value) The IPv6 addresses from the range of the subnet to associate with the primary network interface.void
setKernelId
(String value) The ID of the kernel.void
setKeyName
(String value) The name of the key pair.void
setLaunchTemplate
(IResolvable value) The launch template.void
The launch template.void
setLicenseSpecifications
(List<Object> value) The license configurations.void
The license configurations.void
setMonitoring
(Boolean value) Specifies whether detailed monitoring is enabled for the instance.void
setMonitoring
(IResolvable value) Specifies whether detailed monitoring is enabled for the instance.void
setNetworkInterfaces
(List<Object> value) The network interfaces to associate with the instance.void
setNetworkInterfaces
(IResolvable value) The network interfaces to associate with the instance.void
setPlacementGroupName
(String value) The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).void
The options for the instance hostname.void
The options for the instance hostname.void
setPrivateIpAddress
(String value) The primary IPv4 address.void
Indicates whether to assign the tags specified in theTags
property to the volumes specified in theBlockDeviceMappings
property.void
Indicates whether to assign the tags specified in theTags
property to the volumes specified in theBlockDeviceMappings
property.void
setRamdiskId
(String value) The ID of the RAM disk to select.void
setSecurityGroupIds
(List<String> value) The IDs of the security groups.void
setSecurityGroups
(List<String> value) [Default VPC] The names of the security groups.void
setSourceDestCheck
(Boolean value) Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.void
setSourceDestCheck
(IResolvable value) Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.void
setSsmAssociations
(List<Object> value) The SSM document and parameter values in AWS Systems Manager to associate with this instance.void
setSsmAssociations
(IResolvable value) The SSM document and parameter values in AWS Systems Manager to associate with this instance.void
setSubnetId
(String value) The ID of the subnet to launch the instance into.void
setTagsRaw
(List<CfnTag> value) The tags to add to the instance.void
setTenancy
(String value) The tenancy of the instance.void
setUserData
(String value) The parameters or scripts to store as user data.void
setVolumes
(List<Object> value) The volumes to attach to the instance.void
setVolumes
(IResolvable value) The volumes to attach to the instance.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnInstance
protected CfnInstance(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInstance
protected CfnInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInstance
@Stability(Stable) public CfnInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnInstanceProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties.
-
CfnInstance
@Stability(Stable) public CfnInstance(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrAvailabilityZone
-
getAttrInstanceId
The ID of the instance. -
getAttrPrivateDnsName
The private DNS name of the specified instance.For example:
ip-10-24-34-0.ec2.internal
. -
getAttrPrivateIp
The private IP address of the specified instance.For example:
10.24.34.0
. -
getAttrPublicDnsName
The public DNS name of the specified instance.For example:
ec2-107-20-50-45.compute-1.amazonaws.com
. -
getAttrPublicIp
The public IP address of the specified instance.For example:
192.0.2.0
. -
getAttrState
The current state of the instance. -
getAttrVpcId
The ID of the VPC in which the instance is running. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAdditionalInfo
This property is reserved for internal use. -
setAdditionalInfo
This property is reserved for internal use. -
getAffinity
Indicates whether the instance is associated with a dedicated host. -
setAffinity
Indicates whether the instance is associated with a dedicated host. -
getAvailabilityZone
The Availability Zone of the instance. -
setAvailabilityZone
The Availability Zone of the instance. -
getBlockDeviceMappings
The block device mapping entries that defines the block devices to attach to the instance at launch. -
setBlockDeviceMappings
The block device mapping entries that defines the block devices to attach to the instance at launch. -
setBlockDeviceMappings
The block device mapping entries that defines the block devices to attach to the instance at launch. -
getCpuOptions
The CPU options for the instance. -
setCpuOptions
The CPU options for the instance. -
setCpuOptions
The CPU options for the instance. -
getCreditSpecification
The credit option for CPU usage of the burstable performance instance. -
setCreditSpecification
The credit option for CPU usage of the burstable performance instance. -
setCreditSpecification
@Stability(Stable) public void setCreditSpecification(@Nullable CfnInstance.CreditSpecificationProperty value) The credit option for CPU usage of the burstable performance instance. -
getDisableApiTermination
Indicates whether termination protection is enabled for the instance. -
setDisableApiTermination
Indicates whether termination protection is enabled for the instance. -
setDisableApiTermination
Indicates whether termination protection is enabled for the instance. -
getEbsOptimized
Indicates whether the instance is optimized for Amazon EBS I/O. -
setEbsOptimized
Indicates whether the instance is optimized for Amazon EBS I/O. -
setEbsOptimized
Indicates whether the instance is optimized for Amazon EBS I/O. -
getElasticGpuSpecifications
An elastic GPU to associate with the instance. -
setElasticGpuSpecifications
An elastic GPU to associate with the instance. -
setElasticGpuSpecifications
An elastic GPU to associate with the instance. -
getElasticInferenceAccelerators
An elastic inference accelerator to associate with the instance. -
setElasticInferenceAccelerators
An elastic inference accelerator to associate with the instance. -
setElasticInferenceAccelerators
An elastic inference accelerator to associate with the instance. -
getEnclaveOptions
Indicates whether the instance is enabled for AWS Nitro Enclaves. -
setEnclaveOptions
Indicates whether the instance is enabled for AWS Nitro Enclaves. -
setEnclaveOptions
@Stability(Stable) public void setEnclaveOptions(@Nullable CfnInstance.EnclaveOptionsProperty value) Indicates whether the instance is enabled for AWS Nitro Enclaves. -
getHibernationOptions
Indicates whether an instance is enabled for hibernation. -
setHibernationOptions
Indicates whether an instance is enabled for hibernation. -
setHibernationOptions
@Stability(Stable) public void setHibernationOptions(@Nullable CfnInstance.HibernationOptionsProperty value) Indicates whether an instance is enabled for hibernation. -
getHostId
If you specify host for theAffinity
property, the ID of a dedicated host that the instance is associated with. -
setHostId
If you specify host for theAffinity
property, the ID of a dedicated host that the instance is associated with. -
getHostResourceGroupArn
The ARN of the host resource group in which to launch the instances. -
setHostResourceGroupArn
The ARN of the host resource group in which to launch the instances. -
getIamInstanceProfile
The name of an IAM instance profile. -
setIamInstanceProfile
The name of an IAM instance profile. -
getImageId
The ID of the AMI. -
setImageId
The ID of the AMI. -
getInstanceInitiatedShutdownBehavior
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -
setInstanceInitiatedShutdownBehavior
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). -
getInstanceType
The instance type.For more information, see Instance types in the Amazon EC2 User Guide .
-
setInstanceType
The instance type.For more information, see Instance types in the Amazon EC2 User Guide .
-
getIpv6AddressCount
The number of IPv6 addresses to associate with the primary network interface. -
setIpv6AddressCount
The number of IPv6 addresses to associate with the primary network interface. -
getIpv6Addresses
The IPv6 addresses from the range of the subnet to associate with the primary network interface. -
setIpv6Addresses
The IPv6 addresses from the range of the subnet to associate with the primary network interface. -
setIpv6Addresses
The IPv6 addresses from the range of the subnet to associate with the primary network interface. -
getKernelId
The ID of the kernel. -
setKernelId
The ID of the kernel. -
getKeyName
The name of the key pair.You can create a key pair using CreateKeyPair or ImportKeyPair .
-
setKeyName
The name of the key pair.You can create a key pair using CreateKeyPair or ImportKeyPair .
-
getLaunchTemplate
The launch template. -
setLaunchTemplate
The launch template. -
setLaunchTemplate
@Stability(Stable) public void setLaunchTemplate(@Nullable CfnInstance.LaunchTemplateSpecificationProperty value) The launch template. -
getLicenseSpecifications
The license configurations. -
setLicenseSpecifications
The license configurations. -
setLicenseSpecifications
The license configurations. -
getMonitoring
Specifies whether detailed monitoring is enabled for the instance. -
setMonitoring
Specifies whether detailed monitoring is enabled for the instance. -
setMonitoring
Specifies whether detailed monitoring is enabled for the instance. -
getNetworkInterfaces
The network interfaces to associate with the instance. -
setNetworkInterfaces
The network interfaces to associate with the instance. -
setNetworkInterfaces
The network interfaces to associate with the instance. -
getPlacementGroupName
The name of an existing placement group that you want to launch the instance into (cluster | partition | spread). -
setPlacementGroupName
The name of an existing placement group that you want to launch the instance into (cluster | partition | spread). -
getPrivateDnsNameOptions
The options for the instance hostname. -
setPrivateDnsNameOptions
The options for the instance hostname. -
setPrivateDnsNameOptions
@Stability(Stable) public void setPrivateDnsNameOptions(@Nullable CfnInstance.PrivateDnsNameOptionsProperty value) The options for the instance hostname. -
getPrivateIpAddress
The primary IPv4 address.You must specify a value from the IPv4 address range of the subnet.
-
setPrivateIpAddress
The primary IPv4 address.You must specify a value from the IPv4 address range of the subnet.
-
getPropagateTagsToVolumeOnCreation
Indicates whether to assign the tags specified in theTags
property to the volumes specified in theBlockDeviceMappings
property. -
setPropagateTagsToVolumeOnCreation
Indicates whether to assign the tags specified in theTags
property to the volumes specified in theBlockDeviceMappings
property. -
setPropagateTagsToVolumeOnCreation
Indicates whether to assign the tags specified in theTags
property to the volumes specified in theBlockDeviceMappings
property. -
getRamdiskId
The ID of the RAM disk to select. -
setRamdiskId
The ID of the RAM disk to select. -
getSecurityGroupIds
The IDs of the security groups. -
setSecurityGroupIds
The IDs of the security groups. -
getSecurityGroups
[Default VPC] The names of the security groups.For a nondefault VPC, you must use security group IDs instead.
-
setSecurityGroups
[Default VPC] The names of the security groups.For a nondefault VPC, you must use security group IDs instead.
-
getSourceDestCheck
Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. -
setSourceDestCheck
Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. -
setSourceDestCheck
Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. -
getSsmAssociations
The 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 . -
setSsmAssociations
The 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 . -
setSsmAssociations
The 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 . -
getSubnetId
The ID of the subnet to launch the instance into. -
setSubnetId
The ID of the subnet to launch the instance into. -
getTagsRaw
The tags to add to the instance. -
setTagsRaw
The tags to add to the instance. -
getTenancy
The tenancy of the instance. -
setTenancy
The tenancy of the instance. -
getUserData
The parameters or scripts to store as user data. -
setUserData
The parameters or scripts to store as user data. -
getVolumes
The volumes to attach to the instance. -
setVolumes
The volumes to attach to the instance. -
setVolumes
The volumes to attach to the instance.
-