deleteCloudFrontOriginAccessIdentity method
Delete an origin access identity.
May throw AccessDenied.
May throw CloudFrontOriginAccessIdentityInUse.
May throw InvalidIfMatchVersion.
May throw NoSuchCloudFrontOriginAccessIdentity.
May throw PreconditionFailed.
Parameter id :
The origin access identity's ID.
Parameter ifMatch :
The value of the ETag header you received from a previous
GET or PUT request. For example:
E2QWRUHAPOMQZL.
Implementation
Future<void> deleteCloudFrontOriginAccessIdentity({
required String id,
String? ifMatch,
}) async {
final headers = <String, String>{
if (ifMatch != null) 'If-Match': ifMatch.toString(),
};
await _protocol.send(
method: 'DELETE',
requestUri:
'/2020-05-31/origin-access-identity/cloudfront/${Uri.encodeComponent(id)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}