amazonka-support-2.0: Amazon Support SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.
Synopsis

Creating a Request

data AddCommunicationToCase Source #

See: newAddCommunicationToCase smart constructor.

Constructors

AddCommunicationToCase' 

Fields

  • attachmentSetId :: Maybe Text

    The ID of a set of one or more attachments for the communication to add to the case. Create the set by calling AddAttachmentsToSet

  • caseId :: Maybe Text

    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

  • ccEmailAddresses :: Maybe [Text]

    The email addresses in the CC line of an email to be added to the support case.

  • communicationBody :: Text

    The body of an email communication to add to the support case.

Instances

Instances details
ToJSON AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

ToHeaders AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

ToPath AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

ToQuery AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

AWSRequest AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Associated Types

type AWSResponse AddCommunicationToCase #

Generic AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Associated Types

type Rep AddCommunicationToCase :: Type -> Type #

Read AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Show AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

NFData AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Methods

rnf :: AddCommunicationToCase -> () #

Eq AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Hashable AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

type AWSResponse AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

type Rep AddCommunicationToCase Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

type Rep AddCommunicationToCase = D1 ('MetaData "AddCommunicationToCase" "Amazonka.Support.AddCommunicationToCase" "amazonka-support-2.0-LbNYGbwzg4MCCJkN4B0nCH" 'False) (C1 ('MetaCons "AddCommunicationToCase'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attachmentSetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "caseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "ccEmailAddresses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "communicationBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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

Instances details
Generic AddCommunicationToCaseResponse Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Associated Types

type Rep AddCommunicationToCaseResponse :: Type -> Type #

Read AddCommunicationToCaseResponse Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Show AddCommunicationToCaseResponse Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

NFData AddCommunicationToCaseResponse Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

Eq AddCommunicationToCaseResponse Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

type Rep AddCommunicationToCaseResponse Source # 
Instance details

Defined in Amazonka.Support.AddCommunicationToCase

type Rep AddCommunicationToCaseResponse = D1 ('MetaData "AddCommunicationToCaseResponse" "Amazonka.Support.AddCommunicationToCase" "amazonka-support-2.0-LbNYGbwzg4MCCJkN4B0nCH" 'False) (C1 ('MetaCons "AddCommunicationToCaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "result") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.