deleteDistribution2019_03_26 method

Future<void> deleteDistribution2019_03_26({
  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> deleteDistribution2019_03_26({
  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: '/2019-03-26/distribution/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}