createTags method
Create tags for a resource
May throw NotFoundException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.
Implementation
Future<void> createTags({
required String resourceArn,
Map<String, String>? tags,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
final $payload = <String, dynamic>{
if (tags != null) 'tags': tags,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/prod/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
}