GetInstanceResult constructor

const GetInstanceResult({
  1. String? ami,
  2. String? arn,
  3. bool? associatePublicIpAddress,
  4. String? availabilityZone,
  5. List<GetInstanceCreditSpecification>? creditSpecifications,
  6. bool? disableApiStop,
  7. bool? disableApiTermination,
  8. List<GetInstanceEbsBlockDevice>? ebsBlockDevices,
  9. bool? ebsOptimized,
  10. List<GetInstanceEnclaveOption>? enclaveOptions,
  11. List<GetInstanceEphemeralBlockDevice>? ephemeralBlockDevices,
  12. List<GetInstanceFilter>? filters,
  13. bool? getPasswordData,
  14. bool? getUserData,
  15. String? hostId,
  16. String? hostResourceGroupArn,
  17. String? iamInstanceProfile,
  18. String? id,
  19. String? instanceId,
  20. String? instanceState,
  21. Map<String, String>? instanceTags,
  22. String? instanceType,
  23. List<String>? ipv6Addresses,
  24. String? keyName,
  25. String? launchTime,
  26. List<GetInstanceMaintenanceOption>? maintenanceOptions,
  27. List<GetInstanceMetadataOption>? metadataOptions,
  28. bool? monitoring,
  29. String? networkInterfaceId,
  30. String? outpostArn,
  31. String? passwordData,
  32. String? placementGroup,
  33. String? placementGroupId,
  34. int? placementPartitionNumber,
  35. String? privateDns,
  36. List<GetInstancePrivateDnsNameOption>? privateDnsNameOptions,
  37. String? privateIp,
  38. String? publicDns,
  39. String? publicIp,
  40. String? region,
  41. List<GetInstanceRootBlockDevice>? rootBlockDevices,
  42. List<String>? secondaryPrivateIps,
  43. List<String>? securityGroups,
  44. bool? sourceDestCheck,
  45. String? subnetId,
  46. Map<String, String>? tags,
  47. String? tenancy,
  48. String? userData,
  49. String? userDataBase64,
  50. List<String>? vpcSecurityGroupIds,
})

Creates a new GetInstanceResult. ami ID of the AMI used to launch the instance. arn ARN of the instance. associatePublicIpAddress Whether or not the Instance is associated with a public IP address or not (Boolean). availabilityZone Availability zone of the Instance. creditSpecifications Credit specification of the Instance. disableApiStop Whether or not EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) is enabled (Boolean). disableApiTermination Whether or not EC2 Instance Termination Protection is enabled (Boolean). ebsBlockDevices EBS block device mappings of the Instance. ebsOptimized Whether the Instance is EBS optimized or not (Boolean). enclaveOptions Enclave options of the instance. ephemeralBlockDevices Ephemeral block device mappings of the Instance. filters Optional. getPasswordData Optional. getUserData Optional. hostId ID of the dedicated host the instance will be assigned to. hostResourceGroupArn ARN of the host resource group the instance is associated with. iamInstanceProfile Name of the instance profile associated with the Instance. id The provider-assigned unique ID for this managed resource. instanceId Optional. instanceState State of the instance. One of: pending, running, shutting-down, terminated, stopping, stopped. See Instance Lifecycle for more information. instanceTags Optional. instanceType Type of the Instance. ipv6Addresses 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. keyName Key name of the Instance. launchTime Time the instance was launched. maintenanceOptions Maintenance and recovery options for the instance. metadataOptions Metadata options of the Instance. monitoring Whether detailed monitoring is enabled or disabled for the Instance (Boolean). networkInterfaceId ID of the network interface that was created with the Instance. outpostArn ARN of the Outpost. passwordData 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 getPasswordData is true. See GetPasswordData for more information. placementGroup Placement group of the Instance. placementGroupId Placement group ID of the Instance. placementPartitionNumber Number of the partition the instance is in. privateDns 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. privateDnsNameOptions Options for the instance hostname. privateIp Private IP address assigned to the Instance. publicDns Public DNS name assigned to the Instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC. publicIp 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 publicIp, as this field will change after the EIP is attached. region Optional. rootBlockDevices Root block device mappings of the Instance secondaryPrivateIps Secondary private IPv4 addresses assigned to the instance's primary network interface (eth0) in a VPC. securityGroups Associated security groups. sourceDestCheck Whether the network interface performs source/destination checking (Boolean). subnetId VPC subnet ID. tags Map of tags assigned to the Instance. tenancy Tenancy of the instance: dedicated, default, host. userData SHA-1 hash of User Data supplied to the Instance. userDataBase64 Base64 encoded contents of User Data supplied to the Instance. This attribute is only exported if getUserData is true. vpcSecurityGroupIds Associated security groups in a non-default VPC.

Implementation

const GetInstanceResult({
  this.ami,
  this.arn,
  this.associatePublicIpAddress,
  this.availabilityZone,
  this.creditSpecifications,
  this.disableApiStop,
  this.disableApiTermination,
  this.ebsBlockDevices,
  this.ebsOptimized,
  this.enclaveOptions,
  this.ephemeralBlockDevices,
  this.filters,
  this.getPasswordData,
  this.getUserData,
  this.hostId,
  this.hostResourceGroupArn,
  this.iamInstanceProfile,
  this.id,
  this.instanceId,
  this.instanceState,
  this.instanceTags,
  this.instanceType,
  this.ipv6Addresses,
  this.keyName,
  this.launchTime,
  this.maintenanceOptions,
  this.metadataOptions,
  this.monitoring,
  this.networkInterfaceId,
  this.outpostArn,
  this.passwordData,
  this.placementGroup,
  this.placementGroupId,
  this.placementPartitionNumber,
  this.privateDns,
  this.privateDnsNameOptions,
  this.privateIp,
  this.publicDns,
  this.publicIp,
  this.region,
  this.rootBlockDevices,
  this.secondaryPrivateIps,
  this.securityGroups,
  this.sourceDestCheck,
  this.subnetId,
  this.tags,
  this.tenancy,
  this.userData,
  this.userDataBase64,
  this.vpcSecurityGroupIds,
});