#[non_exhaustive]pub struct OpenIdConnectConfigurationItemBuilder { /* private fields */ }Expand description
A builder for OpenIdConnectConfigurationItem.
Implementations§
source§impl OpenIdConnectConfigurationItemBuilder
impl OpenIdConnectConfigurationItemBuilder
sourcepub fn issuer(self, input: impl Into<String>) -> Self
pub fn issuer(self, input: impl Into<String>) -> Self
The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
sourcepub fn set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
sourcepub fn get_issuer(&self) -> &Option<String>
pub fn get_issuer(&self) -> &Option<String>
The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
sourcepub fn entity_id_prefix(self, input: impl Into<String>) -> Self
pub fn entity_id_prefix(self, input: impl Into<String>) -> Self
A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
sourcepub fn set_entity_id_prefix(self, input: Option<String>) -> Self
pub fn set_entity_id_prefix(self, input: Option<String>) -> Self
A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
sourcepub fn get_entity_id_prefix(&self) -> &Option<String>
pub fn get_entity_id_prefix(&self) -> &Option<String>
A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
sourcepub fn group_configuration(
self,
input: OpenIdConnectGroupConfigurationItem,
) -> Self
pub fn group_configuration( self, input: OpenIdConnectGroupConfigurationItem, ) -> Self
The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
sourcepub fn set_group_configuration(
self,
input: Option<OpenIdConnectGroupConfigurationItem>,
) -> Self
pub fn set_group_configuration( self, input: Option<OpenIdConnectGroupConfigurationItem>, ) -> Self
The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
sourcepub fn get_group_configuration(
&self,
) -> &Option<OpenIdConnectGroupConfigurationItem>
pub fn get_group_configuration( &self, ) -> &Option<OpenIdConnectGroupConfigurationItem>
The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
sourcepub fn token_selection(self, input: OpenIdConnectTokenSelectionItem) -> Self
pub fn token_selection(self, input: OpenIdConnectTokenSelectionItem) -> Self
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
This field is required.sourcepub fn set_token_selection(
self,
input: Option<OpenIdConnectTokenSelectionItem>,
) -> Self
pub fn set_token_selection( self, input: Option<OpenIdConnectTokenSelectionItem>, ) -> Self
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
sourcepub fn get_token_selection(&self) -> &Option<OpenIdConnectTokenSelectionItem>
pub fn get_token_selection(&self) -> &Option<OpenIdConnectTokenSelectionItem>
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
sourcepub fn build(self) -> Result<OpenIdConnectConfigurationItem, BuildError>
pub fn build(self) -> Result<OpenIdConnectConfigurationItem, BuildError>
Consumes the builder and constructs a OpenIdConnectConfigurationItem.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OpenIdConnectConfigurationItemBuilder
impl Clone for OpenIdConnectConfigurationItemBuilder
source§fn clone(&self) -> OpenIdConnectConfigurationItemBuilder
fn clone(&self) -> OpenIdConnectConfigurationItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OpenIdConnectConfigurationItemBuilder
impl Default for OpenIdConnectConfigurationItemBuilder
source§fn default() -> OpenIdConnectConfigurationItemBuilder
fn default() -> OpenIdConnectConfigurationItemBuilder
source§impl PartialEq for OpenIdConnectConfigurationItemBuilder
impl PartialEq for OpenIdConnectConfigurationItemBuilder
source§fn eq(&self, other: &OpenIdConnectConfigurationItemBuilder) -> bool
fn eq(&self, other: &OpenIdConnectConfigurationItemBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenIdConnectConfigurationItemBuilder
Auto Trait Implementations§
impl Freeze for OpenIdConnectConfigurationItemBuilder
impl RefUnwindSafe for OpenIdConnectConfigurationItemBuilder
impl Send for OpenIdConnectConfigurationItemBuilder
impl Sync for OpenIdConnectConfigurationItemBuilder
impl Unpin for OpenIdConnectConfigurationItemBuilder
impl UnwindSafe for OpenIdConnectConfigurationItemBuilder
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