describePrompt method
Describes the prompt.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter instanceId :
The identifier of the Connect Customer instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter promptId :
A unique identifier for the prompt.
Implementation
Future<DescribePromptResponse> describePrompt({
required String instanceId,
required String promptId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/prompts/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(promptId)}',
exceptionFnMap: _exceptionFns,
);
return DescribePromptResponse.fromJson(response);
}