Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Starts an engagement to a contact or escalation plan. The engagement engages each contact specified in the incident.
Synopsis
- data StartEngagement = StartEngagement' {
- idempotencyToken :: Maybe Text
- publicSubject :: Maybe Text
- publicContent :: Maybe Text
- incidentId :: Maybe Text
- contactId :: Text
- sender :: Text
- subject :: Text
- content :: Text
- newStartEngagement :: Text -> Text -> Text -> Text -> StartEngagement
- startEngagement_idempotencyToken :: Lens' StartEngagement (Maybe Text)
- startEngagement_publicSubject :: Lens' StartEngagement (Maybe Text)
- startEngagement_publicContent :: Lens' StartEngagement (Maybe Text)
- startEngagement_incidentId :: Lens' StartEngagement (Maybe Text)
- startEngagement_contactId :: Lens' StartEngagement Text
- startEngagement_sender :: Lens' StartEngagement Text
- startEngagement_subject :: Lens' StartEngagement Text
- startEngagement_content :: Lens' StartEngagement Text
- data StartEngagementResponse = StartEngagementResponse' {
- httpStatus :: Int
- engagementArn :: Text
- newStartEngagementResponse :: Int -> Text -> StartEngagementResponse
- startEngagementResponse_httpStatus :: Lens' StartEngagementResponse Int
- startEngagementResponse_engagementArn :: Lens' StartEngagementResponse Text
Creating a Request
data StartEngagement Source #
See: newStartEngagement
smart constructor.
StartEngagement' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> StartEngagement |
Create a value of StartEngagement
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:idempotencyToken:StartEngagement'
, startEngagement_idempotencyToken
- A token ensuring that the operation is called only once with the
specified details.
$sel:publicSubject:StartEngagement'
, startEngagement_publicSubject
- The insecure subject of the message that was sent to the contact. Use
this field for engagements to SMS
.
$sel:publicContent:StartEngagement'
, startEngagement_publicContent
- The insecure content of the message that was sent to the contact. Use
this field for engagements to SMS
.
$sel:incidentId:StartEngagement'
, startEngagement_incidentId
- The ARN of the incident that the engagement is part of.
$sel:contactId:StartEngagement'
, startEngagement_contactId
- The Amazon Resource Name (ARN) of the contact being engaged.
$sel:sender:StartEngagement'
, startEngagement_sender
- The user that started the engagement.
$sel:subject:StartEngagement'
, startEngagement_subject
- The secure subject of the message that was sent to the contact. Use this
field for engagements to VOICE
or EMAIL
.
$sel:content:StartEngagement'
, startEngagement_content
- The secure content of the message that was sent to the contact. Use this
field for engagements to VOICE
or EMAIL
.
Request Lenses
startEngagement_idempotencyToken :: Lens' StartEngagement (Maybe Text) Source #
A token ensuring that the operation is called only once with the specified details.
startEngagement_publicSubject :: Lens' StartEngagement (Maybe Text) Source #
The insecure subject of the message that was sent to the contact. Use
this field for engagements to SMS
.
startEngagement_publicContent :: Lens' StartEngagement (Maybe Text) Source #
The insecure content of the message that was sent to the contact. Use
this field for engagements to SMS
.
startEngagement_incidentId :: Lens' StartEngagement (Maybe Text) Source #
The ARN of the incident that the engagement is part of.
startEngagement_contactId :: Lens' StartEngagement Text Source #
The Amazon Resource Name (ARN) of the contact being engaged.
startEngagement_sender :: Lens' StartEngagement Text Source #
The user that started the engagement.
startEngagement_subject :: Lens' StartEngagement Text Source #
The secure subject of the message that was sent to the contact. Use this
field for engagements to VOICE
or EMAIL
.
startEngagement_content :: Lens' StartEngagement Text Source #
The secure content of the message that was sent to the contact. Use this
field for engagements to VOICE
or EMAIL
.
Destructuring the Response
data StartEngagementResponse Source #
See: newStartEngagementResponse
smart constructor.
StartEngagementResponse' | |
|
Instances
newStartEngagementResponse Source #
:: Int | |
-> Text | |
-> StartEngagementResponse |
Create a value of StartEngagementResponse
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:StartEngagementResponse'
, startEngagementResponse_httpStatus
- The response's http status code.
$sel:engagementArn:StartEngagementResponse'
, startEngagementResponse_engagementArn
- The ARN of the engagement.
Response Lenses
startEngagementResponse_httpStatus :: Lens' StartEngagementResponse Int Source #
The response's http status code.
startEngagementResponse_engagementArn :: Lens' StartEngagementResponse Text Source #
The ARN of the engagement.