#[non_exhaustive]pub struct IdentityProviderDetailsBuilder { /* private fields */ }
Expand description
A builder for IdentityProviderDetails
.
Implementations§
source§impl IdentityProviderDetailsBuilder
impl IdentityProviderDetailsBuilder
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
Provides the location of the service endpoint used to authenticate users.
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
Provides the location of the service endpoint used to authenticate users.
sourcepub fn get_url(&self) -> &Option<String>
pub fn get_url(&self) -> &Option<String>
Provides the location of the service endpoint used to authenticate users.
sourcepub fn invocation_role(self, input: impl Into<String>) -> Self
pub fn invocation_role(self, input: impl Into<String>) -> Self
This parameter is only applicable if your IdentityProviderType
is API_GATEWAY
. Provides the type of InvocationRole
used to authenticate the user account.
sourcepub fn set_invocation_role(self, input: Option<String>) -> Self
pub fn set_invocation_role(self, input: Option<String>) -> Self
This parameter is only applicable if your IdentityProviderType
is API_GATEWAY
. Provides the type of InvocationRole
used to authenticate the user account.
sourcepub fn get_invocation_role(&self) -> &Option<String>
pub fn get_invocation_role(&self) -> &Option<String>
This parameter is only applicable if your IdentityProviderType
is API_GATEWAY
. Provides the type of InvocationRole
used to authenticate the user account.
sourcepub fn directory_id(self, input: impl Into<String>) -> Self
pub fn directory_id(self, input: impl Into<String>) -> Self
The identifier of the Directory Service directory that you want to use as your identity provider.
sourcepub fn set_directory_id(self, input: Option<String>) -> Self
pub fn set_directory_id(self, input: Option<String>) -> Self
The identifier of the Directory Service directory that you want to use as your identity provider.
sourcepub fn get_directory_id(&self) -> &Option<String>
pub fn get_directory_id(&self) -> &Option<String>
The identifier of the Directory Service directory that you want to use as your identity provider.
sourcepub fn function(self, input: impl Into<String>) -> Self
pub fn function(self, input: impl Into<String>) -> Self
The ARN for a Lambda function to use for the Identity provider.
sourcepub fn set_function(self, input: Option<String>) -> Self
pub fn set_function(self, input: Option<String>) -> Self
The ARN for a Lambda function to use for the Identity provider.
sourcepub fn get_function(&self) -> &Option<String>
pub fn get_function(&self) -> &Option<String>
The ARN for a Lambda function to use for the Identity provider.
sourcepub fn sftp_authentication_methods(
self,
input: SftpAuthenticationMethods,
) -> Self
pub fn sftp_authentication_methods( self, input: SftpAuthenticationMethods, ) -> Self
For SFTP-enabled servers, and for custom identity providers only, you can specify whether to authenticate using a password, SSH key pair, or both.
-
PASSWORD
- users must provide their password to connect. -
PUBLIC_KEY
- users must provide their private key to connect. -
PUBLIC_KEY_OR_PASSWORD
- users can authenticate with either their password or their key. This is the default value. -
PUBLIC_KEY_AND_PASSWORD
- users must provide both their private key and their password to connect. The server checks the key first, and then if the key is valid, the system prompts for a password. If the private key provided does not match the public key that is stored, authentication fails.
sourcepub fn set_sftp_authentication_methods(
self,
input: Option<SftpAuthenticationMethods>,
) -> Self
pub fn set_sftp_authentication_methods( self, input: Option<SftpAuthenticationMethods>, ) -> Self
For SFTP-enabled servers, and for custom identity providers only, you can specify whether to authenticate using a password, SSH key pair, or both.
-
PASSWORD
- users must provide their password to connect. -
PUBLIC_KEY
- users must provide their private key to connect. -
PUBLIC_KEY_OR_PASSWORD
- users can authenticate with either their password or their key. This is the default value. -
PUBLIC_KEY_AND_PASSWORD
- users must provide both their private key and their password to connect. The server checks the key first, and then if the key is valid, the system prompts for a password. If the private key provided does not match the public key that is stored, authentication fails.
sourcepub fn get_sftp_authentication_methods(
&self,
) -> &Option<SftpAuthenticationMethods>
pub fn get_sftp_authentication_methods( &self, ) -> &Option<SftpAuthenticationMethods>
For SFTP-enabled servers, and for custom identity providers only, you can specify whether to authenticate using a password, SSH key pair, or both.
-
PASSWORD
- users must provide their password to connect. -
PUBLIC_KEY
- users must provide their private key to connect. -
PUBLIC_KEY_OR_PASSWORD
- users can authenticate with either their password or their key. This is the default value. -
PUBLIC_KEY_AND_PASSWORD
- users must provide both their private key and their password to connect. The server checks the key first, and then if the key is valid, the system prompts for a password. If the private key provided does not match the public key that is stored, authentication fails.
sourcepub fn build(self) -> IdentityProviderDetails
pub fn build(self) -> IdentityProviderDetails
Consumes the builder and constructs a IdentityProviderDetails
.
Trait Implementations§
source§impl Clone for IdentityProviderDetailsBuilder
impl Clone for IdentityProviderDetailsBuilder
source§fn clone(&self) -> IdentityProviderDetailsBuilder
fn clone(&self) -> IdentityProviderDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for IdentityProviderDetailsBuilder
impl Default for IdentityProviderDetailsBuilder
source§fn default() -> IdentityProviderDetailsBuilder
fn default() -> IdentityProviderDetailsBuilder
source§impl PartialEq for IdentityProviderDetailsBuilder
impl PartialEq for IdentityProviderDetailsBuilder
source§fn eq(&self, other: &IdentityProviderDetailsBuilder) -> bool
fn eq(&self, other: &IdentityProviderDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IdentityProviderDetailsBuilder
Auto Trait Implementations§
impl Freeze for IdentityProviderDetailsBuilder
impl RefUnwindSafe for IdentityProviderDetailsBuilder
impl Send for IdentityProviderDetailsBuilder
impl Sync for IdentityProviderDetailsBuilder
impl Unpin for IdentityProviderDetailsBuilder
impl UnwindSafe for IdentityProviderDetailsBuilder
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> 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