Struct aws_sdk_appsync::types::builders::OpenIdConnectConfigBuilder
source · #[non_exhaustive]pub struct OpenIdConnectConfigBuilder { /* private fields */ }
Expand description
A builder for OpenIdConnectConfig
.
Implementations§
source§impl OpenIdConnectConfigBuilder
impl OpenIdConnectConfigBuilder
sourcepub fn issuer(self, input: impl Into<String>) -> Self
pub fn issuer(self, input: impl Into<String>) -> Self
The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss
in the ID token.
sourcepub fn set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss
in the ID token.
sourcepub fn get_issuer(&self) -> &Option<String>
pub fn get_issuer(&self) -> &Option<String>
The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss
in the ID token.
sourcepub fn client_id(self, input: impl Into<String>) -> Self
pub fn client_id(self, input: impl Into<String>) -> Self
The client identifier of the relying party at the OpenID identity provider. This identifier is typically obtained when the relying party is registered with the OpenID identity provider. You can specify a regular expression so that AppSync can validate against multiple client identifiers at a time.
sourcepub fn set_client_id(self, input: Option<String>) -> Self
pub fn set_client_id(self, input: Option<String>) -> Self
The client identifier of the relying party at the OpenID identity provider. This identifier is typically obtained when the relying party is registered with the OpenID identity provider. You can specify a regular expression so that AppSync can validate against multiple client identifiers at a time.
sourcepub fn get_client_id(&self) -> &Option<String>
pub fn get_client_id(&self) -> &Option<String>
The client identifier of the relying party at the OpenID identity provider. This identifier is typically obtained when the relying party is registered with the OpenID identity provider. You can specify a regular expression so that AppSync can validate against multiple client identifiers at a time.
sourcepub fn iat_ttl(self, input: i64) -> Self
pub fn iat_ttl(self, input: i64) -> Self
The number of milliseconds that a token is valid after it's issued to a user.
sourcepub fn set_iat_ttl(self, input: Option<i64>) -> Self
pub fn set_iat_ttl(self, input: Option<i64>) -> Self
The number of milliseconds that a token is valid after it's issued to a user.
sourcepub fn get_iat_ttl(&self) -> &Option<i64>
pub fn get_iat_ttl(&self) -> &Option<i64>
The number of milliseconds that a token is valid after it's issued to a user.
sourcepub fn auth_ttl(self, input: i64) -> Self
pub fn auth_ttl(self, input: i64) -> Self
The number of milliseconds that a token is valid after being authenticated.
sourcepub fn set_auth_ttl(self, input: Option<i64>) -> Self
pub fn set_auth_ttl(self, input: Option<i64>) -> Self
The number of milliseconds that a token is valid after being authenticated.
sourcepub fn get_auth_ttl(&self) -> &Option<i64>
pub fn get_auth_ttl(&self) -> &Option<i64>
The number of milliseconds that a token is valid after being authenticated.
sourcepub fn build(self) -> Result<OpenIdConnectConfig, BuildError>
pub fn build(self) -> Result<OpenIdConnectConfig, BuildError>
Consumes the builder and constructs a OpenIdConnectConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OpenIdConnectConfigBuilder
impl Clone for OpenIdConnectConfigBuilder
source§fn clone(&self) -> OpenIdConnectConfigBuilder
fn clone(&self) -> OpenIdConnectConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OpenIdConnectConfigBuilder
impl Debug for OpenIdConnectConfigBuilder
source§impl Default for OpenIdConnectConfigBuilder
impl Default for OpenIdConnectConfigBuilder
source§fn default() -> OpenIdConnectConfigBuilder
fn default() -> OpenIdConnectConfigBuilder
impl StructuralPartialEq for OpenIdConnectConfigBuilder
Auto Trait Implementations§
impl Freeze for OpenIdConnectConfigBuilder
impl RefUnwindSafe for OpenIdConnectConfigBuilder
impl Send for OpenIdConnectConfigBuilder
impl Sync for OpenIdConnectConfigBuilder
impl Unpin for OpenIdConnectConfigBuilder
impl UnwindSafe for OpenIdConnectConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more