Struct aws_sdk_appmesh::types::ClientPolicyTls
source · #[non_exhaustive]pub struct ClientPolicyTls {
pub enforce: Option<bool>,
pub ports: Option<Vec<i32>>,
pub certificate: Option<ClientTlsCertificate>,
pub validation: Option<TlsValidationContext>,
}
Expand description
A reference to an object that represents a Transport Layer Security (TLS) client policy.
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.enforce: Option<bool>
Whether the policy is enforced. The default is True
, if a value isn't specified.
ports: Option<Vec<i32>>
One or more ports that the policy is enforced for.
certificate: Option<ClientTlsCertificate>
A reference to an object that represents a client's TLS certificate.
validation: Option<TlsValidationContext>
A reference to an object that represents a TLS validation context.
Implementations§
source§impl ClientPolicyTls
impl ClientPolicyTls
sourcepub fn enforce(&self) -> Option<bool>
pub fn enforce(&self) -> Option<bool>
Whether the policy is enforced. The default is True
, if a value isn't specified.
sourcepub fn ports(&self) -> &[i32]
pub fn ports(&self) -> &[i32]
One or more ports that the policy is enforced for.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ports.is_none()
.
sourcepub fn certificate(&self) -> Option<&ClientTlsCertificate>
pub fn certificate(&self) -> Option<&ClientTlsCertificate>
A reference to an object that represents a client's TLS certificate.
sourcepub fn validation(&self) -> Option<&TlsValidationContext>
pub fn validation(&self) -> Option<&TlsValidationContext>
A reference to an object that represents a TLS validation context.
source§impl ClientPolicyTls
impl ClientPolicyTls
sourcepub fn builder() -> ClientPolicyTlsBuilder
pub fn builder() -> ClientPolicyTlsBuilder
Creates a new builder-style object to manufacture ClientPolicyTls
.
Trait Implementations§
source§impl Clone for ClientPolicyTls
impl Clone for ClientPolicyTls
source§fn clone(&self) -> ClientPolicyTls
fn clone(&self) -> ClientPolicyTls
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClientPolicyTls
impl Debug for ClientPolicyTls
source§impl PartialEq for ClientPolicyTls
impl PartialEq for ClientPolicyTls
source§fn eq(&self, other: &ClientPolicyTls) -> bool
fn eq(&self, other: &ClientPolicyTls) -> bool
self
and other
values to be equal, and is used
by ==
.