tagResource method
Associates tags with an Amazon Q Apps resource.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter resourceARN :
The Amazon Resource Name (ARN) of the resource to tag.
Parameter tags :
The tags to associate with the resource.
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,
);
}