untagResource2018_06_18 method

Future<void> untagResource2018_06_18(
  1. {@required String resource,
  2. @required TagKeys tagKeys}
)

Remove tags from a CloudFront resource.

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

Parameter resource : An ARN of a CloudFront resource.

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

Implementation

Future<void> untagResource2018_06_18({
  @_s.required String resource,
  @_s.required TagKeys tagKeys,
}) async {
  ArgumentError.checkNotNull(resource, 'resource');
  _s.validateStringPattern(
    'resource',
    resource,
    r'''arn:aws:cloudfront::[0-9]+:.*''',
    isRequired: true,
  );
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $query = <String, List<String>>{
    if (resource != null) 'Resource': [resource],
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/2018-06-18/tagging?Operation=Untag',
    queryParams: $query,
    payload: tagKeys.toXml('TagKeys'),
    exceptionFnMap: _exceptionFns,
  );
}