deleteRealtimeLogConfig method

Future<void> deleteRealtimeLogConfig({
  1. String? arn,
  2. String? name,
})

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 AccessDenied. May throw InvalidArgument. May throw NoSuchRealtimeLogConfig. May throw RealtimeLogConfigInUse.

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> deleteRealtimeLogConfig({
  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'),
    exceptionFnMap: _exceptionFns,
  );
}