Struct aws_sdk_verifiedpermissions::operation::create_identity_source::builders::CreateIdentitySourceInputBuilder
source · #[non_exhaustive]pub struct CreateIdentitySourceInputBuilder { /* private fields */ }
Expand description
A builder for CreateIdentitySourceInput
.
Implementations§
source§impl CreateIdentitySourceInputBuilder
impl CreateIdentitySourceInputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails with an IdempotentParameterMismatch
error.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails with an IdempotentParameterMismatch
error.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails with an IdempotentParameterMismatch
error.
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy store in which you want to store this identity source. Only policies and requests made using this policy store can reference identities from the identity provider configured in the new identity source.
sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
Specifies the ID of the policy store in which you want to store this identity source. Only policies and requests made using this policy store can reference identities from the identity provider configured in the new identity source.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
Specifies the ID of the policy store in which you want to store this identity source. Only policies and requests made using this policy store can reference identities from the identity provider configured in the new identity source.
sourcepub fn configuration(self, input: Configuration) -> Self
pub fn configuration(self, input: Configuration) -> Self
Specifies the details required to communicate with the identity provider (IdP) associated with this identity source.
At this time, the only valid member of this structure is a Amazon Cognito user pool configuration.
You must specify a UserPoolArn
, and optionally, a ClientId
.
sourcepub fn set_configuration(self, input: Option<Configuration>) -> Self
pub fn set_configuration(self, input: Option<Configuration>) -> Self
Specifies the details required to communicate with the identity provider (IdP) associated with this identity source.
At this time, the only valid member of this structure is a Amazon Cognito user pool configuration.
You must specify a UserPoolArn
, and optionally, a ClientId
.
sourcepub fn get_configuration(&self) -> &Option<Configuration>
pub fn get_configuration(&self) -> &Option<Configuration>
Specifies the details required to communicate with the identity provider (IdP) associated with this identity source.
At this time, the only valid member of this structure is a Amazon Cognito user pool configuration.
You must specify a UserPoolArn
, and optionally, a ClientId
.
sourcepub fn principal_entity_type(self, input: impl Into<String>) -> Self
pub fn principal_entity_type(self, input: impl Into<String>) -> Self
Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source.
sourcepub fn set_principal_entity_type(self, input: Option<String>) -> Self
pub fn set_principal_entity_type(self, input: Option<String>) -> Self
Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source.
sourcepub fn get_principal_entity_type(&self) -> &Option<String>
pub fn get_principal_entity_type(&self) -> &Option<String>
Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source.
sourcepub fn build(self) -> Result<CreateIdentitySourceInput, BuildError>
pub fn build(self) -> Result<CreateIdentitySourceInput, BuildError>
Consumes the builder and constructs a CreateIdentitySourceInput
.
source§impl CreateIdentitySourceInputBuilder
impl CreateIdentitySourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateIdentitySourceOutput, SdkError<CreateIdentitySourceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateIdentitySourceOutput, SdkError<CreateIdentitySourceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateIdentitySourceInputBuilder
impl Clone for CreateIdentitySourceInputBuilder
source§fn clone(&self) -> CreateIdentitySourceInputBuilder
fn clone(&self) -> CreateIdentitySourceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateIdentitySourceInputBuilder
impl Default for CreateIdentitySourceInputBuilder
source§fn default() -> CreateIdentitySourceInputBuilder
fn default() -> CreateIdentitySourceInputBuilder
source§impl PartialEq for CreateIdentitySourceInputBuilder
impl PartialEq for CreateIdentitySourceInputBuilder
source§fn eq(&self, other: &CreateIdentitySourceInputBuilder) -> bool
fn eq(&self, other: &CreateIdentitySourceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.