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

Class: Aws::ElasticLoadBalancingV2::Types::SetSubnetsInput

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SetSubnetsInput as input to an Aws::Client method, you can use a vanilla Hash:

{
  load_balancer_arn: "LoadBalancerArn", # required
  subnets: ["SubnetId"], # required
  subnet_mappings: [
    {
      subnet_id: "SubnetId",
      allocation_id: "AllocationId",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#load_balancer_arnString

The Amazon Resource Name (ARN) of the load balancer.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the load balancer.

#subnet_mappingsArray<Types::SubnetMapping>

The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

The load balancer is allocated one static IP address per subnet. You cannot specify your own Elastic IP addresses.

Returns:

#subnetsArray<String>

The IDs of the subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

Returns:

  • (Array<String>)

    The IDs of the subnets.