deletePublicKey2018_06_18 method

Future<void> deletePublicKey2018_06_18({
  1. required String id,
  2. String? ifMatch,
})

Remove a public key you previously added to CloudFront.

May throw AccessDenied. May throw PublicKeyInUse. May throw InvalidIfMatchVersion. May throw NoSuchPublicKey. May throw PreconditionFailed.

Parameter id : The ID of the public key you want to remove from CloudFront.

Parameter ifMatch : The value of the ETag header that you received when retrieving the public key identity to delete. For example: E2QWRUHAPOMQZL.

Implementation

Future<void> deletePublicKey2018_06_18({
  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: '/2018-06-18/public-key/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}