getAssociation method
Retrieves given associations configured for a specific AgentSpace.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentSpaceId :
The unique identifier of the AgentSpace
Parameter associationId :
The unique identifier of the given association.
Implementation
Future<GetAssociationOutput> getAssociation({
required String agentSpaceId,
required String associationId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/agentspaces/${Uri.encodeComponent(agentSpaceId)}/associations/${Uri.encodeComponent(associationId)}',
hostPrefix: 'cp.',
exceptionFnMap: _exceptionFns,
);
return GetAssociationOutput.fromJson(response);
}