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

Class: Aws::OpsWorks::Types::AssignInstanceRequest

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

Overview

Note:

When making an API call, you may pass AssignInstanceRequest data as a hash:

{
  instance_id: "String", # required
  layer_ids: ["String"], # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#instance_idString

The instance ID.

Returns:

  • (String)


144
145
146
147
148
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 144

class AssignInstanceRequest < Struct.new(
  :instance_id,
  :layer_ids)
  include Aws::Structure
end

#layer_idsArray<String>

The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.

Returns:

  • (Array<String>)


144
145
146
147
148
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 144

class AssignInstanceRequest < Struct.new(
  :instance_id,
  :layer_ids)
  include Aws::Structure
end