amazonka-pinpoint-sms-voice-v2-2.0: Amazon Pinpoint SMS Voice V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Description

Creates a new event destination in a configuration set.

An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.

Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Kinesis Data Firehose destination.

Synopsis

Creating a Request

data CreateEventDestination Source #

See: newCreateEventDestination smart constructor.

Constructors

CreateEventDestination' 

Fields

Instances

Instances details
ToJSON CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

ToHeaders CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

ToPath CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

ToQuery CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

AWSRequest CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Associated Types

type AWSResponse CreateEventDestination #

Generic CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Associated Types

type Rep CreateEventDestination :: Type -> Type #

Read CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Show CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

NFData CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Methods

rnf :: CreateEventDestination -> () #

Eq CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Hashable CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

type AWSResponse CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

type Rep CreateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

type Rep CreateEventDestination = D1 ('MetaData "CreateEventDestination" "Amazonka.PinpointSmsVoiceV2.CreateEventDestination" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "CreateEventDestination'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "cloudWatchLogsDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CloudWatchLogsDestination)) :*: S1 ('MetaSel ('Just "kinesisFirehoseDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KinesisFirehoseDestination)))) :*: ((S1 ('MetaSel ('Just "snsDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnsDestination)) :*: S1 ('MetaSel ('Just "configurationSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "eventDestinationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "matchingEventTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty EventType))))))

newCreateEventDestination Source #

Create a value of CreateEventDestination 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:clientToken:CreateEventDestination', createEventDestination_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

CreateEventDestination, createEventDestination_cloudWatchLogsDestination - An object that contains information about an event destination for logging to Amazon CloudWatch logs.

CreateEventDestination, createEventDestination_kinesisFirehoseDestination - An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

CreateEventDestination, createEventDestination_snsDestination - An object that contains information about an event destination for logging to Amazon SNS.

CreateEventDestination, createEventDestination_configurationSetName - Either the name of the configuration set or the configuration set ARN to apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

CreateEventDestination, createEventDestination_eventDestinationName - The name that identifies the event destination.

CreateEventDestination, createEventDestination_matchingEventTypes - An array of event types that determine which events to log. If "ALL" is used, then Amazon Pinpoint logs every event type.

Request Lenses

createEventDestination_clientToken :: Lens' CreateEventDestination (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

createEventDestination_cloudWatchLogsDestination :: Lens' CreateEventDestination (Maybe CloudWatchLogsDestination) Source #

An object that contains information about an event destination for logging to Amazon CloudWatch logs.

createEventDestination_kinesisFirehoseDestination :: Lens' CreateEventDestination (Maybe KinesisFirehoseDestination) Source #

An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

createEventDestination_snsDestination :: Lens' CreateEventDestination (Maybe SnsDestination) Source #

An object that contains information about an event destination for logging to Amazon SNS.

createEventDestination_configurationSetName :: Lens' CreateEventDestination Text Source #

Either the name of the configuration set or the configuration set ARN to apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

createEventDestination_eventDestinationName :: Lens' CreateEventDestination Text Source #

The name that identifies the event destination.

createEventDestination_matchingEventTypes :: Lens' CreateEventDestination (NonEmpty EventType) Source #

An array of event types that determine which events to log. If "ALL" is used, then Amazon Pinpoint logs every event type.

Destructuring the Response

data CreateEventDestinationResponse Source #

See: newCreateEventDestinationResponse smart constructor.

Constructors

CreateEventDestinationResponse' 

Fields

Instances

Instances details
Generic CreateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Associated Types

type Rep CreateEventDestinationResponse :: Type -> Type #

Read CreateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Show CreateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

NFData CreateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

Eq CreateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

type Rep CreateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateEventDestination

type Rep CreateEventDestinationResponse = D1 ('MetaData "CreateEventDestinationResponse" "Amazonka.PinpointSmsVoiceV2.CreateEventDestination" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "CreateEventDestinationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "configurationSetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "configurationSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "eventDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventDestination)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateEventDestinationResponse Source #

Create a value of CreateEventDestinationResponse 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:

CreateEventDestinationResponse, createEventDestinationResponse_configurationSetArn - The ARN of the configuration set.

CreateEventDestination, createEventDestinationResponse_configurationSetName - The name of the configuration set.

$sel:eventDestination:CreateEventDestinationResponse', createEventDestinationResponse_eventDestination - The details of the destination where events are logged.

$sel:httpStatus:CreateEventDestinationResponse', createEventDestinationResponse_httpStatus - The response's http status code.

Response Lenses