describeInstance method
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.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw InternalServiceException.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Implementation
Future<DescribeInstanceResponse> describeInstance({
required String instanceId,
}) async {
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/instance/${Uri.encodeComponent(instanceId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeInstanceResponse.fromJson(response);
}