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
source§impl PartialEq for OpenIdConnectConfigBuilder
impl PartialEq for OpenIdConnectConfigBuilder
source§fn eq(&self, other: &OpenIdConnectConfigBuilder) -> bool
fn eq(&self, other: &OpenIdConnectConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.