Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a contact flow for the specified Amazon Connect instance.
You can also create and update contact flows using the Amazon Connect Flow language.
Synopsis
- data CreateContactFlow = CreateContactFlow' {}
- newCreateContactFlow :: Text -> Text -> ContactFlowType -> Text -> CreateContactFlow
- createContactFlow_description :: Lens' CreateContactFlow (Maybe Text)
- createContactFlow_tags :: Lens' CreateContactFlow (Maybe (HashMap Text Text))
- createContactFlow_instanceId :: Lens' CreateContactFlow Text
- createContactFlow_name :: Lens' CreateContactFlow Text
- createContactFlow_type :: Lens' CreateContactFlow ContactFlowType
- createContactFlow_content :: Lens' CreateContactFlow Text
- data CreateContactFlowResponse = CreateContactFlowResponse' {}
- newCreateContactFlowResponse :: Int -> CreateContactFlowResponse
- createContactFlowResponse_contactFlowArn :: Lens' CreateContactFlowResponse (Maybe Text)
- createContactFlowResponse_contactFlowId :: Lens' CreateContactFlowResponse (Maybe Text)
- createContactFlowResponse_httpStatus :: Lens' CreateContactFlowResponse Int
Creating a Request
data CreateContactFlow Source #
See: newCreateContactFlow
smart constructor.
CreateContactFlow' | |
|
Instances
:: Text | |
-> Text | |
-> ContactFlowType | |
-> Text | |
-> CreateContactFlow |
Create a value of CreateContactFlow
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:description:CreateContactFlow'
, createContactFlow_description
- The description of the contact flow.
$sel:tags:CreateContactFlow'
, createContactFlow_tags
- One or more tags.
$sel:instanceId:CreateContactFlow'
, createContactFlow_instanceId
- The identifier of the Amazon Connect instance.
$sel:name:CreateContactFlow'
, createContactFlow_name
- The name of the contact flow.
$sel:type':CreateContactFlow'
, createContactFlow_type
- The type of the contact flow. For descriptions of the available types,
see
Choose a Contact Flow Type
in the Amazon Connect Administrator Guide.
$sel:content:CreateContactFlow'
, createContactFlow_content
- The content of the contact flow.
Request Lenses
createContactFlow_description :: Lens' CreateContactFlow (Maybe Text) Source #
The description of the contact flow.
createContactFlow_tags :: Lens' CreateContactFlow (Maybe (HashMap Text Text)) Source #
One or more tags.
createContactFlow_instanceId :: Lens' CreateContactFlow Text Source #
The identifier of the Amazon Connect instance.
createContactFlow_name :: Lens' CreateContactFlow Text Source #
The name of the contact flow.
createContactFlow_type :: Lens' CreateContactFlow ContactFlowType Source #
The type of the contact flow. For descriptions of the available types, see Choose a Contact Flow Type in the Amazon Connect Administrator Guide.
createContactFlow_content :: Lens' CreateContactFlow Text Source #
The content of the contact flow.
Destructuring the Response
data CreateContactFlowResponse Source #
See: newCreateContactFlowResponse
smart constructor.
CreateContactFlowResponse' | |
|
Instances
newCreateContactFlowResponse Source #
Create a value of CreateContactFlowResponse
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:contactFlowArn:CreateContactFlowResponse'
, createContactFlowResponse_contactFlowArn
- The Amazon Resource Name (ARN) of the contact flow.
$sel:contactFlowId:CreateContactFlowResponse'
, createContactFlowResponse_contactFlowId
- The identifier of the contact flow.
$sel:httpStatus:CreateContactFlowResponse'
, createContactFlowResponse_httpStatus
- The response's http status code.
Response Lenses
createContactFlowResponse_contactFlowArn :: Lens' CreateContactFlowResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the contact flow.
createContactFlowResponse_contactFlowId :: Lens' CreateContactFlowResponse (Maybe Text) Source #
The identifier of the contact flow.
createContactFlowResponse_httpStatus :: Lens' CreateContactFlowResponse Int Source #
The response's http status code.