deleteDistribution2017_10_30 method

Future<void> deleteDistribution2017_10_30({
  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.

Implementation

Future<void> deleteDistribution2017_10_30({
  required String id,
  String? ifMatch,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final headers = <String, String>{
    if (ifMatch != null) 'If-Match': ifMatch.toString(),
  };
  await _protocol.send(
    method: 'DELETE',
    requestUri: '/2017-10-30/distribution/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}