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 |
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
- incidentId :: Maybe Text
- publicContent :: Maybe Text
- publicSubject :: Maybe Text
- contactId :: Text
- sender :: Text
- subject :: Text
- content :: Text
- newStartEngagement :: Text -> Text -> Text -> Text -> StartEngagement
- startEngagement_idempotencyToken :: Lens' StartEngagement (Maybe Text)
- startEngagement_incidentId :: Lens' StartEngagement (Maybe Text)
- startEngagement_publicContent :: Lens' StartEngagement (Maybe Text)
- startEngagement_publicSubject :: 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.
StartEngagement
, startEngagement_incidentId
- The ARN of the incident that the engagement is part of.
$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:publicSubject:StartEngagement'
, startEngagement_publicSubject
- The insecure subject of the message that was sent to the contact. Use
this field for engagements to SMS
.
StartEngagement
, startEngagement_contactId
- The Amazon Resource Name (ARN) of the contact being engaged.
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_incidentId :: Lens' StartEngagement (Maybe Text) Source #
The ARN of the incident that the engagement is part of.
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_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_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.
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.