describeDataSourcePermissions method

Future<DescribeDataSourcePermissionsResponse> describeDataSourcePermissions({
  1. required String awsAccountId,
  2. required String dataSourceId,
})

Describes the resource permissions for a data source.

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

Parameter awsAccountId : The AWS account ID.

Parameter dataSourceId : The ID of the data source. This ID is unique per AWS Region for each AWS account.

Implementation

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