tagResource method
Adds tags to a resource.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter arn :
The Amazon Resource Name (ARN)
Parameter tags :
A map of of key-value pairs that represent tags on a resource. Tags are
used to organize, track, or control access for this resource.
Implementation
Future<void> tagResource({
required String arn,
required Map<String, String> tags,
}) async {
final $payload = <String, dynamic>{
'tags': tags,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/tags/${Uri.encodeComponent(arn)}',
exceptionFnMap: _exceptionFns,
);
}