getFlowAssociation method

Future<GetFlowAssociationResponse> getFlowAssociation({
  1. required String instanceId,
  2. required String resourceId,
  3. required FlowAssociationResourceType resourceType,
})

Retrieves the flow associated for a given resource.

May throw AccessDeniedException. 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 resourceId : The identifier of the resource.

  • Amazon Web Services End User Messaging SMS phone number ARN when using SMS_PHONE_NUMBER
  • Amazon Web Services End User Messaging Social phone number ARN when using WHATSAPP_MESSAGING_PHONE_NUMBER

Parameter resourceType : A valid resource type.

Implementation

Future<GetFlowAssociationResponse> getFlowAssociation({
  required String instanceId,
  required String resourceId,
  required FlowAssociationResourceType resourceType,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/flow-associations/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(resourceId)}/${Uri.encodeComponent(resourceType.value)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetFlowAssociationResponse.fromJson(response);
}