describeKnowledgeBasePermissions method

Future<DescribeKnowledgeBasePermissionsResponse> describeKnowledgeBasePermissions({
  1. required String awsAccountId,
  2. required String knowledgeBaseId,
})

Describes the resource permissions for a knowledge base.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw InvalidRequestException. May throw LimitExceededException. May throw PreconditionNotMetException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter awsAccountId : The ID of the Amazon Web Services account that contains the knowledge base.

Parameter knowledgeBaseId : The unique identifier for the knowledge base.

Implementation

Future<DescribeKnowledgeBasePermissionsResponse>
    describeKnowledgeBasePermissions({
  required String awsAccountId,
  required String knowledgeBaseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/accounts/${Uri.encodeComponent(awsAccountId)}/knowledge-bases/${Uri.encodeComponent(knowledgeBaseId)}/permissions',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeKnowledgeBasePermissionsResponse.fromJson(response);
}