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

Class: Aws::ElasticLoadBalancingV2::Types::CreateListenerInput

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateListenerInput as input to an Aws::Client method, you can use a vanilla Hash:

{
  load_balancer_arn: "LoadBalancerArn", # required
  protocol: "HTTP", # required, accepts HTTP, HTTPS, TCP
  port: 1, # required
  ssl_policy: "SslPolicyName",
  certificates: [
    {
      certificate_arn: "CertificateArn",
      is_default: false,
    },
  ],
  default_actions: [ # required
    {
      type: "forward", # required, accepts forward
      target_group_arn: "TargetGroupArn", # required
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#certificatesArray<Types::Certificate>

[HTTPS listeners] The SSL server certificate. You must provide exactly one certificate.

Returns:

#default_actionsArray<Types::Action>

The default action for the listener. For Application Load Balancers, the protocol of the specified target group must be HTTP or HTTPS. For Network Load Balancers, the protocol of the specified target group must be TCP.

Returns:

  • (Array<Types::Action>)

    The default action for the listener.

#load_balancer_arnString

The Amazon Resource Name (ARN) of the load balancer.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the load balancer.

#portInteger

The port on which the load balancer is listening.

Returns:

  • (Integer)

    The port on which the load balancer is listening.

#protocolString

The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocol is TCP.

Possible values:

  • HTTP
  • HTTPS
  • TCP

Returns:

  • (String)

    The protocol for connections from clients to the load balancer.

#ssl_policyString

[HTTPS listeners] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.

Returns:

  • (String)

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