Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data SetDefaultMessageType = SetDefaultMessageType' {}
- newSetDefaultMessageType :: Text -> MessageType -> SetDefaultMessageType
- setDefaultMessageType_configurationSetName :: Lens' SetDefaultMessageType Text
- setDefaultMessageType_messageType :: Lens' SetDefaultMessageType MessageType
- data SetDefaultMessageTypeResponse = SetDefaultMessageTypeResponse' {}
- newSetDefaultMessageTypeResponse :: Int -> SetDefaultMessageTypeResponse
- setDefaultMessageTypeResponse_configurationSetArn :: Lens' SetDefaultMessageTypeResponse (Maybe Text)
- setDefaultMessageTypeResponse_configurationSetName :: Lens' SetDefaultMessageTypeResponse (Maybe Text)
- setDefaultMessageTypeResponse_messageType :: Lens' SetDefaultMessageTypeResponse (Maybe MessageType)
- setDefaultMessageTypeResponse_httpStatus :: Lens' SetDefaultMessageTypeResponse Int
Creating a Request
data SetDefaultMessageType Source #
See: newSetDefaultMessageType
smart constructor.
SetDefaultMessageType' | |
|
Instances
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.
SetDefaultMessageTypeResponse' | |
|
Instances
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.
setDefaultMessageTypeResponse_configurationSetName :: Lens' SetDefaultMessageTypeResponse (Maybe Text) Source #
The name of the configuration set that was updated.
setDefaultMessageTypeResponse_messageType :: Lens' SetDefaultMessageTypeResponse (Maybe MessageType) Source #
The new default message type of the configuration set.
setDefaultMessageTypeResponse_httpStatus :: Lens' SetDefaultMessageTypeResponse Int Source #
The response's http status code.