describeDataSetPermissions method

Future<DescribeDataSetPermissionsResponse> describeDataSetPermissions({
  1. required String awsAccountId,
  2. required String dataSetId,
})

Describes the permissions on a dataset.

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id.

May throw AccessDeniedException. May throw InvalidParameterValueException. May throw ThrottlingException. May throw ResourceNotFoundException. May throw InternalFailureException.

Parameter awsAccountId : The AWS account ID.

Parameter dataSetId : The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

Implementation

Future<DescribeDataSetPermissionsResponse> describeDataSetPermissions({
  required String awsAccountId,
  required String dataSetId,
}) async {
  ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
  _s.validateStringLength(
    'awsAccountId',
    awsAccountId,
    12,
    12,
    isRequired: true,
  );
  ArgumentError.checkNotNull(dataSetId, 'dataSetId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/data-sets/${Uri.encodeComponent(dataSetId)}/permissions',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeDataSetPermissionsResponse.fromJson(response);
}