Instance
¶
Source code in docs_src/capo_lightsail/types/instance.py
add_ons
instance-attribute
¶
add_ons: NotRequired[AddOnList]
An array of objects representing the add-ons enabled on the instance.
arn
instance-attribute
¶
arn: NotRequired[NonEmptyString]
The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
blueprint_id
instance-attribute
¶
blueprint_id: NotRequired[NonEmptyString]
The blueprint ID (amazon_linux_2023).
blueprint_name
instance-attribute
¶
blueprint_name: NotRequired[NonEmptyString]
The friendly name of the blueprint (Amazon Linux 2023).
bundle_id
instance-attribute
¶
bundle_id: NotRequired[NonEmptyString]
The bundle for the instance (micro_x_x).
created_at
instance-attribute
¶
created_at: NotRequired[IsoDate]
The timestamp when the instance was created (1479734909.17) in Unix time format.
hardware
instance-attribute
¶
hardware: NotRequired[InstanceHardware]
The size of the vCPU and the amount of RAM for the instance.
ip_address_type
instance-attribute
¶
ip_address_type: NotRequired[IpAddressType]
The IP address type of the instance.
The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.
ipv6_addresses
instance-attribute
¶
ipv6_addresses: NotRequired[Ipv6AddressList]
The IPv6 addresses of the instance.
is_static_ip
instance-attribute
¶
is_static_ip: NotRequired[boolean]
A Boolean value indicating whether this instance has a static IP assigned to it.
location
instance-attribute
¶
location: NotRequired[ResourceLocation]
The region name and Availability Zone where the instance is located.
metadata_options
instance-attribute
¶
metadata_options: NotRequired[InstanceMetadataOptions]
The metadata options for the Amazon Lightsail instance.
name
instance-attribute
¶
name: NotRequired[ResourceName]
The name the user gave the instance (Amazon_Linux_2023-1).
networking
instance-attribute
¶
networking: NotRequired[InstanceNetworking]
Information about the public ports and monthly data transfer rates for the instance.
private_ip_address
instance-attribute
¶
private_ip_address: NotRequired[IpAddress]
The private IP address of the instance.
public_ip_address
instance-attribute
¶
public_ip_address: NotRequired[IpAddress]
The public IP address of the instance.
resource_type
instance-attribute
¶
resource_type: NotRequired[ResourceType]
The type of resource (usually Instance).
ssh_key_name
instance-attribute
¶
ssh_key_name: NotRequired[ResourceName]
The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).
state
instance-attribute
¶
state: NotRequired[InstanceState]
The status code and the state (running) for the instance.
support_code
instance-attribute
¶
support_code: NotRequired[string]
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
tags
instance-attribute
¶
tags: NotRequired[TagList]
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
username
instance-attribute
¶
username: NotRequired[NonEmptyString]
The user name for connecting to the instance (ec2-user).