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.UpdateEventDestination

Description

Updates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can also enable or disable the event destination.

You may want to update an event destination to change its matching event types or updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.

Synopsis

Creating a Request

data UpdateEventDestination Source #

See: newUpdateEventDestination smart constructor.

Constructors

UpdateEventDestination' 

Fields

Instances

Instances details
ToJSON UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

ToHeaders UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

ToPath UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

ToQuery UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

AWSRequest UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Associated Types

type AWSResponse UpdateEventDestination #

Generic UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Associated Types

type Rep UpdateEventDestination :: Type -> Type #

Read UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Show UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

NFData UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Methods

rnf :: UpdateEventDestination -> () #

Eq UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Hashable UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

type AWSResponse UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

type Rep UpdateEventDestination Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

type Rep UpdateEventDestination = D1 ('MetaData "UpdateEventDestination" "Amazonka.PinpointSmsVoiceV2.UpdateEventDestination" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "UpdateEventDestination'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cloudWatchLogsDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CloudWatchLogsDestination)) :*: (S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "kinesisFirehoseDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KinesisFirehoseDestination)))) :*: ((S1 ('MetaSel ('Just "matchingEventTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty EventType))) :*: 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)))))

newUpdateEventDestination Source #

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

UpdateEventDestination, updateEventDestination_cloudWatchLogsDestination - An object that contains information about an event destination that sends data to CloudWatch Logs.

UpdateEventDestination, updateEventDestination_enabled - When set to true logging is enabled.

UpdateEventDestination, updateEventDestination_kinesisFirehoseDestination - An object that contains information about an event destination for logging to Kinesis Data Firehose.

UpdateEventDestination, updateEventDestination_matchingEventTypes - An array of event types that determine which events to log.

UpdateEventDestination, updateEventDestination_snsDestination - An object that contains information about an event destination that sends data to Amazon SNS.

UpdateEventDestination, updateEventDestination_configurationSetName - The configuration set to update with the new event destination. Valid values for this can be the ConfigurationSetName or ConfigurationSetArn.

UpdateEventDestination, updateEventDestination_eventDestinationName - The name to use for the event destination.

Request Lenses

updateEventDestination_cloudWatchLogsDestination :: Lens' UpdateEventDestination (Maybe CloudWatchLogsDestination) Source #

An object that contains information about an event destination that sends data to CloudWatch Logs.

updateEventDestination_kinesisFirehoseDestination :: Lens' UpdateEventDestination (Maybe KinesisFirehoseDestination) Source #

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

updateEventDestination_matchingEventTypes :: Lens' UpdateEventDestination (Maybe (NonEmpty EventType)) Source #

An array of event types that determine which events to log.

updateEventDestination_snsDestination :: Lens' UpdateEventDestination (Maybe SnsDestination) Source #

An object that contains information about an event destination that sends data to Amazon SNS.

updateEventDestination_configurationSetName :: Lens' UpdateEventDestination Text Source #

The configuration set to update with the new event destination. Valid values for this can be the ConfigurationSetName or ConfigurationSetArn.

Destructuring the Response

data UpdateEventDestinationResponse Source #

See: newUpdateEventDestinationResponse smart constructor.

Constructors

UpdateEventDestinationResponse' 

Fields

Instances

Instances details
Generic UpdateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Associated Types

type Rep UpdateEventDestinationResponse :: Type -> Type #

Read UpdateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Show UpdateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

NFData UpdateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

Eq UpdateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

type Rep UpdateEventDestinationResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdateEventDestination

type Rep UpdateEventDestinationResponse = D1 ('MetaData "UpdateEventDestinationResponse" "Amazonka.PinpointSmsVoiceV2.UpdateEventDestination" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "UpdateEventDestinationResponse'" '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))))

newUpdateEventDestinationResponse Source #

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

UpdateEventDestinationResponse, updateEventDestinationResponse_configurationSetArn - The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.

UpdateEventDestination, updateEventDestinationResponse_configurationSetName - The name of the configuration set.

$sel:eventDestination:UpdateEventDestinationResponse', updateEventDestinationResponse_eventDestination - An EventDestination object containing the details of where events will be logged.

$sel:httpStatus:UpdateEventDestinationResponse', updateEventDestinationResponse_httpStatus - The response's http status code.

Response Lenses

updateEventDestinationResponse_configurationSetArn :: Lens' UpdateEventDestinationResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.

updateEventDestinationResponse_eventDestination :: Lens' UpdateEventDestinationResponse (Maybe EventDestination) Source #

An EventDestination object containing the details of where events will be logged.