| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoSync.SetCognitoEvents
Description
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.
Synopsis
- data SetCognitoEvents = SetCognitoEvents' {}
- newSetCognitoEvents :: Text -> SetCognitoEvents
- setCognitoEvents_identityPoolId :: Lens' SetCognitoEvents Text
- setCognitoEvents_events :: Lens' SetCognitoEvents (HashMap Text Text)
- data SetCognitoEventsResponse = SetCognitoEventsResponse' {
- newSetCognitoEventsResponse :: SetCognitoEventsResponse
Creating a Request
data SetCognitoEvents Source #
Constructors
| SetCognitoEvents' | |
Instances
Arguments
| :: Text | |
| -> SetCognitoEvents |
Create a value of SetCognitoEvents with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
SetCognitoEvents, setCognitoEvents_identityPoolId - The Cognito Identity Pool to use when configuring Cognito Events
$sel:events:SetCognitoEvents', setCognitoEvents_events - The events to configure
Request Lenses
setCognitoEvents_identityPoolId :: Lens' SetCognitoEvents Text Source #
The Cognito Identity Pool to use when configuring Cognito Events
setCognitoEvents_events :: Lens' SetCognitoEvents (HashMap Text Text) Source #
The events to configure
Destructuring the Response
data SetCognitoEventsResponse Source #
See: newSetCognitoEventsResponse smart constructor.
Constructors
| SetCognitoEventsResponse' | |
Instances
newSetCognitoEventsResponse :: SetCognitoEventsResponse Source #
Create a value of SetCognitoEventsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.