tagResource method

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

Adds the specified tags to the specified resource share that you own.

May throw InvalidParameterException. May throw MalformedArnException. May throw TagLimitExceededException. May throw ResourceArnNotFoundException. May throw TagPolicyViolationException. May throw ServerInternalException. May throw ServiceUnavailableException.

Parameter resourceShareArn : The Amazon Resource Name (ARN) of the resource share.

Parameter tags : One or more tags.

Implementation

Future<void> tagResource({
  required String resourceShareArn,
  required List<Tag> tags,
}) async {
  ArgumentError.checkNotNull(resourceShareArn, 'resourceShareArn');
  ArgumentError.checkNotNull(tags, 'tags');
  final $payload = <String, dynamic>{
    'resourceShareArn': resourceShareArn,
    'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/tagresource',
    exceptionFnMap: _exceptionFns,
  );
}