createTags method

Future<void> createTags({
  1. required String resourceArn,
  2. Map<String, String>? tags,
})

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,
  );
}