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

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

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

Overview

Note:

When making an API call, you may pass SetSubnetsInput data as a 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)


2138
2139
2140
2141
2142
2143
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 2138

class SetSubnetsInput < Struct.new(
  :load_balancer_arn,
  :subnets,
  :subnet_mappings)
  include Aws::Structure
end

#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:



2138
2139
2140
2141
2142
2143
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 2138

class SetSubnetsInput < Struct.new(
  :load_balancer_arn,
  :subnets,
  :subnet_mappings)
  include Aws::Structure
end

#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>)


2138
2139
2140
2141
2142
2143
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 2138

class SetSubnetsInput < Struct.new(
  :load_balancer_arn,
  :subnets,
  :subnet_mappings)
  include Aws::Structure
end