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 |
A contact channel is the method that Incident Manager uses to engage your contact.
Synopsis
- data CreateContactChannel = CreateContactChannel' {}
- newCreateContactChannel :: Text -> Text -> ChannelType -> ContactChannelAddress -> CreateContactChannel
- createContactChannel_deferActivation :: Lens' CreateContactChannel (Maybe Bool)
- createContactChannel_idempotencyToken :: Lens' CreateContactChannel (Maybe Text)
- createContactChannel_contactId :: Lens' CreateContactChannel Text
- createContactChannel_name :: Lens' CreateContactChannel Text
- createContactChannel_type :: Lens' CreateContactChannel ChannelType
- createContactChannel_deliveryAddress :: Lens' CreateContactChannel ContactChannelAddress
- data CreateContactChannelResponse = CreateContactChannelResponse' {}
- newCreateContactChannelResponse :: Int -> Text -> CreateContactChannelResponse
- createContactChannelResponse_httpStatus :: Lens' CreateContactChannelResponse Int
- createContactChannelResponse_contactChannelArn :: Lens' CreateContactChannelResponse Text
Creating a Request
data CreateContactChannel Source #
See: newCreateContactChannel
smart constructor.
CreateContactChannel' | |
|
Instances
newCreateContactChannel Source #
:: Text | |
-> Text | |
-> ChannelType | |
-> ContactChannelAddress | |
-> CreateContactChannel |
Create a value of CreateContactChannel
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:deferActivation:CreateContactChannel'
, createContactChannel_deferActivation
- If you want to activate the channel at a later time, you can choose to
defer activation. Incident Manager can't engage your contact channel
until it has been activated.
$sel:idempotencyToken:CreateContactChannel'
, createContactChannel_idempotencyToken
- A token ensuring that the operation is called only once with the
specified details.
CreateContactChannel
, createContactChannel_contactId
- The Amazon Resource Name (ARN) of the contact you are adding the contact
channel to.
CreateContactChannel
, createContactChannel_name
- The name of the contact channel.
CreateContactChannel
, createContactChannel_type
- Incident Manager supports three types of contact channels:
SMS
VOICE
EMAIL
CreateContactChannel
, createContactChannel_deliveryAddress
- The details that Incident Manager uses when trying to engage the contact
channel. The format is dependent on the type of the contact channel. The
following are the expected formats:
- SMS - '+' followed by the country code and phone number
- VOICE - '+' followed by the country code and phone number
- EMAIL - any standard email format
Request Lenses
createContactChannel_deferActivation :: Lens' CreateContactChannel (Maybe Bool) Source #
If you want to activate the channel at a later time, you can choose to defer activation. Incident Manager can't engage your contact channel until it has been activated.
createContactChannel_idempotencyToken :: Lens' CreateContactChannel (Maybe Text) Source #
A token ensuring that the operation is called only once with the specified details.
createContactChannel_contactId :: Lens' CreateContactChannel Text Source #
The Amazon Resource Name (ARN) of the contact you are adding the contact channel to.
createContactChannel_name :: Lens' CreateContactChannel Text Source #
The name of the contact channel.
createContactChannel_type :: Lens' CreateContactChannel ChannelType Source #
Incident Manager supports three types of contact channels:
SMS
VOICE
EMAIL
createContactChannel_deliveryAddress :: Lens' CreateContactChannel ContactChannelAddress Source #
The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the type of the contact channel. The following are the expected formats:
- SMS - '+' followed by the country code and phone number
- VOICE - '+' followed by the country code and phone number
- EMAIL - any standard email format
Destructuring the Response
data CreateContactChannelResponse Source #
See: newCreateContactChannelResponse
smart constructor.
CreateContactChannelResponse' | |
|
Instances
newCreateContactChannelResponse Source #
:: Int | |
-> Text | |
-> CreateContactChannelResponse |
Create a value of CreateContactChannelResponse
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:httpStatus:CreateContactChannelResponse'
, createContactChannelResponse_httpStatus
- The response's http status code.
CreateContactChannelResponse
, createContactChannelResponse_contactChannelArn
- The Amazon Resource Name (ARN) of the contact channel.
Response Lenses
createContactChannelResponse_httpStatus :: Lens' CreateContactChannelResponse Int Source #
The response's http status code.
createContactChannelResponse_contactChannelArn :: Lens' CreateContactChannelResponse Text Source #
The Amazon Resource Name (ARN) of the contact channel.