#[non_exhaustive]
pub struct OidcIdentityProviderConfigBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl OidcIdentityProviderConfigBuilder

source

pub fn identity_provider_config_name(self, input: impl Into<String>) -> Self

The name of the configuration.

source

pub fn set_identity_provider_config_name(self, input: Option<String>) -> Self

The name of the configuration.

source

pub fn get_identity_provider_config_name(&self) -> &Option<String>

The name of the configuration.

source

pub fn identity_provider_config_arn(self, input: impl Into<String>) -> Self

The ARN of the configuration.

source

pub fn set_identity_provider_config_arn(self, input: Option<String>) -> Self

The ARN of the configuration.

source

pub fn get_identity_provider_config_arn(&self) -> &Option<String>

The ARN of the configuration.

source

pub fn cluster_name(self, input: impl Into<String>) -> Self

The name of your cluster.

source

pub fn set_cluster_name(self, input: Option<String>) -> Self

The name of your cluster.

source

pub fn get_cluster_name(&self) -> &Option<String>

The name of your cluster.

source

pub fn issuer_url(self, input: impl Into<String>) -> Self

The URL of the OIDC identity provider that allows the API server to discover public signing keys for verifying tokens.

source

pub fn set_issuer_url(self, input: Option<String>) -> Self

The URL of the OIDC identity provider that allows the API server to discover public signing keys for verifying tokens.

source

pub fn get_issuer_url(&self) -> &Option<String>

The URL of the OIDC identity provider that allows the API server to discover public signing keys for verifying tokens.

source

pub fn client_id(self, input: impl Into<String>) -> Self

This is also known as audience. The ID of the client application that makes authentication requests to the OIDC identity provider.

source

pub fn set_client_id(self, input: Option<String>) -> Self

This is also known as audience. The ID of the client application that makes authentication requests to the OIDC identity provider.

source

pub fn get_client_id(&self) -> &Option<String>

This is also known as audience. The ID of the client application that makes authentication requests to the OIDC identity provider.

source

pub fn username_claim(self, input: impl Into<String>) -> Self

The JSON Web token (JWT) claim that is used as the username.

source

pub fn set_username_claim(self, input: Option<String>) -> Self

The JSON Web token (JWT) claim that is used as the username.

source

pub fn get_username_claim(&self) -> &Option<String>

The JSON Web token (JWT) claim that is used as the username.

source

pub fn username_prefix(self, input: impl Into<String>) -> Self

The prefix that is prepended to username claims to prevent clashes with existing names. The prefix can't contain system:

source

pub fn set_username_prefix(self, input: Option<String>) -> Self

The prefix that is prepended to username claims to prevent clashes with existing names. The prefix can't contain system:

source

pub fn get_username_prefix(&self) -> &Option<String>

The prefix that is prepended to username claims to prevent clashes with existing names. The prefix can't contain system:

source

pub fn groups_claim(self, input: impl Into<String>) -> Self

The JSON web token (JWT) claim that the provider uses to return your groups.

source

pub fn set_groups_claim(self, input: Option<String>) -> Self

The JSON web token (JWT) claim that the provider uses to return your groups.

source

pub fn get_groups_claim(&self) -> &Option<String>

The JSON web token (JWT) claim that the provider uses to return your groups.

source

pub fn groups_prefix(self, input: impl Into<String>) -> Self

The prefix that is prepended to group claims to prevent clashes with existing names (such as system: groups). For example, the value oidc: creates group names like oidc:engineering and oidc:infra. The prefix can't contain system:

source

pub fn set_groups_prefix(self, input: Option<String>) -> Self

The prefix that is prepended to group claims to prevent clashes with existing names (such as system: groups). For example, the value oidc: creates group names like oidc:engineering and oidc:infra. The prefix can't contain system:

source

pub fn get_groups_prefix(&self) -> &Option<String>

The prefix that is prepended to group claims to prevent clashes with existing names (such as system: groups). For example, the value oidc: creates group names like oidc:engineering and oidc:infra. The prefix can't contain system:

source

pub fn required_claims(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to required_claims.

To override the contents of this collection use set_required_claims.

The key-value pairs that describe required claims in the identity token. If set, each claim is verified to be present in the token with a matching value.

source

pub fn set_required_claims(self, input: Option<HashMap<String, String>>) -> Self

The key-value pairs that describe required claims in the identity token. If set, each claim is verified to be present in the token with a matching value.

source

pub fn get_required_claims(&self) -> &Option<HashMap<String, String>>

The key-value pairs that describe required claims in the identity token. If set, each claim is verified to be present in the token with a matching value.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.

source

pub fn status(self, input: ConfigStatus) -> Self

The status of the OIDC identity provider.

source

pub fn set_status(self, input: Option<ConfigStatus>) -> Self

The status of the OIDC identity provider.

source

pub fn get_status(&self) -> &Option<ConfigStatus>

The status of the OIDC identity provider.

source

pub fn build(self) -> OidcIdentityProviderConfig

Consumes the builder and constructs a OidcIdentityProviderConfig.

Trait Implementations§

source§

impl Clone for OidcIdentityProviderConfigBuilder

source§

fn clone(&self) -> OidcIdentityProviderConfigBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OidcIdentityProviderConfigBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for OidcIdentityProviderConfigBuilder

source§

fn default() -> OidcIdentityProviderConfigBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for OidcIdentityProviderConfigBuilder

source§

fn eq(&self, other: &OidcIdentityProviderConfigBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for OidcIdentityProviderConfigBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more