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 |
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
- data CreateCase = CreateCase' {
- clientToken :: Maybe Text
- domainId :: Text
- fields :: [FieldValue]
- templateId :: Text
- newCreateCase :: Text -> Text -> CreateCase
- createCase_clientToken :: Lens' CreateCase (Maybe Text)
- createCase_domainId :: Lens' CreateCase Text
- createCase_fields :: Lens' CreateCase [FieldValue]
- createCase_templateId :: Lens' CreateCase Text
- data CreateCaseResponse = CreateCaseResponse' {}
- newCreateCaseResponse :: Int -> Text -> Text -> CreateCaseResponse
- createCaseResponse_httpStatus :: Lens' CreateCaseResponse Int
- createCaseResponse_caseArn :: Lens' CreateCaseResponse Text
- createCaseResponse_caseId :: Lens' CreateCaseResponse Text
Creating a Request
data CreateCase Source #
See: newCreateCase
smart constructor.
CreateCase' | |
|
Instances
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.
Instances
newCreateCaseResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> CreateCaseResponse |
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_httpStatus :: Lens' CreateCaseResponse Int Source #
The response's http status code.
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.