getArtifact method
Retrieves an artifact from an agent space.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentSpaceId :
The unique identifier of the agent space that contains the artifact.
Parameter artifactId :
The unique identifier of the artifact to retrieve.
Implementation
Future<GetArtifactOutput> getArtifact({
required String agentSpaceId,
required String artifactId,
}) async {
final $payload = <String, dynamic>{
'agentSpaceId': agentSpaceId,
'artifactId': artifactId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/GetArtifact',
exceptionFnMap: _exceptionFns,
);
return GetArtifactOutput.fromJson(response);
}