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

Class: Aws::Lightsail::Types::AttachInstancesToLoadBalancerRequest

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

Overview

Note:

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

{
  load_balancer_name: "ResourceName", # required
  instance_names: ["ResourceName"], # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#instance_namesArray<String>

An array of strings representing the instance name(s) you want to attach to your load balancer.

Returns:

  • (Array<String>)


102
103
104
105
106
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 102

class AttachInstancesToLoadBalancerRequest < Struct.new(
  :load_balancer_name,
  :instance_names)
  include Aws::Structure
end

#load_balancer_nameString

The name of the load balancer.

Returns:

  • (String)


102
103
104
105
106
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 102

class AttachInstancesToLoadBalancerRequest < Struct.new(
  :load_balancer_name,
  :instance_names)
  include Aws::Structure
end