deleteFieldLevelEncryptionProfile2017_10_30 method

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

Remove a field-level encryption profile.

May throw AccessDenied. May throw InvalidIfMatchVersion. May throw NoSuchFieldLevelEncryptionProfile. May throw PreconditionFailed. May throw FieldLevelEncryptionProfileInUse.

Parameter id : Request the ID of the profile you want to delete from CloudFront.

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

Implementation

Future<void> deleteFieldLevelEncryptionProfile2017_10_30({
  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:
        '/2017-10-30/field-level-encryption-profile/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}