Struct aws_sdk_elasticloadbalancingv2::input::CreateListenerInput [−][src]
#[non_exhaustive]pub struct CreateListenerInput {
pub load_balancer_arn: Option<String>,
pub protocol: Option<ProtocolEnum>,
pub port: Option<i32>,
pub ssl_policy: Option<String>,
pub certificates: Option<Vec<Certificate>>,
pub default_actions: Option<Vec<Action>>,
pub alpn_policy: Option<Vec<String>>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.load_balancer_arn: Option<String>
The Amazon Resource Name (ARN) of the load balancer.
protocol: Option<ProtocolEnum>
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 protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
port: Option<i32>
The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
ssl_policy: Option<String>
[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 and Security policies in the Network Load Balancers Guide.
certificates: Option<Vec<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
.
default_actions: Option<Vec<Action>>
The actions for the default rule.
alpn_policy: Option<Vec<String>>
[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.
The tags to assign to the listener.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateListener, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateListener, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateListener
>
Creates a new builder-style object to manufacture CreateListenerInput
The Amazon Resource Name (ARN) of the load balancer.
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 protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
[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 and Security policies in the Network Load Balancers Guide.
[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
.
[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.
The tags to assign to the listener.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateListenerInput
impl Send for CreateListenerInput
impl Sync for CreateListenerInput
impl Unpin for CreateListenerInput
impl UnwindSafe for CreateListenerInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more