putDataLakeSettings method
- required DataLakeSettings dataLakeSettings,
- String? catalogId,
Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions.
This API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.
May throw InternalServiceException. May throw InvalidInputException.
Parameter dataLakeSettings
:
A structure representing a list of AWS Lake Formation principals
designated as data lake administrators.
Parameter catalogId
:
The identifier for the Data Catalog. By default, the account ID. The Data
Catalog is the persistent metadata store. It contains database
definitions, table definitions, and other control information to manage
your AWS Lake Formation environment.
Implementation
Future<void> putDataLakeSettings({
required DataLakeSettings dataLakeSettings,
String? catalogId,
}) async {
ArgumentError.checkNotNull(dataLakeSettings, 'dataLakeSettings');
_s.validateStringLength(
'catalogId',
catalogId,
1,
255,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSLakeFormation.PutDataLakeSettings'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DataLakeSettings': dataLakeSettings,
if (catalogId != null) 'CatalogId': catalogId,
},
);
}