GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Paws::ELB::CreateLoadBalancer(3) User Contributed Perl Documentation Paws::ELB::CreateLoadBalancer(3)

Paws::ELB::CreateLoadBalancer - Arguments for method CreateLoadBalancer on Paws::ELB

This class represents the parameters used for calling the method CreateLoadBalancer on the Elastic Load Balancing service. Use the attributes of this class as arguments to method CreateLoadBalancer.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLoadBalancer.

    my $elasticloadbalancing = Paws->service('ELB');
    # To create an HTTP load balancer in a VPC
    # This example creates a load balancer with an HTTP listener in a VPC.
    my $CreateAccessPointOutput = $elasticloadbalancing->CreateLoadBalancer(
      'Listeners' => [
        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 80,
          'Protocol'         => 'HTTP'
        }
      ],
      'LoadBalancerName' => 'my-load-balancer',
      'SecurityGroups'   => ['sg-a61988c3'],
      'Subnets'          => ['subnet-15aaab61']
    );
    # Results:
    my $DNSName = $CreateAccessPointOutput->DNSName;
    # Returns a L<Paws::ELB::CreateAccessPointOutput> object.
    # To create an HTTP load balancer in EC2-Classic
    # This example creates a load balancer with an HTTP listener in EC2-Classic.
    my $CreateAccessPointOutput = $elasticloadbalancing->CreateLoadBalancer(
      'AvailabilityZones' => ['us-west-2a'],
      'Listeners'         => [
        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 80,
          'Protocol'         => 'HTTP'
        }
      ],
      'LoadBalancerName' => 'my-load-balancer'
    );
    # Results:
    my $DNSName = $CreateAccessPointOutput->DNSName;
    # Returns a L<Paws::ELB::CreateAccessPointOutput> object.
    # To create an HTTPS load balancer in a VPC
    # This example creates a load balancer with an HTTPS listener in a VPC.
    my $CreateAccessPointOutput = $elasticloadbalancing->CreateLoadBalancer(
      'Listeners' => [
        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 80,
          'Protocol'         => 'HTTP'
        },
        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 443,
          'Protocol'         => 'HTTPS',
          'SSLCertificateId' =>
            'arn:aws:iam::123456789012:server-certificate/my-server-cert'
        }
      ],
      'LoadBalancerName' => 'my-load-balancer',
      'SecurityGroups'   => ['sg-a61988c3'],
      'Subnets'          => ['subnet-15aaab61']
    );
    # Results:
    my $DNSName = $CreateAccessPointOutput->DNSName;
   # Returns a L<Paws::ELB::CreateAccessPointOutput> object.
   # To create an HTTPS load balancer in EC2-Classic
   # This example creates a load balancer with an HTTPS listener in EC2-Classic.
    my $CreateAccessPointOutput = $elasticloadbalancing->CreateLoadBalancer(
      'AvailabilityZones' => ['us-west-2a'],
      'Listeners'         => [
        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 80,
          'Protocol'         => 'HTTP'
        },
        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 443,
          'Protocol'         => 'HTTPS',
          'SSLCertificateId' =>
            'arn:aws:iam::123456789012:server-certificate/my-server-cert'
        }
      ],
      'LoadBalancerName' => 'my-load-balancer'
    );
    # Results:
    my $DNSName = $CreateAccessPointOutput->DNSName;

# Returns a Paws::ELB::CreateAccessPointOutput object. # To create an internal load balancer # This example creates an internal load balancer with an HTTP listener in a VPC.
my $CreateAccessPointOutput = $elasticloadbalancing->CreateLoadBalancer(
'Listeners' => [

        {
          'InstancePort'     => 80,
          'InstanceProtocol' => 'HTTP',
          'LoadBalancerPort' => 80,
          'Protocol'         => 'HTTP'
        }
      ],
      'LoadBalancerName' => 'my-load-balancer',
      'Scheme'           => 'internal',
      'SecurityGroups'   => ['sg-a61988c3'],
      'Subnets'          => ['subnet-15aaab61']
    );
    # Results:
    my $DNSName = $CreateAccessPointOutput->DNSName;
    # Returns a L<Paws::ELB::CreateAccessPointOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/CreateLoadBalancer>

One or more Availability Zones from the same region as the load balancer.

You must specify at least one Availability Zone.

You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.

REQUIRED Listeners => ArrayRef[Paws::ELB::Listener]

The listeners.

For more information, see Listeners for Your Classic Load Balancer (https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html) in the Classic Load Balancers Guide.

REQUIRED LoadBalancerName => Str

The name of the load balancer.

This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

The type of a load balancer. Valid only for load balancers in a VPC.

By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme (https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme) in the Elastic Load Balancing User Guide.

Specify "internal" to create a load balancer with a DNS name that resolves to private IP addresses.

The IDs of the security groups to assign to the load balancer.

The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in "AvailabilityZones".

A list of tags to assign to the load balancer.

For more information about tagging your load balancer, see Tag Your Classic Load Balancer (https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html) in the Classic Load Balancers Guide.

This class forms part of Paws, documenting arguments for method CreateLoadBalancer in Paws::ELB

The source code is located here: <https://github.com/pplu/aws-sdk-perl>

Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>

2022-06-01 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.