| 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 |
Amazonka.SSMContacts.ActivateContactChannel
Description
Activates a contact's contact channel. Incident Manager can't engage a contact until the contact channel has been activated.
Synopsis
- data ActivateContactChannel = ActivateContactChannel' {}
- newActivateContactChannel :: Text -> Text -> ActivateContactChannel
- activateContactChannel_contactChannelId :: Lens' ActivateContactChannel Text
- activateContactChannel_activationCode :: Lens' ActivateContactChannel Text
- data ActivateContactChannelResponse = ActivateContactChannelResponse' {
- httpStatus :: Int
- newActivateContactChannelResponse :: Int -> ActivateContactChannelResponse
- activateContactChannelResponse_httpStatus :: Lens' ActivateContactChannelResponse Int
Creating a Request
data ActivateContactChannel Source #
See: newActivateContactChannel smart constructor.
Constructors
| ActivateContactChannel' | |
Fields
| |
Instances
newActivateContactChannel Source #
Arguments
| :: Text | |
| -> Text | |
| -> ActivateContactChannel |
Create a value of ActivateContactChannel 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:
ActivateContactChannel, activateContactChannel_contactChannelId - The Amazon Resource Name (ARN) of the contact channel.
$sel:activationCode:ActivateContactChannel', activateContactChannel_activationCode - The code sent to the contact channel when it was created in the contact.
Request Lenses
activateContactChannel_contactChannelId :: Lens' ActivateContactChannel Text Source #
The Amazon Resource Name (ARN) of the contact channel.
activateContactChannel_activationCode :: Lens' ActivateContactChannel Text Source #
The code sent to the contact channel when it was created in the contact.
Destructuring the Response
data ActivateContactChannelResponse Source #
See: newActivateContactChannelResponse smart constructor.
Constructors
| ActivateContactChannelResponse' | |
Fields
| |
Instances
newActivateContactChannelResponse Source #
Create a value of ActivateContactChannelResponse 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:ActivateContactChannelResponse', activateContactChannelResponse_httpStatus - The response's http status code.
Response Lenses
activateContactChannelResponse_httpStatus :: Lens' ActivateContactChannelResponse Int Source #
The response's http status code.