tagResource method
Add a tag to the specified resource.
May throw InternalServiceException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter resourceArn :
Specify the resourceArn of the resource to which a tag will
be added.
Parameter tags :
Specify the tags to add to the resource. Tags can be specified as a
key-value map.
Implementation
Future<void> tagResource({
required String resourceArn,
required Map<String, String> tags,
}) async {
final $payload = <String, dynamic>{
'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
}