| 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.Support.AddCommunicationToCase
Description
Adds additional customer communication to an Amazon Web Services Support
case. Use the caseId parameter to identify the case to which to add
communication. You can list a set of email addresses to copy on the
communication by using the ccEmailAddresses parameter. The
communicationBody value contains the text of the communication.
- You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
- If you call the Amazon Web Services Support API from an account that
doesn't have a Business, Enterprise On-Ramp, or Enterprise Support
plan, the
SubscriptionRequiredExceptionerror message appears. For information about changing your support plan, see Amazon Web Services Support.
Synopsis
- data AddCommunicationToCase = AddCommunicationToCase' {}
- newAddCommunicationToCase :: Text -> AddCommunicationToCase
- addCommunicationToCase_attachmentSetId :: Lens' AddCommunicationToCase (Maybe Text)
- addCommunicationToCase_caseId :: Lens' AddCommunicationToCase (Maybe Text)
- addCommunicationToCase_ccEmailAddresses :: Lens' AddCommunicationToCase (Maybe [Text])
- addCommunicationToCase_communicationBody :: Lens' AddCommunicationToCase Text
- data AddCommunicationToCaseResponse = AddCommunicationToCaseResponse' {
- result :: Maybe Bool
- httpStatus :: Int
- newAddCommunicationToCaseResponse :: Int -> AddCommunicationToCaseResponse
- addCommunicationToCaseResponse_result :: Lens' AddCommunicationToCaseResponse (Maybe Bool)
- addCommunicationToCaseResponse_httpStatus :: Lens' AddCommunicationToCaseResponse Int
Creating a Request
data AddCommunicationToCase Source #
See: newAddCommunicationToCase smart constructor.
Constructors
| AddCommunicationToCase' | |
Fields
| |
Instances
newAddCommunicationToCase Source #
Create a value of AddCommunicationToCase 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:attachmentSetId:AddCommunicationToCase', addCommunicationToCase_attachmentSetId - The ID of a set of one or more attachments for the communication to add
to the case. Create the set by calling AddAttachmentsToSet
AddCommunicationToCase, addCommunicationToCase_caseId - The support case ID requested or returned in the call. The case ID is an
alphanumeric string formatted as shown in this example:
case-12345678910-2013-c4c1d2bf33c5cf47
AddCommunicationToCase, addCommunicationToCase_ccEmailAddresses - The email addresses in the CC line of an email to be added to the
support case.
$sel:communicationBody:AddCommunicationToCase', addCommunicationToCase_communicationBody - The body of an email communication to add to the support case.
Request Lenses
addCommunicationToCase_attachmentSetId :: Lens' AddCommunicationToCase (Maybe Text) Source #
The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet
addCommunicationToCase_caseId :: Lens' AddCommunicationToCase (Maybe Text) Source #
The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
addCommunicationToCase_ccEmailAddresses :: Lens' AddCommunicationToCase (Maybe [Text]) Source #
The email addresses in the CC line of an email to be added to the support case.
addCommunicationToCase_communicationBody :: Lens' AddCommunicationToCase Text Source #
The body of an email communication to add to the support case.
Destructuring the Response
data AddCommunicationToCaseResponse Source #
The result of the AddCommunicationToCase operation.
See: newAddCommunicationToCaseResponse smart constructor.
Constructors
| AddCommunicationToCaseResponse' | |
Fields
| |
Instances
newAddCommunicationToCaseResponse Source #
Create a value of AddCommunicationToCaseResponse 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:result:AddCommunicationToCaseResponse', addCommunicationToCaseResponse_result - True if AddCommunicationToCase succeeds. Otherwise, returns an error.
$sel:httpStatus:AddCommunicationToCaseResponse', addCommunicationToCaseResponse_httpStatus - The response's http status code.
Response Lenses
addCommunicationToCaseResponse_result :: Lens' AddCommunicationToCaseResponse (Maybe Bool) Source #
True if AddCommunicationToCase succeeds. Otherwise, returns an error.
addCommunicationToCaseResponse_httpStatus :: Lens' AddCommunicationToCaseResponse Int Source #
The response's http status code.