deleteFieldLevelEncryptionProfile2018_11_05 method
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> deleteFieldLevelEncryptionProfile2018_11_05({
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-11-05/field-level-encryption-profile/${Uri.encodeComponent(id)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}