Class LogpullRetention
Allows management of the Logpull Retention settings used to control whether or not to retain HTTP request logs.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var example = new Cloudflare.LogpullRetention("example", new Cloudflare.LogpullRetentionArgs
{
Enabled = "true",
ZoneId = "fb54f084ca7f7b732d3d3ecbd8ef7bf2",
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class LogpullRetention : CustomResource
Constructors
View SourceLogpullRetention(String, LogpullRetentionArgs, CustomResourceOptions)
Create a LogpullRetention resource with the given unique name, arguments, and options.
Declaration
public LogpullRetention(string name, LogpullRetentionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| LogpullRetentionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEnabled
Whether you wish to retain logs or not.
Declaration
public Output<bool> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
ZoneId
The zone ID to apply the log retention to.
Declaration
public Output<string> ZoneId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, LogpullRetentionState, CustomResourceOptions)
Get an existing LogpullRetention resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static LogpullRetention Get(string name, Input<string> id, LogpullRetentionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| LogpullRetentionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| LogpullRetention |