You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Lightsail::Types::InstanceState

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

Overview

Describes the virtual private server (or instance) status.

Instance Attribute Summary collapse

Instance Attribute Details

#codeInteger

The status code for the instance.

Returns:

  • (Integer)


2279
2280
2281
2282
2283
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2279

class InstanceState < Struct.new(
  :code,
  :name)
  include Aws::Structure
end

#nameString

The state of the instance (e.g., running or pending).

Returns:

  • (String)


2279
2280
2281
2282
2283
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2279

class InstanceState < Struct.new(
  :code,
  :name)
  include Aws::Structure
end