| 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.CreateLayout
Description
Creates a layout in the Cases domain. Layouts define the following configuration in the top section and More Info tab of the Cases user interface:
- Fields to display to the users
- Field ordering
Title and Status fields cannot be part of layouts since they are not configurable.
Synopsis
- data CreateLayout = CreateLayout' {}
- newCreateLayout :: LayoutContent -> Text -> Text -> CreateLayout
- createLayout_content :: Lens' CreateLayout LayoutContent
- createLayout_domainId :: Lens' CreateLayout Text
- createLayout_name :: Lens' CreateLayout Text
- data CreateLayoutResponse = CreateLayoutResponse' {}
- newCreateLayoutResponse :: Int -> Text -> Text -> CreateLayoutResponse
- createLayoutResponse_httpStatus :: Lens' CreateLayoutResponse Int
- createLayoutResponse_layoutArn :: Lens' CreateLayoutResponse Text
- createLayoutResponse_layoutId :: Lens' CreateLayoutResponse Text
Creating a Request
data CreateLayout Source #
See: newCreateLayout smart constructor.
Constructors
| CreateLayout' | |
Instances
Arguments
| :: LayoutContent | |
| -> Text | |
| -> Text | |
| -> CreateLayout |
Create a value of CreateLayout 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:
CreateLayout, createLayout_content - Information about which fields will be present in the layout, and
information about the order of the fields.
CreateLayout, createLayout_domainId - The unique identifier of the Cases domain.
CreateLayout, createLayout_name - The name of the layout. It must be unique for the Cases domain.
Request Lenses
createLayout_content :: Lens' CreateLayout LayoutContent Source #
Information about which fields will be present in the layout, and information about the order of the fields.
createLayout_domainId :: Lens' CreateLayout Text Source #
The unique identifier of the Cases domain.
createLayout_name :: Lens' CreateLayout Text Source #
The name of the layout. It must be unique for the Cases domain.
Destructuring the Response
data CreateLayoutResponse Source #
See: newCreateLayoutResponse smart constructor.
Constructors
| CreateLayoutResponse' | |
Instances
newCreateLayoutResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> CreateLayoutResponse |
Create a value of CreateLayoutResponse 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:CreateLayoutResponse', createLayoutResponse_httpStatus - The response's http status code.
CreateLayoutResponse, createLayoutResponse_layoutArn - The Amazon Resource Name (ARN) of the newly created layout.
CreateLayoutResponse, createLayoutResponse_layoutId - The unique identifier of the layout.
Response Lenses
createLayoutResponse_httpStatus :: Lens' CreateLayoutResponse Int Source #
The response's http status code.
createLayoutResponse_layoutArn :: Lens' CreateLayoutResponse Text Source #
The Amazon Resource Name (ARN) of the newly created layout.
createLayoutResponse_layoutId :: Lens' CreateLayoutResponse Text Source #
The unique identifier of the layout.