amazonka-elbv2-2.0: Amazon Elastic Load Balancing SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ELBV2.ModifyListener

Description

Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.

Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the security policy and default certificate properties. If you change the protocol from HTTP to HTTPS, or from TCP to TLS, you must add the security policy and default certificate properties.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

Synopsis

Creating a Request

data ModifyListener Source #

See: newModifyListener smart constructor.

Constructors

ModifyListener' 

Fields

  • alpnPolicy :: Maybe [Text]
    TLS listeners
    The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:
    • HTTP1Only
    • HTTP2Only
    • HTTP2Optional
    • HTTP2Preferred
    • None

    For more information, see ALPN policies in the Network Load Balancers Guide.

  • certificates :: Maybe [Certificate]
    HTTPS and TLS listeners
    The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.
  • defaultActions :: Maybe [Action]

    The actions for the default rule.

  • port :: Maybe Natural

    The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.

  • protocol :: Maybe ProtocolEnum

    The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

  • sslPolicy :: Maybe Text
    HTTPS and TLS listeners
    The security policy that defines which protocols and ciphers are supported.

    For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.

  • listenerArn :: Text

    The Amazon Resource Name (ARN) of the listener.

Instances

Instances details
ToHeaders ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

ToPath ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

ToQuery ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

AWSRequest ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Associated Types

type AWSResponse ModifyListener #

Generic ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Associated Types

type Rep ModifyListener :: Type -> Type #

Read ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Show ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

NFData ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Methods

rnf :: ModifyListener -> () #

Eq ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Hashable ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

type AWSResponse ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

type Rep ModifyListener Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

newModifyListener Source #

Create a value of ModifyListener with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ModifyListener, modifyListener_alpnPolicy - [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

  • HTTP1Only
  • HTTP2Only
  • HTTP2Optional
  • HTTP2Preferred
  • None

For more information, see ALPN policies in the Network Load Balancers Guide.

ModifyListener, modifyListener_certificates - [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

ModifyListener, modifyListener_defaultActions - The actions for the default rule.

ModifyListener, modifyListener_port - The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.

ModifyListener, modifyListener_protocol - The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

ModifyListener, modifyListener_sslPolicy - [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.

For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.

ModifyListener, modifyListener_listenerArn - The Amazon Resource Name (ARN) of the listener.

Request Lenses

modifyListener_alpnPolicy :: Lens' ModifyListener (Maybe [Text]) Source #

TLS listeners
The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:
  • HTTP1Only
  • HTTP2Only
  • HTTP2Optional
  • HTTP2Preferred
  • None

For more information, see ALPN policies in the Network Load Balancers Guide.

modifyListener_certificates :: Lens' ModifyListener (Maybe [Certificate]) Source #

HTTPS and TLS listeners
The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

modifyListener_defaultActions :: Lens' ModifyListener (Maybe [Action]) Source #

The actions for the default rule.

modifyListener_port :: Lens' ModifyListener (Maybe Natural) Source #

The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.

modifyListener_protocol :: Lens' ModifyListener (Maybe ProtocolEnum) Source #

The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

modifyListener_sslPolicy :: Lens' ModifyListener (Maybe Text) Source #

HTTPS and TLS listeners
The security policy that defines which protocols and ciphers are supported.

For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.

modifyListener_listenerArn :: Lens' ModifyListener Text Source #

The Amazon Resource Name (ARN) of the listener.

Destructuring the Response

data ModifyListenerResponse Source #

See: newModifyListenerResponse smart constructor.

Constructors

ModifyListenerResponse' 

Fields

Instances

Instances details
Generic ModifyListenerResponse Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Associated Types

type Rep ModifyListenerResponse :: Type -> Type #

Read ModifyListenerResponse Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Show ModifyListenerResponse Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

NFData ModifyListenerResponse Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

Methods

rnf :: ModifyListenerResponse -> () #

Eq ModifyListenerResponse Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

type Rep ModifyListenerResponse Source # 
Instance details

Defined in Amazonka.ELBV2.ModifyListener

type Rep ModifyListenerResponse = D1 ('MetaData "ModifyListenerResponse" "Amazonka.ELBV2.ModifyListener" "amazonka-elbv2-2.0-361J9F5fkBoAtGaOoJg8Ev" 'False) (C1 ('MetaCons "ModifyListenerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "listeners") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Listener])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyListenerResponse Source #

Create a value of ModifyListenerResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:listeners:ModifyListenerResponse', modifyListenerResponse_listeners - Information about the modified listener.

$sel:httpStatus:ModifyListenerResponse', modifyListenerResponse_httpStatus - The response's http status code.

Response Lenses

modifyListenerResponse_listeners :: Lens' ModifyListenerResponse (Maybe [Listener]) Source #

Information about the modified listener.