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 |
Create an event destination. In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.
A single configuration set can include more than one event destination.
Synopsis
- data CreateConfigurationSetEventDestination = CreateConfigurationSetEventDestination' {}
- newCreateConfigurationSetEventDestination :: Text -> Text -> EventDestinationDefinition -> CreateConfigurationSetEventDestination
- createConfigurationSetEventDestination_configurationSetName :: Lens' CreateConfigurationSetEventDestination Text
- createConfigurationSetEventDestination_eventDestinationName :: Lens' CreateConfigurationSetEventDestination Text
- createConfigurationSetEventDestination_eventDestination :: Lens' CreateConfigurationSetEventDestination EventDestinationDefinition
- data CreateConfigurationSetEventDestinationResponse = CreateConfigurationSetEventDestinationResponse' {
- httpStatus :: Int
- newCreateConfigurationSetEventDestinationResponse :: Int -> CreateConfigurationSetEventDestinationResponse
- createConfigurationSetEventDestinationResponse_httpStatus :: Lens' CreateConfigurationSetEventDestinationResponse Int
Creating a Request
data CreateConfigurationSetEventDestination Source #
A request to add an event destination to a configuration set.
See: newCreateConfigurationSetEventDestination
smart constructor.
CreateConfigurationSetEventDestination' | |
|
Instances
newCreateConfigurationSetEventDestination Source #
Create a value of CreateConfigurationSetEventDestination
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:configurationSetName:CreateConfigurationSetEventDestination'
, createConfigurationSetEventDestination_configurationSetName
- The name of the configuration set that you want to add an event
destination to.
$sel:eventDestinationName:CreateConfigurationSetEventDestination'
, createConfigurationSetEventDestination_eventDestinationName
- A name that identifies the event destination within the configuration
set.
$sel:eventDestination:CreateConfigurationSetEventDestination'
, createConfigurationSetEventDestination_eventDestination
- An object that defines the event destination.
Request Lenses
createConfigurationSetEventDestination_configurationSetName :: Lens' CreateConfigurationSetEventDestination Text Source #
The name of the configuration set that you want to add an event destination to.
createConfigurationSetEventDestination_eventDestinationName :: Lens' CreateConfigurationSetEventDestination Text Source #
A name that identifies the event destination within the configuration set.
createConfigurationSetEventDestination_eventDestination :: Lens' CreateConfigurationSetEventDestination EventDestinationDefinition Source #
An object that defines the event destination.
Destructuring the Response
data CreateConfigurationSetEventDestinationResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newCreateConfigurationSetEventDestinationResponse
smart constructor.
CreateConfigurationSetEventDestinationResponse' | |
|
Instances
Eq CreateConfigurationSetEventDestinationResponse Source # | |
Read CreateConfigurationSetEventDestinationResponse Source # | |
Show CreateConfigurationSetEventDestinationResponse Source # | |
Generic CreateConfigurationSetEventDestinationResponse Source # | |
NFData CreateConfigurationSetEventDestinationResponse Source # | |
type Rep CreateConfigurationSetEventDestinationResponse Source # | |
Defined in Amazonka.PinpointEmail.CreateConfigurationSetEventDestination type Rep CreateConfigurationSetEventDestinationResponse = D1 ('MetaData "CreateConfigurationSetEventDestinationResponse" "Amazonka.PinpointEmail.CreateConfigurationSetEventDestination" "libZSservicesZSamazonka-pinpoint-emailZSamazonka-pinpoint-email" 'False) (C1 ('MetaCons "CreateConfigurationSetEventDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateConfigurationSetEventDestinationResponse Source #
:: Int |
|
-> CreateConfigurationSetEventDestinationResponse |
Create a value of CreateConfigurationSetEventDestinationResponse
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:httpStatus:CreateConfigurationSetEventDestinationResponse'
, createConfigurationSetEventDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
createConfigurationSetEventDestinationResponse_httpStatus :: Lens' CreateConfigurationSetEventDestinationResponse Int Source #
The response's http status code.