Class: Aws::Lightsail::Types::Instance

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb

Overview

Describes an instance (a virtual private server).

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#add_ons ⇒ Array<Types::AddOn>

An array of objects representing the add-ons enabled on the instance.

Returns:



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#arn ⇒ String

The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#blueprint_id ⇒ String

The blueprint ID (amazon_linux_2023).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#blueprint_name ⇒ String

The friendly name of the blueprint (Amazon Linux 2023).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#bundle_id ⇒ String

The bundle for the instance (micro_x_x).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#created_at ⇒ Time

The timestamp when the instance was created (1479734909.17) in Unix time format.

Returns:

  • (Time)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#hardware ⇒ Types::InstanceHardware

The size of the vCPU and the amount of RAM for the instance.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#instance_status ⇒ Types::InstanceHealthStatus

Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

This value is returned only when you set includeHealthStatus to true in your request.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#ip_address_type ⇒ String

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.

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#ipv6_addresses ⇒ Array<String>

The IPv6 addresses of the instance.

Returns:

  • (Array<String>)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#is_static_ip ⇒ Boolean

A Boolean value indicating whether this instance has a static IP assigned to it.

Returns:

  • (Boolean)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#location ⇒ Types::ResourceLocation

The region name and Availability Zone where the instance is located.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#metadata_options ⇒ Types::InstanceMetadataOptions

The metadata options for the Amazon Lightsail instance.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

The name the user gave the instance (Amazon_Linux_2023-1).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#networking ⇒ Types::InstanceNetworking

Information about the public ports and monthly data transfer rates for the instance.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#private_ip_address ⇒ String

The private IP address of the instance.

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#public_ip_address ⇒ String

The public IP address of the instance.

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#resource_type ⇒ String

The type of resource (usually Instance).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#ssh_key_name ⇒ String

The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#state ⇒ Types::InstanceState

The status code and the state (running) for the instance.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#support_code ⇒ 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.

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#system_status ⇒ Types::InstanceHealthStatus

Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

This value is returned only when you set includeHealthStatus to true in your request.



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#tags ⇒ Array<Types::Tag>

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

Returns:



10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end

#username ⇒ String

The user name for connecting to the instance (ec2-user).

Returns:

  • (String)


10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 10388

class Instance < Struct.new(
  :name,
  :arn,
  :support_code,
  :created_at,
  :location,
  :resource_type,
  :tags,
  :blueprint_id,
  :blueprint_name,
  :bundle_id,
  :add_ons,
  :is_static_ip,
  :private_ip_address,
  :public_ip_address,
  :ipv6_addresses,
  :ip_address_type,
  :hardware,
  :networking,
  :state,
  :username,
  :ssh_key_name,
  :metadata_options,
  :instance_status,
  :system_status)
  SENSITIVE = []
  include Aws::Structure
end