Struct aws_sdk_cognitosync::client::fluent_builders::SetCognitoEvents [−][src]
pub struct SetCognitoEvents<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to SetCognitoEvents
.
Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.
This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
Implementations
impl<C, M, R> SetCognitoEvents<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> SetCognitoEvents<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<SetCognitoEventsOutput, SdkError<SetCognitoEventsError>> where
R::Policy: SmithyRetryPolicy<SetCognitoEventsInputOperationOutputAlias, SetCognitoEventsOutput, SetCognitoEventsError, SetCognitoEventsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<SetCognitoEventsOutput, SdkError<SetCognitoEventsError>> where
R::Policy: SmithyRetryPolicy<SetCognitoEventsInputOperationOutputAlias, SetCognitoEventsOutput, SetCognitoEventsError, SetCognitoEventsInputOperationRetryAlias>,
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.
The Cognito Identity Pool to use when configuring Cognito Events
The Cognito Identity Pool to use when configuring Cognito Events
Adds a key-value pair to Events
.
To override the contents of this collection use set_events
.
The events to configure
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for SetCognitoEvents<C, M, R>
impl<C, M, R> Send for SetCognitoEvents<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for SetCognitoEvents<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for SetCognitoEvents<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for SetCognitoEvents<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more