#[non_exhaustive]pub struct ModifyListenerInput {
pub listener_arn: Option<String>,
pub port: Option<i32>,
pub protocol: Option<ProtocolEnum>,
pub ssl_policy: Option<String>,
pub certificates: Option<Vec<Certificate>>,
pub default_actions: Option<Vec<Action>>,
pub alpn_policy: Option<Vec<String>>,
}
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.listener_arn: Option<String>
The Amazon Resource Name (ARN) of the listener.
port: Option<i32>
The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.
protocol: Option<ProtocolEnum>
The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol 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 or 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.
Implementations
sourceimpl ModifyListenerInput
impl ModifyListenerInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyListener, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyListener, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyListener
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifyListenerInput
sourceimpl ModifyListenerInput
impl ModifyListenerInput
sourcepub fn listener_arn(&self) -> Option<&str>
pub fn listener_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the listener.
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.
sourcepub fn protocol(&self) -> Option<&ProtocolEnum>
pub fn protocol(&self) -> Option<&ProtocolEnum>
The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol 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 or 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.
Trait Implementations
sourceimpl Clone for ModifyListenerInput
impl Clone for ModifyListenerInput
sourcefn clone(&self) -> ModifyListenerInput
fn clone(&self) -> ModifyListenerInput
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 ModifyListenerInput
impl Debug for ModifyListenerInput
sourceimpl PartialEq<ModifyListenerInput> for ModifyListenerInput
impl PartialEq<ModifyListenerInput> for ModifyListenerInput
sourcefn eq(&self, other: &ModifyListenerInput) -> bool
fn eq(&self, other: &ModifyListenerInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModifyListenerInput) -> bool
fn ne(&self, other: &ModifyListenerInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ModifyListenerInput
Auto Trait Implementations
impl RefUnwindSafe for ModifyListenerInput
impl Send for ModifyListenerInput
impl Sync for ModifyListenerInput
impl Unpin for ModifyListenerInput
impl UnwindSafe for ModifyListenerInput
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