| 1 | |||
| 2 | package Paws::ELBv2::ModifyListener; | ||
| 3 | use Moose; | ||
| 4 | has AlpnPolicy => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 5 | has Certificates => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Certificate]'); | ||
| 6 | has DefaultActions => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Action]'); | ||
| 7 | has ListenerArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has Port => (is => 'ro', isa => 'Int'); | ||
| 9 | has Protocol => (is => 'ro', isa => 'Str'); | ||
| 10 | has SslPolicy => (is => 'ro', isa => 'Str'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyListener'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::ModifyListenerOutput'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyListenerResult'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::ELBv2::ModifyListener - Arguments for method ModifyListener on L<Paws::ELBv2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method ModifyListener on the | ||
| 28 | L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class | ||
| 29 | as arguments to method ModifyListener. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyListener. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $elasticloadbalancing = Paws->service('ELBv2'); | ||
| 36 | # To change the default action for a listener | ||
| 37 | # This example changes the default action for the specified listener. | ||
| 38 | my $ModifyListenerOutput = $elasticloadbalancing->ModifyListener( | ||
| 39 | 'DefaultActions' => [ | ||
| 40 | |||
| 41 | { | ||
| 42 | 'TargetGroupArn' => | ||
| 43 | 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f', | ||
| 44 | 'Type' => 'forward' | ||
| 45 | } | ||
| 46 | ], | ||
| 47 | 'ListenerArn' => | ||
| 48 | 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2' | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $Listeners = $ModifyListenerOutput->Listeners; | ||
| 53 | |||
| 54 | # Returns a L<Paws::ELBv2::ModifyListenerOutput> object. | ||
| 55 | # To change the server certificate | ||
| 56 | # This example changes the server certificate for the specified HTTPS listener. | ||
| 57 | my $ModifyListenerOutput = $elasticloadbalancing->ModifyListener( | ||
| 58 | 'Certificates' => [ | ||
| 59 | |||
| 60 | { | ||
| 61 | 'CertificateArn' => | ||
| 62 | 'arn:aws:iam::123456789012:server-certificate/my-new-server-cert' | ||
| 63 | } | ||
| 64 | ], | ||
| 65 | 'ListenerArn' => | ||
| 66 | 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65' | ||
| 67 | ); | ||
| 68 | |||
| 69 | # Results: | ||
| 70 | my $Listeners = $ModifyListenerOutput->Listeners; | ||
| 71 | |||
| 72 | # Returns a L<Paws::ELBv2::ModifyListenerOutput> object. | ||
| 73 | |||
| 74 | 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. | ||
| 75 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/ModifyListener> | ||
| 76 | |||
| 77 | =head1 ATTRIBUTES | ||
| 78 | |||
| 79 | |||
| 80 | =head2 AlpnPolicy => ArrayRef[Str|Undef] | ||
| 81 | |||
| 82 | [TLS listeners] The name of the Application-Layer Protocol Negotiation | ||
| 83 | (ALPN) policy. You can specify one policy name. The following are the | ||
| 84 | possible values: | ||
| 85 | |||
| 86 | =over | ||
| 87 | |||
| 88 | =item * | ||
| 89 | |||
| 90 | C<HTTP1Only> | ||
| 91 | |||
| 92 | =item * | ||
| 93 | |||
| 94 | C<HTTP2Only> | ||
| 95 | |||
| 96 | =item * | ||
| 97 | |||
| 98 | C<HTTP2Optional> | ||
| 99 | |||
| 100 | =item * | ||
| 101 | |||
| 102 | C<HTTP2Preferred> | ||
| 103 | |||
| 104 | =item * | ||
| 105 | |||
| 106 | C<None> | ||
| 107 | |||
| 108 | =back | ||
| 109 | |||
| 110 | For more information, see ALPN policies | ||
| 111 | (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies) | ||
| 112 | in the I<Network Load Balancers Guide>. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 Certificates => ArrayRef[L<Paws::ELBv2::Certificate>] | ||
| 117 | |||
| 118 | [HTTPS and TLS listeners] The default certificate for the listener. You | ||
| 119 | must provide exactly one certificate. Set C<CertificateArn> to the | ||
| 120 | certificate ARN but do not set C<IsDefault>. | ||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head2 DefaultActions => ArrayRef[L<Paws::ELBv2::Action>] | ||
| 125 | |||
| 126 | The actions for the default rule. | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | =head2 B<REQUIRED> ListenerArn => Str | ||
| 131 | |||
| 132 | The Amazon Resource Name (ARN) of the listener. | ||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | =head2 Port => Int | ||
| 137 | |||
| 138 | The port for connections from clients to the load balancer. You cannot | ||
| 139 | specify a port for a Gateway Load Balancer. | ||
| 140 | |||
| 141 | |||
| 142 | |||
| 143 | =head2 Protocol => Str | ||
| 144 | |||
| 145 | The protocol for connections from clients to the load balancer. | ||
| 146 | Application Load Balancers support the HTTP and HTTPS protocols. | ||
| 147 | Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP | ||
| 148 | protocols. You canE<rsquo>t change the protocol to UDP or TCP_UDP if | ||
| 149 | dual-stack mode is enabled. You cannot specify a protocol for a Gateway | ||
| 150 | Load Balancer. | ||
| 151 | |||
| 152 | Valid values are: C<"HTTP">, C<"HTTPS">, C<"TCP">, C<"TLS">, C<"UDP">, C<"TCP_UDP">, C<"GENEVE"> | ||
| 153 | |||
| 154 | =head2 SslPolicy => Str | ||
| 155 | |||
| 156 | [HTTPS and TLS listeners] The security policy that defines which | ||
| 157 | protocols and ciphers are supported. | ||
| 158 | |||
| 159 | For more information, see Security policies | ||
| 160 | (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies) | ||
| 161 | in the I<Application Load Balancers Guide> or Security policies | ||
| 162 | (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#describe-ssl-policies) | ||
| 163 | in the I<Network Load Balancers Guide>. | ||
| 164 | |||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | =head1 SEE ALSO | ||
| 169 | |||
| 170 | This class forms part of L<Paws>, documenting arguments for method ModifyListener in L<Paws::ELBv2> | ||
| 171 | |||
| 172 | =head1 BUGS and CONTRIBUTIONS | ||
| 173 | |||
| 174 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 175 | |||
| 176 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 177 | |||
| 178 | =cut | ||
| 179 |