#[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
sourceimpl CreateListenerInput
impl CreateListenerInput
sourcepub 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
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateListenerInput
sourceimpl CreateListenerInput
impl CreateListenerInput
sourcepub fn load_balancer_arn(&self) -> Option<&str>
pub fn load_balancer_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the load balancer.
sourcepub fn protocol(&self) -> Option<&ProtocolEnum>
pub fn protocol(&self) -> 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.
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
sourcepub fn ssl_policy(&self) -> Option<&str>
pub fn ssl_policy(&self) -> Option<&str>
[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.
sourcepub fn certificates(&self) -> Option<&[Certificate]>
pub fn certificates(&self) -> Option<&[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
.
sourcepub fn alpn_policy(&self) -> Option<&[String]>
pub fn alpn_policy(&self) -> Option<&[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.
Trait Implementations
sourceimpl Clone for CreateListenerInput
impl Clone for CreateListenerInput
sourcefn clone(&self) -> CreateListenerInput
fn clone(&self) -> CreateListenerInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateListenerInput
impl Debug for CreateListenerInput
sourceimpl PartialEq<CreateListenerInput> for CreateListenerInput
impl PartialEq<CreateListenerInput> for CreateListenerInput
sourcefn eq(&self, other: &CreateListenerInput) -> bool
fn eq(&self, other: &CreateListenerInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateListenerInput) -> bool
fn ne(&self, other: &CreateListenerInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateListenerInput
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more