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.CreateCase

Description

Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.

customer_id is a required field when creating a case.

Synopsis

Creating a Request

data CreateCase Source #

See: newCreateCase smart constructor.

Constructors

CreateCase' 

Fields

Instances

Instances details
ToJSON CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

ToHeaders CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Methods

toHeaders :: CreateCase -> [Header] #

ToPath CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

ToQuery CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

AWSRequest CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Associated Types

type AWSResponse CreateCase #

Generic CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Associated Types

type Rep CreateCase :: Type -> Type #

Read CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Show CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

NFData CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Methods

rnf :: CreateCase -> () #

Eq CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Hashable CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

type AWSResponse CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

type Rep CreateCase Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

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

newCreateCase Source #

Create a value of CreateCase 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:clientToken:CreateCase', createCase_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

CreateCase, createCase_domainId - The unique identifier of the Cases domain.

CreateCase, createCase_fields - An array of objects with field ID (matching ListFields/DescribeField) and value union data.

CreateCase, createCase_templateId - A unique identifier of a template.

Request Lenses

createCase_clientToken :: Lens' CreateCase (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

createCase_domainId :: Lens' CreateCase Text Source #

The unique identifier of the Cases domain.

createCase_fields :: Lens' CreateCase [FieldValue] Source #

An array of objects with field ID (matching ListFields/DescribeField) and value union data.

createCase_templateId :: Lens' CreateCase Text Source #

A unique identifier of a template.

Destructuring the Response

data CreateCaseResponse Source #

See: newCreateCaseResponse smart constructor.

Constructors

CreateCaseResponse' 

Fields

Instances

Instances details
Generic CreateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Associated Types

type Rep CreateCaseResponse :: Type -> Type #

Read CreateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Show CreateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

NFData CreateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

Methods

rnf :: CreateCaseResponse -> () #

Eq CreateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

type Rep CreateCaseResponse Source # 
Instance details

Defined in Amazonka.ConnectCases.CreateCase

type Rep CreateCaseResponse = D1 ('MetaData "CreateCaseResponse" "Amazonka.ConnectCases.CreateCase" "amazonka-connectcases-2.0-9RA5jvVYRVL9KmD8hfMfHn" 'False) (C1 ('MetaCons "CreateCaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "caseArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "caseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateCaseResponse Source #

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

$sel:caseArn:CreateCaseResponse', createCaseResponse_caseArn - The Amazon Resource Name (ARN) of the case.

CreateCaseResponse, createCaseResponse_caseId - A unique identifier of the case.

Response Lenses

createCaseResponse_caseArn :: Lens' CreateCaseResponse Text Source #

The Amazon Resource Name (ARN) of the case.

createCaseResponse_caseId :: Lens' CreateCaseResponse Text Source #

A unique identifier of the case.