GetInstanceResult

data class GetInstanceResult(val ami: String, val arn: String, val associatePublicIpAddress: Boolean, val availabilityZone: String, val creditSpecifications: List<GetInstanceCreditSpecification>, val disableApiStop: Boolean, val disableApiTermination: Boolean, val ebsBlockDevices: List<GetInstanceEbsBlockDevice>, val ebsOptimized: Boolean, val enclaveOptions: List<GetInstanceEnclaveOption>, val ephemeralBlockDevices: List<GetInstanceEphemeralBlockDevice>, val filters: List<GetInstanceFilter>? = null, val getPasswordData: Boolean? = null, val getUserData: Boolean? = null, val hostId: String, val hostResourceGroupArn: String, val iamInstanceProfile: String, val id: String, val instanceId: String? = null, val instanceState: String, val instanceTags: Map<String, String>, val instanceType: String, val ipv6Addresses: List<String>, val keyName: String, val maintenanceOptions: List<GetInstanceMaintenanceOption>, val metadataOptions: List<GetInstanceMetadataOption>, val monitoring: Boolean, val networkInterfaceId: String, val outpostArn: String, val passwordData: String, val placementGroup: String, val placementPartitionNumber: Int, val privateDns: String, val privateDnsNameOptions: List<GetInstancePrivateDnsNameOption>, val privateIp: String, val publicDns: String, val publicIp: String, val rootBlockDevices: List<GetInstanceRootBlockDevice>, val secondaryPrivateIps: List<String>, val securityGroups: List<String>, val sourceDestCheck: Boolean, val subnetId: String, val tags: Map<String, String>, val tenancy: String, val userData: String, val userDataBase64: String, val vpcSecurityGroupIds: List<String>)

A collection of values returned by getInstance.

Constructors

Link copied to clipboard
constructor(ami: String, arn: String, associatePublicIpAddress: Boolean, availabilityZone: String, creditSpecifications: List<GetInstanceCreditSpecification>, disableApiStop: Boolean, disableApiTermination: Boolean, ebsBlockDevices: List<GetInstanceEbsBlockDevice>, ebsOptimized: Boolean, enclaveOptions: List<GetInstanceEnclaveOption>, ephemeralBlockDevices: List<GetInstanceEphemeralBlockDevice>, filters: List<GetInstanceFilter>? = null, getPasswordData: Boolean? = null, getUserData: Boolean? = null, hostId: String, hostResourceGroupArn: String, iamInstanceProfile: String, id: String, instanceId: String? = null, instanceState: String, instanceTags: Map<String, String>, instanceType: String, ipv6Addresses: List<String>, keyName: String, maintenanceOptions: List<GetInstanceMaintenanceOption>, metadataOptions: List<GetInstanceMetadataOption>, monitoring: Boolean, networkInterfaceId: String, outpostArn: String, passwordData: String, placementGroup: String, placementPartitionNumber: Int, privateDns: String, privateDnsNameOptions: List<GetInstancePrivateDnsNameOption>, privateIp: String, publicDns: String, publicIp: String, rootBlockDevices: List<GetInstanceRootBlockDevice>, secondaryPrivateIps: List<String>, securityGroups: List<String>, sourceDestCheck: Boolean, subnetId: String, tags: Map<String, String>, tenancy: String, userData: String, userDataBase64: String, vpcSecurityGroupIds: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val ami: String

ID of the AMI used to launch the instance.

Link copied to clipboard
val arn: String

ARN of the instance.

Link copied to clipboard

Whether or not the Instance is associated with a public IP address or not (Boolean).

Link copied to clipboard

Availability zone of the Instance.

Link copied to clipboard

Credit specification of the Instance.

Link copied to clipboard

Whether or not EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) is enabled (Boolean).

Link copied to clipboard

Whether or not EC2 Instance Termination Protection is enabled (Boolean).

Link copied to clipboard

EBS block device mappings of the Instance.

Link copied to clipboard

Whether the Instance is EBS optimized or not (Boolean).

Link copied to clipboard

Enclave options of the instance.

Link copied to clipboard

Ephemeral block device mappings of the Instance.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val getUserData: Boolean? = null
Link copied to clipboard

ID of the dedicated host the instance will be assigned to.

Link copied to clipboard

ARN of the host resource group the instance is associated with.

Link copied to clipboard

Name of the instance profile associated with the Instance.

Link copied to clipboard
val id: String

The provider-assigned unique ID for this managed resource.

Link copied to clipboard
val instanceId: String? = null
Link copied to clipboard

State of the instance. One of: pending, running, shutting-down, terminated, stopping, stopped. See Instance Lifecycle for more information.

Link copied to clipboard
Link copied to clipboard

Type of the Instance.

Link copied to clipboard

IPv6 addresses associated to the Instance, if applicable. NOTE: Unlike the IPv4 address, this doesn't change if you attach an EIP to the instance.

Link copied to clipboard

Key name of the Instance.

Link copied to clipboard

Maintenance and recovery options for the instance.

Link copied to clipboard

Metadata options of the Instance.

Link copied to clipboard

Whether detailed monitoring is enabled or disabled for the Instance (Boolean).

Link copied to clipboard

ID of the network interface that was created with the Instance.

Link copied to clipboard

ARN of the Outpost.

Link copied to clipboard

Base-64 encoded encrypted password data for the instance. Useful for getting the administrator password for instances running Microsoft Windows. This attribute is only exported if get_password_data is true. See GetPasswordData for more information.

Link copied to clipboard

Placement group of the Instance.

Link copied to clipboard

Number of the partition the instance is in.

Link copied to clipboard

Private DNS name assigned to the Instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC.

Link copied to clipboard

Options for the instance hostname.

Link copied to clipboard

Private IP address assigned to the Instance.

Link copied to clipboard

Public DNS name assigned to the Instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC.

Link copied to clipboard

Public IP address assigned to the Instance, if applicable. NOTE: If you are using an aws.ec2.Eip with your instance, you should refer to the EIP's address directly and not use public_ip, as this field will change after the EIP is attached.

Link copied to clipboard

Root block device mappings of the Instance

Link copied to clipboard

Secondary private IPv4 addresses assigned to the instance's primary network interface (eth0) in a VPC.

Link copied to clipboard

Associated security groups.

Link copied to clipboard

Whether the network interface performs source/destination checking (Boolean).

Link copied to clipboard

VPC subnet ID.

Link copied to clipboard

Map of tags assigned to the Instance.

Link copied to clipboard

Tenancy of the instance: dedicated, default, host.

Link copied to clipboard

SHA-1 hash of User Data supplied to the Instance.

Link copied to clipboard

Base64 encoded contents of User Data supplied to the Instance. This attribute is only exported if get_user_data is true.

Link copied to clipboard

Associated security groups in a non-default VPC.