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

Description

Creates a new opt-out list.

If the opt-out list name already exists, an Error is returned.

An opt-out list is a list of phone numbers that are opted out, meaning you can't send SMS or voice messages to them. If end user replies with the keyword "STOP," an entry for the phone number is added to the opt-out list. In addition to STOP, your recipients can use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported opt-out keywords, see SMS opt out in the Amazon Pinpoint User Guide.

Synopsis

Creating a Request

data CreateOptOutList Source #

See: newCreateOptOutList smart constructor.

Constructors

CreateOptOutList' 

Fields

  • clientToken :: Maybe Text

    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.

  • tags :: Maybe [Tag]

    An array of tags (key and value pairs) to associate with the new OptOutList.

  • optOutListName :: Text

    The name of the new OptOutList.

Instances

Instances details
ToJSON CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

ToHeaders CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

ToPath CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

ToQuery CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

AWSRequest CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Associated Types

type AWSResponse CreateOptOutList #

Generic CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Associated Types

type Rep CreateOptOutList :: Type -> Type #

Read CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Show CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

NFData CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Methods

rnf :: CreateOptOutList -> () #

Eq CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Hashable CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

type AWSResponse CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

type Rep CreateOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

type Rep CreateOptOutList = D1 ('MetaData "CreateOptOutList" "Amazonka.PinpointSmsVoiceV2.CreateOptOutList" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "CreateOptOutList'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "optOutListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateOptOutList Source #

Create a value of CreateOptOutList 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:CreateOptOutList', createOptOutList_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.

CreateOptOutList, createOptOutList_tags - An array of tags (key and value pairs) to associate with the new OptOutList.

CreateOptOutList, createOptOutList_optOutListName - The name of the new OptOutList.

Request Lenses

createOptOutList_clientToken :: Lens' CreateOptOutList (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.

createOptOutList_tags :: Lens' CreateOptOutList (Maybe [Tag]) Source #

An array of tags (key and value pairs) to associate with the new OptOutList.

Destructuring the Response

data CreateOptOutListResponse Source #

See: newCreateOptOutListResponse smart constructor.

Constructors

CreateOptOutListResponse' 

Fields

Instances

Instances details
Generic CreateOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Associated Types

type Rep CreateOptOutListResponse :: Type -> Type #

Read CreateOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Show CreateOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

NFData CreateOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

Eq CreateOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

type Rep CreateOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreateOptOutList

type Rep CreateOptOutListResponse = D1 ('MetaData "CreateOptOutListResponse" "Amazonka.PinpointSmsVoiceV2.CreateOptOutList" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "CreateOptOutListResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createdTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "optOutListArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "optOutListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateOptOutListResponse Source #

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

CreateOptOutListResponse, createOptOutListResponse_createdTimestamp - The time when the pool was created, in UNIX epoch time format.

CreateOptOutListResponse, createOptOutListResponse_optOutListArn - The Amazon Resource Name (ARN) for the OptOutList.

CreateOptOutList, createOptOutListResponse_optOutListName - The name of the new OptOutList.

CreateOptOutList, createOptOutListResponse_tags - An array of tags (key and value pairs) associated with the new OptOutList.

$sel:httpStatus:CreateOptOutListResponse', createOptOutListResponse_httpStatus - The response's http status code.

Response Lenses

createOptOutListResponse_optOutListArn :: Lens' CreateOptOutListResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) for the OptOutList.

createOptOutListResponse_tags :: Lens' CreateOptOutListResponse (Maybe [Tag]) Source #

An array of tags (key and value pairs) associated with the new OptOutList.