tagResource method

Future<void> tagResource({
  1. required String resourceARN,
  2. required List<Tag> tags,
})

Applies the specified tags to the specified Amazon Chime SDK meeting resource.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw UnauthorizedClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter resourceARN : The resource ARN.

Parameter tags : The tag key-value pairs.

Implementation

Future<void> tagResource({
  required String resourceARN,
  required List<Tag> tags,
}) async {
  ArgumentError.checkNotNull(resourceARN, 'resourceARN');
  _s.validateStringLength(
    'resourceARN',
    resourceARN,
    1,
    1024,
    isRequired: true,
  );
  ArgumentError.checkNotNull(tags, 'tags');
  final $payload = <String, dynamic>{
    'ResourceARN': resourceARN,
    'Tags': tags,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/tags?operation=tag-resource',
    exceptionFnMap: _exceptionFns,
  );
}