describeNamespace method
Describes the current namespace.
May throw AccessDeniedException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException. May throw ResourceUnavailableException.
Parameter awsAccountId
:
The ID for the AWS account that contains the QuickSight namespace that you
want to describe.
Parameter namespace
:
The namespace that you want to describe.
Implementation
Future<DescribeNamespaceResponse> describeNamespace({
required String awsAccountId,
required String namespace,
}) async {
ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
_s.validateStringLength(
'awsAccountId',
awsAccountId,
12,
12,
isRequired: true,
);
ArgumentError.checkNotNull(namespace, 'namespace');
_s.validateStringLength(
'namespace',
namespace,
0,
64,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/namespaces/${Uri.encodeComponent(namespace)}',
exceptionFnMap: _exceptionFns,
);
return DescribeNamespaceResponse.fromJson(response);
}