deleteDistribution2020_05_31 method
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> deleteDistribution2020_05_31({
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: '/2020-05-31/distribution/${Uri.encodeComponent(id)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}