« blib/lib/Paws/ELB/CreateLoadBalancerListenerOutput.pm
↑ Summary
blib/lib/Paws/ELB/CreateLoadBalancerPolicy.pm »
| 1 | |||
| 2 | package Paws::ELB::CreateLoadBalancerListeners; | ||
| 3 | use Moose; | ||
| 4 | has Listeners => (is => 'ro', isa => 'ArrayRef[Paws::ELB::Listener]', required => 1); | ||
| 5 | has LoadBalancerName => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerListeners'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELB::CreateLoadBalancerListenerOutput'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerListenersResult'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::ELB::CreateLoadBalancerListeners - Arguments for method CreateLoadBalancerListeners on L<Paws::ELB> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method CreateLoadBalancerListeners on the | ||
| 23 | L<Elastic Load Balancing|Paws::ELB> service. Use the attributes of this class | ||
| 24 | as arguments to method CreateLoadBalancerListeners. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLoadBalancerListeners. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $elasticloadbalancing = Paws->service('ELB'); | ||
| 31 | # To create an HTTP listener for a load balancer | ||
| 32 | # This example creates a listener for your load balancer at port 80 using the | ||
| 33 | # HTTP protocol. | ||
| 34 | my $CreateLoadBalancerListenerOutput = | ||
| 35 | $elasticloadbalancing->CreateLoadBalancerListeners( | ||
| 36 | 'Listeners' => [ | ||
| 37 | |||
| 38 | { | ||
| 39 | 'InstancePort' => 80, | ||
| 40 | 'InstanceProtocol' => 'HTTP', | ||
| 41 | 'LoadBalancerPort' => 80, | ||
| 42 | 'Protocol' => 'HTTP' | ||
| 43 | } | ||
| 44 | ], | ||
| 45 | 'LoadBalancerName' => 'my-load-balancer' | ||
| 46 | ); | ||
| 47 | |||
| 48 | # To create an HTTPS listener for a load balancer | ||
| 49 | # This example creates a listener for your load balancer at port 443 using the | ||
| 50 | # HTTPS protocol. | ||
| 51 | my $CreateLoadBalancerListenerOutput = | ||
| 52 | $elasticloadbalancing->CreateLoadBalancerListeners( | ||
| 53 | 'Listeners' => [ | ||
| 54 | |||
| 55 | { | ||
| 56 | 'InstancePort' => 80, | ||
| 57 | 'InstanceProtocol' => 'HTTP', | ||
| 58 | 'LoadBalancerPort' => 443, | ||
| 59 | 'Protocol' => 'HTTPS', | ||
| 60 | 'SSLCertificateId' => | ||
| 61 | 'arn:aws:iam::123456789012:server-certificate/my-server-cert' | ||
| 62 | } | ||
| 63 | ], | ||
| 64 | 'LoadBalancerName' => 'my-load-balancer' | ||
| 65 | ); | ||
| 66 | |||
| 67 | |||
| 68 | 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. | ||
| 69 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/CreateLoadBalancerListeners> | ||
| 70 | |||
| 71 | =head1 ATTRIBUTES | ||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> Listeners => ArrayRef[L<Paws::ELB::Listener>] | ||
| 75 | |||
| 76 | The listeners. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 B<REQUIRED> LoadBalancerName => Str | ||
| 81 | |||
| 82 | The name of the load balancer. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head1 SEE ALSO | ||
| 88 | |||
| 89 | This class forms part of L<Paws>, documenting arguments for method CreateLoadBalancerListeners in L<Paws::ELB> | ||
| 90 | |||
| 91 | =head1 BUGS and CONTRIBUTIONS | ||
| 92 | |||
| 93 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 94 | |||
| 95 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 96 | |||
| 97 | =cut | ||
| 98 |