describeAgentPermissions method
Describes the resource permissions for an agent.
May throw AccessDeniedException.
May throw InternalFailureException.
May throw InvalidParameterValueException.
May throw PreconditionNotMetException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter agentId :
The unique identifier for the agent.
Parameter awsAccountId :
The ID of the Amazon Web Services account that contains the agent.
Implementation
Future<DescribeAgentPermissionsResponse> describeAgentPermissions({
required String agentId,
required String awsAccountId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/agents/${Uri.encodeComponent(agentId)}/permissions',
exceptionFnMap: _exceptionFns,
);
return DescribeAgentPermissionsResponse.fromJson(response);
}