deleteFieldLevelEncryptionConfig2018_06_18 method

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

Remove a field-level encryption configuration.

May throw AccessDenied. May throw InvalidIfMatchVersion. May throw NoSuchFieldLevelEncryptionConfig. May throw PreconditionFailed. May throw FieldLevelEncryptionConfigInUse.

Parameter id : The ID of the configuration you want to delete from CloudFront.

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

Implementation

Future<void> deleteFieldLevelEncryptionConfig2018_06_18({
  @_s.required String id,
  String ifMatch,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final headers = <String, String>{};
  ifMatch?.let((v) => headers['If-Match'] = v.toString());
  await _protocol.send(
    method: 'DELETE',
    requestUri:
        '/2018-06-18/field-level-encryption/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}