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