Class: AWSCDK::ElasticLoadBalancingv2::BaseApplicationListenerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::BaseApplicationListenerProps
- Defined in:
- elastic_load_balancingv2/base_application_listener_props.rb
Overview
Basic properties for an ApplicationListener.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#certificates ⇒ Array<AWSCDK::ElasticLoadBalancingv2::IListenerCertificate>?
readonly
Certificate list of ACM cert ARNs.
-
#default_action ⇒ AWSCDK::ElasticLoadBalancingv2::ListenerAction?
readonly
Default action to take for requests to this listener.
-
#default_target_groups ⇒ Array<AWSCDK::ElasticLoadBalancingv2::IApplicationTargetGroup>?
readonly
Default target groups to load balance to.
-
#mutual_authentication ⇒ AWSCDK::ElasticLoadBalancingv2::MutualAuthentication?
readonly
The mutual authentication configuration information.
-
#open ⇒ Boolean?
readonly
Allow anyone to connect to the load balancer on the listener port.
-
#port ⇒ Numeric?
readonly
The port on which the listener listens for requests.
-
#protocol ⇒ AWSCDK::ElasticLoadBalancingv2::ApplicationProtocol?
readonly
The protocol to use.
-
#ssl_policy ⇒ AWSCDK::ElasticLoadBalancingv2::SSLPolicy?
readonly
The security policy that defines which ciphers and protocols are supported.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(certificates: nil, default_action: nil, default_target_groups: nil, mutual_authentication: nil, open: nil, port: nil, protocol: nil, ssl_policy: nil) ⇒ BaseApplicationListenerProps
constructor
A new instance of BaseApplicationListenerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(certificates: nil, default_action: nil, default_target_groups: nil, mutual_authentication: nil, open: nil, port: nil, protocol: nil, ssl_policy: nil) ⇒ BaseApplicationListenerProps
Returns a new instance of BaseApplicationListenerProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 15 def initialize(certificates: nil, default_action: nil, default_target_groups: nil, mutual_authentication: nil, open: nil, port: nil, protocol: nil, ssl_policy: nil) @certificates = certificates Jsii::Type.check_type(@certificates, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljbG9hZGJhbGFuY2luZ3YyLklMaXN0ZW5lckNlcnRpZmljYXRlIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "certificates") unless @certificates.nil? @default_action = default_action Jsii::Type.check_type(@default_action, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5MaXN0ZW5lckFjdGlvbiJ9")), "defaultAction") unless @default_action.nil? @default_target_groups = default_target_groups Jsii::Type.check_type(@default_target_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljbG9hZGJhbGFuY2luZ3YyLklBcHBsaWNhdGlvblRhcmdldEdyb3VwIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "defaultTargetGroups") unless @default_target_groups.nil? @mutual_authentication = mutual_authentication.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::MutualAuthentication.new(**mutual_authentication.transform_keys(&:to_sym)) : mutual_authentication Jsii::Type.check_type(@mutual_authentication, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5NdXR1YWxBdXRoZW50aWNhdGlvbiJ9")), "mutualAuthentication") unless @mutual_authentication.nil? @open = open Jsii::Type.check_type(@open, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "open") unless @open.nil? @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil? @protocol = protocol Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5BcHBsaWNhdGlvblByb3RvY29sIn0=")), "protocol") unless @protocol.nil? @ssl_policy = ssl_policy Jsii::Type.check_type(@ssl_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5Tc2xQb2xpY3kifQ==")), "sslPolicy") unless @ssl_policy.nil? end |
Instance Attribute Details
#certificates ⇒ Array<AWSCDK::ElasticLoadBalancingv2::IListenerCertificate>? (readonly)
Default: - No certificates.
Certificate list of ACM cert ARNs.
You must provide exactly one certificate if the listener protocol is HTTPS or TLS.
40 41 42 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 40 def certificates @certificates end |
#default_action ⇒ AWSCDK::ElasticLoadBalancingv2::ListenerAction? (readonly)
Default: - None.
Default action to take for requests to this listener.
This allows full control of the default action of the load balancer, including Action chaining, fixed responses and redirect responses.
See the ListenerAction class for all options.
Cannot be specified together with default_target_groups.
52 53 54 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 52 def default_action @default_action end |
#default_target_groups ⇒ Array<AWSCDK::ElasticLoadBalancingv2::IApplicationTargetGroup>? (readonly)
Default: - None.
Default target groups to load balance to.
All target groups will be load balanced to with equal weight and without
stickiness. For a more complex configuration than that, use
either default_action or add_action().
Cannot be specified together with default_action.
63 64 65 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 63 def default_target_groups @default_target_groups end |
#mutual_authentication ⇒ AWSCDK::ElasticLoadBalancingv2::MutualAuthentication? (readonly)
Default: - No mutual authentication configuration
The mutual authentication configuration information.
69 70 71 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 69 def mutual_authentication @mutual_authentication end |
#open ⇒ Boolean? (readonly)
Default: true
Allow anyone to connect to the load balancer on the listener port.
If this is specified, the load balancer will be opened up to anyone who can reach it. For internal load balancers this is anyone in the same VPC. For public load balancers, this is anyone on the internet.
If you want to be more selective about who can access this load
balancer, set this to false and use the listener's connections
object to selectively grant access to the load balancer on the listener port.
82 83 84 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 82 def open @open end |
#port ⇒ Numeric? (readonly)
Default: - Determined from protocol if known.
The port on which the listener listens for requests.
87 88 89 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 87 def port @port end |
#protocol ⇒ AWSCDK::ElasticLoadBalancingv2::ApplicationProtocol? (readonly)
Default: - Determined from port if known.
The protocol to use.
92 93 94 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 92 def protocol @protocol end |
#ssl_policy ⇒ AWSCDK::ElasticLoadBalancingv2::SSLPolicy? (readonly)
Default: - The current predefined security policy.
The security policy that defines which ciphers and protocols are supported.
97 98 99 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 97 def ssl_policy @ssl_policy end |
Class Method Details
.jsii_properties ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 99 def self.jsii_properties { :certificates => "certificates", :default_action => "defaultAction", :default_target_groups => "defaultTargetGroups", :mutual_authentication => "mutualAuthentication", :open => "open", :port => "port", :protocol => "protocol", :ssl_policy => "sslPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'elastic_load_balancingv2/base_application_listener_props.rb', line 112 def to_jsii result = {} result.merge!({ "certificates" => @certificates, "defaultAction" => @default_action, "defaultTargetGroups" => @default_target_groups, "mutualAuthentication" => @mutual_authentication, "open" => @open, "port" => @port, "protocol" => @protocol, "sslPolicy" => @ssl_policy, }) result.compact end |