| 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.Connect.CreateAgentStatus
Description
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' {
- description :: Maybe Text
- displayOrder :: Maybe Natural
- tags :: Maybe (HashMap Text Text)
- instanceId :: Text
- name :: Text
- state :: AgentStatusState
- newCreateAgentStatus :: Text -> Text -> AgentStatusState -> CreateAgentStatus
- createAgentStatus_description :: Lens' CreateAgentStatus (Maybe Text)
- createAgentStatus_displayOrder :: Lens' CreateAgentStatus (Maybe Natural)
- 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_agentStatusARN :: Lens' CreateAgentStatusResponse (Maybe Text)
- createAgentStatusResponse_agentStatusId :: Lens' CreateAgentStatusResponse (Maybe Text)
- createAgentStatusResponse_httpStatus :: Lens' CreateAgentStatusResponse Int
Creating a Request
data CreateAgentStatus Source #
See: newCreateAgentStatus smart constructor.
Constructors
| CreateAgentStatus' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateAgentStatus, createAgentStatus_description - The description of the status.
CreateAgentStatus, createAgentStatus_displayOrder - The display order of the status.
CreateAgentStatus, createAgentStatus_tags - The tags used to organize, track, or control access for this resource.
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
CreateAgentStatus, createAgentStatus_instanceId - The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
CreateAgentStatus, createAgentStatus_name - The name of the status.
CreateAgentStatus, createAgentStatus_state - The state of the status.
Request Lenses
createAgentStatus_description :: Lens' CreateAgentStatus (Maybe Text) Source #
The description of the status.
createAgentStatus_displayOrder :: Lens' CreateAgentStatus (Maybe Natural) Source #
The display order of the status.
createAgentStatus_tags :: Lens' CreateAgentStatus (Maybe (HashMap Text Text)) Source #
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
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.
Constructors
| CreateAgentStatusResponse' | |
Fields
| |
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:
CreateAgentStatusResponse, createAgentStatusResponse_agentStatusARN - The Amazon Resource Name (ARN) of the agent status.
CreateAgentStatusResponse, createAgentStatusResponse_agentStatusId - The identifier of the agent status.
$sel:httpStatus:CreateAgentStatusResponse', createAgentStatusResponse_httpStatus - The response's http status code.
Response Lenses
createAgentStatusResponse_agentStatusARN :: Lens' CreateAgentStatusResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the agent status.
createAgentStatusResponse_agentStatusId :: Lens' CreateAgentStatusResponse (Maybe Text) Source #
The identifier of the agent status.
createAgentStatusResponse_httpStatus :: Lens' CreateAgentStatusResponse Int Source #
The response's http status code.