deleteRealtimeLogConfig2020_05_31 method
Deletes a real-time log configuration.
You cannot delete a real-time log configuration if it’s attached to a cache behavior. First update your distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log configuration.
To delete a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to delete.
May throw NoSuchRealtimeLogConfig. May throw RealtimeLogConfigInUse. May throw InvalidArgument. May throw AccessDenied.
Parameter arn
:
The Amazon Resource Name (ARN) of the real-time log configuration to
delete.
Parameter name
:
The name of the real-time log configuration to delete.
Implementation
Future<void> deleteRealtimeLogConfig2020_05_31({
String? arn,
String? name,
}) async {
await _protocol.send(
method: 'POST',
requestUri: '/2020-05-31/delete-realtime-log-config/',
payload: DeleteRealtimeLogConfigRequest(arn: arn, name: name).toXml(
'DeleteRealtimeLogConfigRequest',
attributes: [
_s.XmlAttribute(_s.XmlName('xmlns'),
'http://cloudfront.amazonaws.com/doc/2020-05-31/'),
],
),
exceptionFnMap: _exceptionFns,
);
}