tagResource method
Add a user-specifed key and value tag to a data store.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter resourceARN :
The Amazon Resource Name (ARN) that grants access to the data store tags
are being added to.
Parameter tags :
The user-specified key and value pair tags being added to a data store.
Implementation
Future<void> tagResource({
required String resourceARN,
required List<Tag> tags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.TagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'Tags': tags,
},
);
}