tagResource method
Applies tags to the specified resource.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the resource to apply tags to.
Parameter tags :
The list of tags to apply to the resource.
Implementation
Future<void> tagResource({
required String resourceArn,
required Map<String, String> tags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Odb.TagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'resourceArn': resourceArn,
'tags': tags,
},
);
}