deleteDistribution2018_06_18 method

Future<void> deleteDistribution2018_06_18(
  1. {@required String id,
  2. String ifMatch}

Delete a distribution.

May throw AccessDenied. May throw DistributionNotDisabled. May throw InvalidIfMatchVersion. May throw NoSuchDistribution. May throw PreconditionFailed.

Parameter id : The distribution ID.

Parameter ifMatch : The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.


Future<void> deleteDistribution2018_06_18({
  @_s.required String id,
  String ifMatch,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final headers = <String, String>{};
  ifMatch?.let((v) => headers['If-Match'] = v.toString());
  await _protocol.send(
    method: 'DELETE',
    requestUri: '/2018-06-18/distribution/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,