| 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.ConnectCases.CreateField
Description
Creates a field in the Cases domain. This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain.
Synopsis
- data CreateField = CreateField' {}
- newCreateField :: Text -> Text -> FieldType -> CreateField
- createField_description :: Lens' CreateField (Maybe Text)
- createField_domainId :: Lens' CreateField Text
- createField_name :: Lens' CreateField Text
- createField_type :: Lens' CreateField FieldType
- data CreateFieldResponse = CreateFieldResponse' {}
- newCreateFieldResponse :: Int -> Text -> Text -> CreateFieldResponse
- createFieldResponse_httpStatus :: Lens' CreateFieldResponse Int
- createFieldResponse_fieldArn :: Lens' CreateFieldResponse Text
- createFieldResponse_fieldId :: Lens' CreateFieldResponse Text
Creating a Request
data CreateField Source #
See: newCreateField smart constructor.
Constructors
| CreateField' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> FieldType | |
| -> CreateField |
Create a value of CreateField 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:
CreateField, createField_description - The description of the field.
CreateField, createField_domainId - The unique identifier of the Cases domain.
CreateField, createField_name - The name of the field.
CreateField, createField_type - Defines the data type, some system constraints, and default display of
the field.
Request Lenses
createField_description :: Lens' CreateField (Maybe Text) Source #
The description of the field.
createField_domainId :: Lens' CreateField Text Source #
The unique identifier of the Cases domain.
createField_name :: Lens' CreateField Text Source #
The name of the field.
createField_type :: Lens' CreateField FieldType Source #
Defines the data type, some system constraints, and default display of the field.
Destructuring the Response
data CreateFieldResponse Source #
See: newCreateFieldResponse smart constructor.
Constructors
| CreateFieldResponse' | |
Instances
newCreateFieldResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> CreateFieldResponse |
Create a value of CreateFieldResponse 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:CreateFieldResponse', createFieldResponse_httpStatus - The response's http status code.
CreateFieldResponse, createFieldResponse_fieldArn - The Amazon Resource Name (ARN) of the field.
CreateFieldResponse, createFieldResponse_fieldId - The unique identifier of a field.
Response Lenses
createFieldResponse_httpStatus :: Lens' CreateFieldResponse Int Source #
The response's http status code.
createFieldResponse_fieldArn :: Lens' CreateFieldResponse Text Source #
The Amazon Resource Name (ARN) of the field.
createFieldResponse_fieldId :: Lens' CreateFieldResponse Text Source #
The unique identifier of a field.