tagResource2019_03_26 method

Future<void> tagResource2019_03_26({
  1. required String resource,
  2. required Tags tags,
})

Add tags to a CloudFront resource.

May throw AccessDenied. May throw InvalidArgument. May throw InvalidTagging. May throw NoSuchResource.

Parameter resource : An ARN of a CloudFront resource.

Parameter tags : A complex type that contains zero or more Tag elements.

Implementation

Future<void> tagResource2019_03_26({
  required String resource,
  required Tags tags,
}) async {
  ArgumentError.checkNotNull(resource, 'resource');
  ArgumentError.checkNotNull(tags, 'tags');
  final $query = <String, List<String>>{
    'Resource': [resource],
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/2019-03-26/tagging?Operation=Tag',
    queryParams: $query,
    payload: tags.toXml('Tags'),
    exceptionFnMap: _exceptionFns,
  );
}