tagResource method
Attaches tags to a resource.
Required permissions: rolesanywhere:TagResource.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw TooManyTagsException.
May throw ValidationException.
Parameter resourceArn :
The ARN of the resource.
Parameter tags :
The tags to attach to the resource.
Implementation
Future<void> tagResource({
required String resourceArn,
required List<Tag> tags,
}) async {
final $payload = <String, dynamic>{
'resourceArn': resourceArn,
'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/TagResource',
exceptionFnMap: _exceptionFns,
);
}