deleteTagsForDomain method

Future<void> deleteTagsForDomain({
  1. required String domainName,
  2. required List<String> tagsToDelete,
})

This operation deletes the specified tags for a domain.

All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.

May throw InvalidInput. May throw OperationLimitExceeded. May throw UnsupportedTLD.

Parameter domainName : The domain for which you want to delete one or more tags.

Parameter tagsToDelete : A list of tag keys to delete.

Implementation

Future<void> deleteTagsForDomain({
  required String domainName,
  required List<String> tagsToDelete,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    0,
    255,
    isRequired: true,
  );
  ArgumentError.checkNotNull(tagsToDelete, 'tagsToDelete');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Domains_v20140515.DeleteTagsForDomain'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DomainName': domainName,
      'TagsToDelete': tagsToDelete,
    },
  );
}