LogpullRetentionArgs

data class LogpullRetentionArgs(val enabled: Output<Boolean>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<LogpullRetentionArgs>

Allows management of the Logpull Retention settings used to control whether or not to retain HTTP request logs.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.LogpullRetention;
import com.pulumi.cloudflare.LogpullRetentionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LogpullRetention("example", LogpullRetentionArgs.builder()
.enabled("true")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Import

$ pulumi import cloudflare:index/logpullRetention:LogpullRetention example <zone_id>

Constructors

Link copied to clipboard
constructor(enabled: Output<Boolean>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether you wish to retain logs or not.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Functions

Link copied to clipboard
open override fun toJava(): LogpullRetentionArgs