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

Description

Sets the default message type on a configuration set.

Choose the category of SMS messages that you plan to send from this account. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.

Synopsis

Creating a Request

data SetDefaultMessageType Source #

See: newSetDefaultMessageType smart constructor.

Constructors

SetDefaultMessageType' 

Fields

  • configurationSetName :: Text

    The configuration set to update with a new default message type. This field can be the ConsigurationSetName or ConfigurationSetArn.

  • messageType :: MessageType

    The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

Instances

Instances details
ToJSON SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

ToHeaders SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

ToPath SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

ToQuery SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

AWSRequest SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Associated Types

type AWSResponse SetDefaultMessageType #

Generic SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Associated Types

type Rep SetDefaultMessageType :: Type -> Type #

Read SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Show SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

NFData SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Methods

rnf :: SetDefaultMessageType -> () #

Eq SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Hashable SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

type AWSResponse SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

type Rep SetDefaultMessageType Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

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

newSetDefaultMessageType Source #

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

SetDefaultMessageType, setDefaultMessageType_configurationSetName - The configuration set to update with a new default message type. This field can be the ConsigurationSetName or ConfigurationSetArn.

SetDefaultMessageType, setDefaultMessageType_messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

Request Lenses

setDefaultMessageType_configurationSetName :: Lens' SetDefaultMessageType Text Source #

The configuration set to update with a new default message type. This field can be the ConsigurationSetName or ConfigurationSetArn.

setDefaultMessageType_messageType :: Lens' SetDefaultMessageType MessageType Source #

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

Destructuring the Response

data SetDefaultMessageTypeResponse Source #

See: newSetDefaultMessageTypeResponse smart constructor.

Constructors

SetDefaultMessageTypeResponse' 

Fields

Instances

Instances details
Generic SetDefaultMessageTypeResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Associated Types

type Rep SetDefaultMessageTypeResponse :: Type -> Type #

Read SetDefaultMessageTypeResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Show SetDefaultMessageTypeResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

NFData SetDefaultMessageTypeResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

Eq SetDefaultMessageTypeResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

type Rep SetDefaultMessageTypeResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType

type Rep SetDefaultMessageTypeResponse = D1 ('MetaData "SetDefaultMessageTypeResponse" "Amazonka.PinpointSmsVoiceV2.SetDefaultMessageType" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "SetDefaultMessageTypeResponse'" '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 "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSetDefaultMessageTypeResponse Source #

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

SetDefaultMessageTypeResponse, setDefaultMessageTypeResponse_configurationSetArn - The Amazon Resource Name (ARN) of the updated configuration set.

SetDefaultMessageType, setDefaultMessageTypeResponse_configurationSetName - The name of the configuration set that was updated.

SetDefaultMessageType, setDefaultMessageTypeResponse_messageType - The new default message type of the configuration set.

$sel:httpStatus:SetDefaultMessageTypeResponse', setDefaultMessageTypeResponse_httpStatus - The response's http status code.

Response Lenses

setDefaultMessageTypeResponse_configurationSetArn :: Lens' SetDefaultMessageTypeResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the updated configuration set.