getTrigger method

Future<GetTriggerResponse> getTrigger({
  1. required String agentSpaceId,
  2. required String triggerId,
})

Gets a Trigger from the specified agent space

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter agentSpaceId : The unique identifier for the agent space containing the Trigger

Parameter triggerId : The unique identifier of the Trigger to retrieve

Implementation

Future<GetTriggerResponse> getTrigger({
  required String agentSpaceId,
  required String triggerId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/trigger/agent-space/${Uri.encodeComponent(agentSpaceId)}/triggers/${Uri.encodeComponent(triggerId)}',
    hostPrefix: 'dp.',
    exceptionFnMap: _exceptionFns,
  );
  return GetTriggerResponse.fromJson(response);
}