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.
Returns the current state of the specified instance identifier. It tracks the instance while it is being created and returns an error status, if applicable.
If an instance is not created successfully, the instance status reason field returns details relevant to the reason. The instance in a failed state is returned only for 24 hours after the CreateInstance API was invoked.
Synopsis
- data DescribeInstance = DescribeInstance' {
- instanceId :: Text
- newDescribeInstance :: Text -> DescribeInstance
- describeInstance_instanceId :: Lens' DescribeInstance Text
- data DescribeInstanceResponse = DescribeInstanceResponse' {
- instance' :: Maybe Instance
- httpStatus :: Int
- newDescribeInstanceResponse :: Int -> DescribeInstanceResponse
- describeInstanceResponse_instance :: Lens' DescribeInstanceResponse (Maybe Instance)
- describeInstanceResponse_httpStatus :: Lens' DescribeInstanceResponse Int
Creating a Request
data DescribeInstance Source #
See: newDescribeInstance
smart constructor.
DescribeInstance' | |
|
Instances
Create a value of DescribeInstance
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:instanceId:DescribeInstance'
, describeInstance_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
describeInstance_instanceId :: Lens' DescribeInstance Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data DescribeInstanceResponse Source #
See: newDescribeInstanceResponse
smart constructor.
DescribeInstanceResponse' | |
|
Instances
newDescribeInstanceResponse Source #
Create a value of DescribeInstanceResponse
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:instance':DescribeInstanceResponse'
, describeInstanceResponse_instance
- The name of the instance.
$sel:httpStatus:DescribeInstanceResponse'
, describeInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
describeInstanceResponse_instance :: Lens' DescribeInstanceResponse (Maybe Instance) Source #
The name of the instance.
describeInstanceResponse_httpStatus :: Lens' DescribeInstanceResponse Int Source #
The response's http status code.