describeContactFlow method

Future<DescribeContactFlowResponse> describeContactFlow({
  1. required String contactFlowId,
  2. required String instanceId,
})

Describes the specified contact flow.

You can also create and update contact flows using the Amazon Connect Flow language.

May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ContactFlowNotPublishedException. May throw ThrottlingException. May throw InternalServiceException.

Parameter contactFlowId : The identifier of the contact flow.

Parameter instanceId : The identifier of the Amazon Connect instance.

Implementation

Future<DescribeContactFlowResponse> describeContactFlow({
  required String contactFlowId,
  required String instanceId,
}) async {
  ArgumentError.checkNotNull(contactFlowId, 'contactFlowId');
  _s.validateStringLength(
    'contactFlowId',
    contactFlowId,
    0,
    500,
    isRequired: true,
  );
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/contact-flows/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeContactFlowResponse.fromJson(response);
}