amazonka-connectcases-2.0: Amazon Connect Cases 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.ConnectCases.UpdateCase

Description

Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the CreateCase input .

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Synopsis

Creating a Request

data UpdateCase Source #

See: newUpdateCase smart constructor.

Constructors

UpdateCase' 

Fields

  • caseId :: Text

    A unique identifier of the case.

  • domainId :: Text

    The unique identifier of the Cases domain.

  • fields :: [FieldValue]

    An array of objects with fieldId (matching ListFields/DescribeField) and value union data, structured identical to CreateCase.

Instances

Instances details
ToJSON UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

ToHeaders UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Methods

toHeaders :: UpdateCase -> [Header] #

ToPath UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

ToQuery UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

AWSRequest UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Associated Types

type AWSResponse UpdateCase #

Generic UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Associated Types

type Rep UpdateCase :: Type -> Type #

Read UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Show UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

NFData UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Methods

rnf :: UpdateCase -> () #

Eq UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Hashable UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

type AWSResponse UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

type Rep UpdateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

type Rep UpdateCase = D1 ('MetaData "UpdateCase" "Amazonka.ConnectCases.UpdateCase" "amazonka-connectcases-2.0-9RA5jvVYRVL9KmD8hfMfHn" 'False) (C1 ('MetaCons "UpdateCase'" 'PrefixI 'True) (S1 ('MetaSel ('Just "caseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "domainId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [FieldValue]))))

newUpdateCase Source #

Create a value of UpdateCase 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:

UpdateCase, updateCase_caseId - A unique identifier of the case.

UpdateCase, updateCase_domainId - The unique identifier of the Cases domain.

UpdateCase, updateCase_fields - An array of objects with fieldId (matching ListFields/DescribeField) and value union data, structured identical to CreateCase.

Request Lenses

updateCase_caseId :: Lens' UpdateCase Text Source #

A unique identifier of the case.

updateCase_domainId :: Lens' UpdateCase Text Source #

The unique identifier of the Cases domain.

updateCase_fields :: Lens' UpdateCase [FieldValue] Source #

An array of objects with fieldId (matching ListFields/DescribeField) and value union data, structured identical to CreateCase.

Destructuring the Response

data UpdateCaseResponse Source #

See: newUpdateCaseResponse smart constructor.

Constructors

UpdateCaseResponse' 

Fields

Instances

Instances details
Generic UpdateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Associated Types

type Rep UpdateCaseResponse :: Type -> Type #

Read UpdateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Show UpdateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

NFData UpdateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

Methods

rnf :: UpdateCaseResponse -> () #

Eq UpdateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

type Rep UpdateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.UpdateCase

type Rep UpdateCaseResponse = D1 ('MetaData "UpdateCaseResponse" "Amazonka.ConnectCases.UpdateCase" "amazonka-connectcases-2.0-9RA5jvVYRVL9KmD8hfMfHn" 'False) (C1 ('MetaCons "UpdateCaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateCaseResponse Source #

Create a value of UpdateCaseResponse 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:UpdateCaseResponse', updateCaseResponse_httpStatus - The response's http status code.

Response Lenses