Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 #
Instances
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:
$sel:identityPoolId: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.
Instances
Eq SetCognitoEventsResponse Source # | |
Defined in Amazonka.CognitoSync.SetCognitoEvents | |
Read SetCognitoEventsResponse Source # | |
Show SetCognitoEventsResponse Source # | |
Defined in Amazonka.CognitoSync.SetCognitoEvents showsPrec :: Int -> SetCognitoEventsResponse -> ShowS # show :: SetCognitoEventsResponse -> String # showList :: [SetCognitoEventsResponse] -> ShowS # | |
Generic SetCognitoEventsResponse Source # | |
Defined in Amazonka.CognitoSync.SetCognitoEvents type Rep SetCognitoEventsResponse :: Type -> Type # | |
NFData SetCognitoEventsResponse Source # | |
Defined in Amazonka.CognitoSync.SetCognitoEvents rnf :: SetCognitoEventsResponse -> () # | |
type Rep SetCognitoEventsResponse Source # | |
Defined in Amazonka.CognitoSync.SetCognitoEvents |
newSetCognitoEventsResponse :: SetCognitoEventsResponse Source #
Create a value of SetCognitoEventsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.