Struct aws_sdk_elasticloadbalancing::model::listener::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Listener
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn protocol(self, input: impl Into<String>) -> Self
pub fn protocol(self, input: impl Into<String>) -> Self
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
sourcepub fn load_balancer_port(self, input: i32) -> Self
pub fn load_balancer_port(self, input: i32) -> Self
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
sourcepub fn set_load_balancer_port(self, input: Option<i32>) -> Self
pub fn set_load_balancer_port(self, input: Option<i32>) -> Self
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
sourcepub fn instance_protocol(self, input: impl Into<String>) -> Self
pub fn instance_protocol(self, input: impl Into<String>) -> Self
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's InstanceProtocol
must be HTTP or TCP.
sourcepub fn set_instance_protocol(self, input: Option<String>) -> Self
pub fn set_instance_protocol(self, input: Option<String>) -> Self
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's InstanceProtocol
must be HTTP or TCP.
sourcepub fn instance_port(self, input: i32) -> Self
pub fn instance_port(self, input: i32) -> Self
The port on which the instance is listening.
sourcepub fn set_instance_port(self, input: Option<i32>) -> Self
pub fn set_instance_port(self, input: Option<i32>) -> Self
The port on which the instance is listening.
sourcepub fn ssl_certificate_id(self, input: impl Into<String>) -> Self
pub fn ssl_certificate_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the server certificate.
sourcepub fn set_ssl_certificate_id(self, input: Option<String>) -> Self
pub fn set_ssl_certificate_id(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the server certificate.