pub struct MergeDeveloperIdentities { /* private fields */ }
Expand description
Fluent builder constructing a request to MergeDeveloperIdentities
.
Merges two users having different IdentityId
s, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier
) with the IdentityId
of the DestinationUserIdentifier
. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.
The number of linked logins is limited to 20. So, the number of linked logins for the source user, SourceUserIdentifier
, and the destination user, DestinationUserIdentifier
, together should not be larger than 20. Otherwise, an exception will be thrown.
You must use AWS Developer credentials to call this API.
Implementations
sourceimpl MergeDeveloperIdentities
impl MergeDeveloperIdentities
sourcepub async fn send(
self
) -> Result<MergeDeveloperIdentitiesOutput, SdkError<MergeDeveloperIdentitiesError>>
pub async fn send(
self
) -> Result<MergeDeveloperIdentitiesOutput, SdkError<MergeDeveloperIdentitiesError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn source_user_identifier(self, input: impl Into<String>) -> Self
pub fn source_user_identifier(self, input: impl Into<String>) -> Self
User identifier for the source user. The value should be a DeveloperUserIdentifier
.
sourcepub fn set_source_user_identifier(self, input: Option<String>) -> Self
pub fn set_source_user_identifier(self, input: Option<String>) -> Self
User identifier for the source user. The value should be a DeveloperUserIdentifier
.
sourcepub fn destination_user_identifier(self, input: impl Into<String>) -> Self
pub fn destination_user_identifier(self, input: impl Into<String>) -> Self
User identifier for the destination user. The value should be a DeveloperUserIdentifier
.
sourcepub fn set_destination_user_identifier(self, input: Option<String>) -> Self
pub fn set_destination_user_identifier(self, input: Option<String>) -> Self
User identifier for the destination user. The value should be a DeveloperUserIdentifier
.
sourcepub fn developer_provider_name(self, input: impl Into<String>) -> Self
pub fn developer_provider_name(self, input: impl Into<String>) -> Self
The "domain" by which Cognito will refer to your users. This is a (pseudo) domain name that you provide while creating an identity pool. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName
, you can use letters as well as period (.), underscore (_), and dash (-).
sourcepub fn set_developer_provider_name(self, input: Option<String>) -> Self
pub fn set_developer_provider_name(self, input: Option<String>) -> Self
The "domain" by which Cognito will refer to your users. This is a (pseudo) domain name that you provide while creating an identity pool. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName
, you can use letters as well as period (.), underscore (_), and dash (-).
sourcepub fn identity_pool_id(self, input: impl Into<String>) -> Self
pub fn identity_pool_id(self, input: impl Into<String>) -> Self
An identity pool ID in the format REGION:GUID.
sourcepub fn set_identity_pool_id(self, input: Option<String>) -> Self
pub fn set_identity_pool_id(self, input: Option<String>) -> Self
An identity pool ID in the format REGION:GUID.
Trait Implementations
sourceimpl Clone for MergeDeveloperIdentities
impl Clone for MergeDeveloperIdentities
sourcefn clone(&self) -> MergeDeveloperIdentities
fn clone(&self) -> MergeDeveloperIdentities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MergeDeveloperIdentities
impl Send for MergeDeveloperIdentities
impl Sync for MergeDeveloperIdentities
impl Unpin for MergeDeveloperIdentities
impl !UnwindSafe for MergeDeveloperIdentities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more