checkpoint.ManagementSetAutomaticPurge
Explore with Pulumi AI
This command resource allows you to execute Check Point Set Automatic Purge.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementSetAutomaticPurge("example", {
enabled: true,
keepSessionsByDays: false,
numberOfSessionsToKeep: 10,
});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementSetAutomaticPurge("example",
enabled=True,
keep_sessions_by_days=False,
number_of_sessions_to_keep=10)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := checkpoint.NewManagementSetAutomaticPurge(ctx, "example", &checkpoint.ManagementSetAutomaticPurgeArgs{
Enabled: pulumi.Bool(true),
KeepSessionsByDays: pulumi.Bool(false),
NumberOfSessionsToKeep: pulumi.Float64(10),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;
return await Deployment.RunAsync(() =>
{
var example = new Checkpoint.ManagementSetAutomaticPurge("example", new()
{
Enabled = true,
KeepSessionsByDays = false,
NumberOfSessionsToKeep = 10,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementSetAutomaticPurge;
import com.pulumi.checkpoint.ManagementSetAutomaticPurgeArgs;
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 ManagementSetAutomaticPurge("example", ManagementSetAutomaticPurgeArgs.builder()
.enabled(true)
.keepSessionsByDays(false)
.numberOfSessionsToKeep(10)
.build());
}
}
resources:
example:
type: checkpoint:ManagementSetAutomaticPurge
properties:
enabled: true
keepSessionsByDays: false
numberOfSessionsToKeep: 10
How To Use
Make sure this command will be executed in the right execution order.
Create ManagementSetAutomaticPurge Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementSetAutomaticPurge(name: string, args: ManagementSetAutomaticPurgeArgs, opts?: CustomResourceOptions);
@overload
def ManagementSetAutomaticPurge(resource_name: str,
args: ManagementSetAutomaticPurgeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementSetAutomaticPurge(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
keep_sessions_by_count: Optional[bool] = None,
keep_sessions_by_days: Optional[bool] = None,
management_set_automatic_purge_id: Optional[str] = None,
number_of_days_to_keep: Optional[float] = None,
number_of_sessions_to_keep: Optional[float] = None,
scheduling: Optional[Mapping[str, str]] = None)
func NewManagementSetAutomaticPurge(ctx *Context, name string, args ManagementSetAutomaticPurgeArgs, opts ...ResourceOption) (*ManagementSetAutomaticPurge, error)
public ManagementSetAutomaticPurge(string name, ManagementSetAutomaticPurgeArgs args, CustomResourceOptions? opts = null)
public ManagementSetAutomaticPurge(String name, ManagementSetAutomaticPurgeArgs args)
public ManagementSetAutomaticPurge(String name, ManagementSetAutomaticPurgeArgs args, CustomResourceOptions options)
type: checkpoint:ManagementSetAutomaticPurge
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ManagementSetAutomaticPurgeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ManagementSetAutomaticPurgeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagementSetAutomaticPurgeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementSetAutomaticPurgeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementSetAutomaticPurgeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var managementSetAutomaticPurgeResource = new Checkpoint.ManagementSetAutomaticPurge("managementSetAutomaticPurgeResource", new()
{
Enabled = false,
KeepSessionsByCount = false,
KeepSessionsByDays = false,
ManagementSetAutomaticPurgeId = "string",
NumberOfDaysToKeep = 0,
NumberOfSessionsToKeep = 0,
Scheduling =
{
{ "string", "string" },
},
});
example, err := checkpoint.NewManagementSetAutomaticPurge(ctx, "managementSetAutomaticPurgeResource", &checkpoint.ManagementSetAutomaticPurgeArgs{
Enabled: pulumi.Bool(false),
KeepSessionsByCount: pulumi.Bool(false),
KeepSessionsByDays: pulumi.Bool(false),
ManagementSetAutomaticPurgeId: pulumi.String("string"),
NumberOfDaysToKeep: pulumi.Float64(0),
NumberOfSessionsToKeep: pulumi.Float64(0),
Scheduling: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var managementSetAutomaticPurgeResource = new ManagementSetAutomaticPurge("managementSetAutomaticPurgeResource", ManagementSetAutomaticPurgeArgs.builder()
.enabled(false)
.keepSessionsByCount(false)
.keepSessionsByDays(false)
.managementSetAutomaticPurgeId("string")
.numberOfDaysToKeep(0)
.numberOfSessionsToKeep(0)
.scheduling(Map.of("string", "string"))
.build());
management_set_automatic_purge_resource = checkpoint.ManagementSetAutomaticPurge("managementSetAutomaticPurgeResource",
enabled=False,
keep_sessions_by_count=False,
keep_sessions_by_days=False,
management_set_automatic_purge_id="string",
number_of_days_to_keep=0,
number_of_sessions_to_keep=0,
scheduling={
"string": "string",
})
const managementSetAutomaticPurgeResource = new checkpoint.ManagementSetAutomaticPurge("managementSetAutomaticPurgeResource", {
enabled: false,
keepSessionsByCount: false,
keepSessionsByDays: false,
managementSetAutomaticPurgeId: "string",
numberOfDaysToKeep: 0,
numberOfSessionsToKeep: 0,
scheduling: {
string: "string",
},
});
type: checkpoint:ManagementSetAutomaticPurge
properties:
enabled: false
keepSessionsByCount: false
keepSessionsByDays: false
managementSetAutomaticPurgeId: string
numberOfDaysToKeep: 0
numberOfSessionsToKeep: 0
scheduling:
string: string
ManagementSetAutomaticPurge Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagementSetAutomaticPurge resource accepts the following input properties:
- Enabled bool
- Turn on/off the automatic-purge feature.
- Keep
Sessions boolBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- Keep
Sessions boolBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- Management
Set stringAutomatic Purge Id - Number
Of doubleDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- Number
Of doubleSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- Scheduling Dictionary<string, string>
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- Enabled bool
- Turn on/off the automatic-purge feature.
- Keep
Sessions boolBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- Keep
Sessions boolBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- Management
Set stringAutomatic Purge Id - Number
Of float64Days To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- Number
Of float64Sessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- Scheduling map[string]string
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled Boolean
- Turn on/off the automatic-purge feature.
- keep
Sessions BooleanBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep
Sessions BooleanBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management
Set StringAutomatic Purge Id - number
Of DoubleDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number
Of DoubleSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling Map<String,String>
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled boolean
- Turn on/off the automatic-purge feature.
- keep
Sessions booleanBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep
Sessions booleanBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management
Set stringAutomatic Purge Id - number
Of numberDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number
Of numberSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling {[key: string]: string}
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled bool
- Turn on/off the automatic-purge feature.
- keep_
sessions_ boolby_ count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep_
sessions_ boolby_ days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management_
set_ strautomatic_ purge_ id - number_
of_ floatdays_ to_ keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number_
of_ floatsessions_ to_ keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling Mapping[str, str]
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled Boolean
- Turn on/off the automatic-purge feature.
- keep
Sessions BooleanBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep
Sessions BooleanBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management
Set StringAutomatic Purge Id - number
Of NumberDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number
Of NumberSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling Map<String>
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementSetAutomaticPurge resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ManagementSetAutomaticPurge Resource
Get an existing ManagementSetAutomaticPurge resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ManagementSetAutomaticPurgeState, opts?: CustomResourceOptions): ManagementSetAutomaticPurge
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
keep_sessions_by_count: Optional[bool] = None,
keep_sessions_by_days: Optional[bool] = None,
management_set_automatic_purge_id: Optional[str] = None,
number_of_days_to_keep: Optional[float] = None,
number_of_sessions_to_keep: Optional[float] = None,
scheduling: Optional[Mapping[str, str]] = None) -> ManagementSetAutomaticPurge
func GetManagementSetAutomaticPurge(ctx *Context, name string, id IDInput, state *ManagementSetAutomaticPurgeState, opts ...ResourceOption) (*ManagementSetAutomaticPurge, error)
public static ManagementSetAutomaticPurge Get(string name, Input<string> id, ManagementSetAutomaticPurgeState? state, CustomResourceOptions? opts = null)
public static ManagementSetAutomaticPurge get(String name, Output<String> id, ManagementSetAutomaticPurgeState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementSetAutomaticPurge get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Enabled bool
- Turn on/off the automatic-purge feature.
- Keep
Sessions boolBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- Keep
Sessions boolBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- Management
Set stringAutomatic Purge Id - Number
Of doubleDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- Number
Of doubleSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- Scheduling Dictionary<string, string>
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- Enabled bool
- Turn on/off the automatic-purge feature.
- Keep
Sessions boolBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- Keep
Sessions boolBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- Management
Set stringAutomatic Purge Id - Number
Of float64Days To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- Number
Of float64Sessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- Scheduling map[string]string
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled Boolean
- Turn on/off the automatic-purge feature.
- keep
Sessions BooleanBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep
Sessions BooleanBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management
Set StringAutomatic Purge Id - number
Of DoubleDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number
Of DoubleSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling Map<String,String>
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled boolean
- Turn on/off the automatic-purge feature.
- keep
Sessions booleanBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep
Sessions booleanBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management
Set stringAutomatic Purge Id - number
Of numberDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number
Of numberSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling {[key: string]: string}
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled bool
- Turn on/off the automatic-purge feature.
- keep_
sessions_ boolby_ count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep_
sessions_ boolby_ days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management_
set_ strautomatic_ purge_ id - number_
of_ floatdays_ to_ keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number_
of_ floatsessions_ to_ keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling Mapping[str, str]
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
- enabled Boolean
- Turn on/off the automatic-purge feature.
- keep
Sessions BooleanBy Count - Whether or not to keep the latest N sessions. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-date" field must be set to 'true'.
- keep
Sessions BooleanBy Days - Whether or not to keep the sessions for D days. Note: when the automatic purge feature is enabled, this field and/or the "keep-sessions-by-count" field must be set to 'true'.
- management
Set StringAutomatic Purge Id - number
Of NumberDays To Keep - When "keep-sessions-by-days = true" this sets the number of days to keep the sessions.
- number
Of NumberSessions To Keep - When "keep-sessions-by-count = true" this sets the number of newest sessions to preserve, by the sessions's publish date.
- scheduling Map<String>
- When to purge sessions that do not meet the "keep" criteria. Note: when the automatic purge feature is enabled, this field must be set.scheduling blocks are documented below.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.