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

Description

Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are deleted.

If the specified opt-out list name doesn't exist or is in-use by an origination phone number or pool, an Error is returned.

Synopsis

Creating a Request

data DeleteOptOutList Source #

See: newDeleteOptOutList smart constructor.

Constructors

DeleteOptOutList' 

Fields

  • optOutListName :: Text

    The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

Instances

Instances details
ToJSON DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

ToHeaders DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

ToPath DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

ToQuery DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

AWSRequest DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Associated Types

type AWSResponse DeleteOptOutList #

Generic DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Associated Types

type Rep DeleteOptOutList :: Type -> Type #

Read DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Show DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

NFData DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Methods

rnf :: DeleteOptOutList -> () #

Eq DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Hashable DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

type AWSResponse DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

type Rep DeleteOptOutList Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

type Rep DeleteOptOutList = D1 ('MetaData "DeleteOptOutList" "Amazonka.PinpointSmsVoiceV2.DeleteOptOutList" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "DeleteOptOutList'" 'PrefixI 'True) (S1 ('MetaSel ('Just "optOutListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteOptOutList Source #

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

DeleteOptOutList, deleteOptOutList_optOutListName - The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

Request Lenses

deleteOptOutList_optOutListName :: Lens' DeleteOptOutList Text Source #

The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

Destructuring the Response

data DeleteOptOutListResponse Source #

See: newDeleteOptOutListResponse smart constructor.

Constructors

DeleteOptOutListResponse' 

Fields

Instances

Instances details
Generic DeleteOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Associated Types

type Rep DeleteOptOutListResponse :: Type -> Type #

Read DeleteOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Show DeleteOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

NFData DeleteOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

Eq DeleteOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

type Rep DeleteOptOutListResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.DeleteOptOutList

type Rep DeleteOptOutListResponse = D1 ('MetaData "DeleteOptOutListResponse" "Amazonka.PinpointSmsVoiceV2.DeleteOptOutList" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "DeleteOptOutListResponse'" '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 "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteOptOutListResponse Source #

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

DeleteOptOutListResponse, deleteOptOutListResponse_createdTimestamp - The time when the OptOutList was created, in UNIX epoch time format.

DeleteOptOutListResponse, deleteOptOutListResponse_optOutListArn - The Amazon Resource Name (ARN) of the OptOutList that was removed.

DeleteOptOutList, deleteOptOutListResponse_optOutListName - The name of the OptOutList that was removed.

$sel:httpStatus:DeleteOptOutListResponse', deleteOptOutListResponse_httpStatus - The response's http status code.

Response Lenses

deleteOptOutListResponse_optOutListArn :: Lens' DeleteOptOutListResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the OptOutList that was removed.