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 |
This API is in preview release for Amazon Connect and is subject to change.
Creates an agent status for the specified Amazon Connect instance.
Synopsis
- data CreateAgentStatus = CreateAgentStatus' {
- displayOrder :: Maybe Natural
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- instanceId :: Text
- name :: Text
- state :: AgentStatusState
- newCreateAgentStatus :: Text -> Text -> AgentStatusState -> CreateAgentStatus
- createAgentStatus_displayOrder :: Lens' CreateAgentStatus (Maybe Natural)
- createAgentStatus_description :: Lens' CreateAgentStatus (Maybe Text)
- createAgentStatus_tags :: Lens' CreateAgentStatus (Maybe (HashMap Text Text))
- createAgentStatus_instanceId :: Lens' CreateAgentStatus Text
- createAgentStatus_name :: Lens' CreateAgentStatus Text
- createAgentStatus_state :: Lens' CreateAgentStatus AgentStatusState
- data CreateAgentStatusResponse = CreateAgentStatusResponse' {}
- newCreateAgentStatusResponse :: Int -> CreateAgentStatusResponse
- createAgentStatusResponse_agentStatusId :: Lens' CreateAgentStatusResponse (Maybe Text)
- createAgentStatusResponse_agentStatusARN :: Lens' CreateAgentStatusResponse (Maybe Text)
- createAgentStatusResponse_httpStatus :: Lens' CreateAgentStatusResponse Int
Creating a Request
data CreateAgentStatus Source #
See: newCreateAgentStatus
smart constructor.
CreateAgentStatus' | |
|
Instances
:: Text | |
-> Text | |
-> AgentStatusState | |
-> CreateAgentStatus |
Create a value of CreateAgentStatus
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:displayOrder:CreateAgentStatus'
, createAgentStatus_displayOrder
- The display order of the status.
$sel:description:CreateAgentStatus'
, createAgentStatus_description
- The description of the status.
$sel:tags:CreateAgentStatus'
, createAgentStatus_tags
- One or more tags.
$sel:instanceId:CreateAgentStatus'
, createAgentStatus_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
$sel:name:CreateAgentStatus'
, createAgentStatus_name
- The name of the status.
$sel:state:CreateAgentStatus'
, createAgentStatus_state
- The state of the status.
Request Lenses
createAgentStatus_displayOrder :: Lens' CreateAgentStatus (Maybe Natural) Source #
The display order of the status.
createAgentStatus_description :: Lens' CreateAgentStatus (Maybe Text) Source #
The description of the status.
createAgentStatus_tags :: Lens' CreateAgentStatus (Maybe (HashMap Text Text)) Source #
One or more tags.
createAgentStatus_instanceId :: Lens' CreateAgentStatus Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
createAgentStatus_name :: Lens' CreateAgentStatus Text Source #
The name of the status.
createAgentStatus_state :: Lens' CreateAgentStatus AgentStatusState Source #
The state of the status.
Destructuring the Response
data CreateAgentStatusResponse Source #
See: newCreateAgentStatusResponse
smart constructor.
CreateAgentStatusResponse' | |
|
Instances
newCreateAgentStatusResponse Source #
Create a value of CreateAgentStatusResponse
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:agentStatusId:CreateAgentStatusResponse'
, createAgentStatusResponse_agentStatusId
- The identifier of the agent status.
$sel:agentStatusARN:CreateAgentStatusResponse'
, createAgentStatusResponse_agentStatusARN
- The Amazon Resource Name (ARN) of the agent status.
$sel:httpStatus:CreateAgentStatusResponse'
, createAgentStatusResponse_httpStatus
- The response's http status code.
Response Lenses
createAgentStatusResponse_agentStatusId :: Lens' CreateAgentStatusResponse (Maybe Text) Source #
The identifier of the agent status.
createAgentStatusResponse_agentStatusARN :: Lens' CreateAgentStatusResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the agent status.
createAgentStatusResponse_httpStatus :: Lens' CreateAgentStatusResponse Int Source #
The response's http status code.