1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. SystemAutodeleteDlpfilesautodeletion
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.SystemAutodeleteDlpfilesautodeletion

Explore with Pulumi AI

fortimanager logo
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

    Automatic deletion policy for DLP archives.

    This resource is a sub resource for variable dlp_files_auto_deletion of resource fortimanager.SystemAutodelete. Conflict and overwrite may occur if use both of them.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortimanager from "@pulumi/fortimanager";
    
    const trname = new fortimanager.SystemAutodeleteDlpfilesautodeletion("trname", {
        retention: "days",
        runat: 2,
        status: "enable",
        value: 10,
    });
    
    import pulumi
    import pulumi_fortimanager as fortimanager
    
    trname = fortimanager.SystemAutodeleteDlpfilesautodeletion("trname",
        retention="days",
        runat=2,
        status="enable",
        value=10)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fortimanager.NewSystemAutodeleteDlpfilesautodeletion(ctx, "trname", &fortimanager.SystemAutodeleteDlpfilesautodeletionArgs{
    			Retention: pulumi.String("days"),
    			Runat:     pulumi.Float64(2),
    			Status:    pulumi.String("enable"),
    			Value:     pulumi.Float64(10),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortimanager = Pulumi.Fortimanager;
    
    return await Deployment.RunAsync(() => 
    {
        var trname = new Fortimanager.SystemAutodeleteDlpfilesautodeletion("trname", new()
        {
            Retention = "days",
            Runat = 2,
            Status = "enable",
            Value = 10,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortimanager.SystemAutodeleteDlpfilesautodeletion;
    import com.pulumi.fortimanager.SystemAutodeleteDlpfilesautodeletionArgs;
    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 trname = new SystemAutodeleteDlpfilesautodeletion("trname", SystemAutodeleteDlpfilesautodeletionArgs.builder()
                .retention("days")
                .runat("2")
                .status("enable")
                .value("10")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortimanager:SystemAutodeleteDlpfilesautodeletion
        properties:
          retention: days
          runat: '2'
          status: enable
          value: '10'
    

    Create SystemAutodeleteDlpfilesautodeletion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SystemAutodeleteDlpfilesautodeletion(name: string, args?: SystemAutodeleteDlpfilesautodeletionArgs, opts?: CustomResourceOptions);
    @overload
    def SystemAutodeleteDlpfilesautodeletion(resource_name: str,
                                             args: Optional[SystemAutodeleteDlpfilesautodeletionArgs] = None,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemAutodeleteDlpfilesautodeletion(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             retention: Optional[str] = None,
                                             runat: Optional[float] = None,
                                             status: Optional[str] = None,
                                             system_autodelete_dlpfilesautodeletion_id: Optional[str] = None,
                                             value: Optional[float] = None)
    func NewSystemAutodeleteDlpfilesautodeletion(ctx *Context, name string, args *SystemAutodeleteDlpfilesautodeletionArgs, opts ...ResourceOption) (*SystemAutodeleteDlpfilesautodeletion, error)
    public SystemAutodeleteDlpfilesautodeletion(string name, SystemAutodeleteDlpfilesautodeletionArgs? args = null, CustomResourceOptions? opts = null)
    public SystemAutodeleteDlpfilesautodeletion(String name, SystemAutodeleteDlpfilesautodeletionArgs args)
    public SystemAutodeleteDlpfilesautodeletion(String name, SystemAutodeleteDlpfilesautodeletionArgs args, CustomResourceOptions options)
    
    type: fortimanager:SystemAutodeleteDlpfilesautodeletion
    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 SystemAutodeleteDlpfilesautodeletionArgs
    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 SystemAutodeleteDlpfilesautodeletionArgs
    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 SystemAutodeleteDlpfilesautodeletionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemAutodeleteDlpfilesautodeletionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemAutodeleteDlpfilesautodeletionArgs
    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 systemAutodeleteDlpfilesautodeletionResource = new Fortimanager.SystemAutodeleteDlpfilesautodeletion("systemAutodeleteDlpfilesautodeletionResource", new()
    {
        Retention = "string",
        Runat = 0,
        Status = "string",
        SystemAutodeleteDlpfilesautodeletionId = "string",
        Value = 0,
    });
    
    example, err := fortimanager.NewSystemAutodeleteDlpfilesautodeletion(ctx, "systemAutodeleteDlpfilesautodeletionResource", &fortimanager.SystemAutodeleteDlpfilesautodeletionArgs{
    Retention: pulumi.String("string"),
    Runat: pulumi.Float64(0),
    Status: pulumi.String("string"),
    SystemAutodeleteDlpfilesautodeletionId: pulumi.String("string"),
    Value: pulumi.Float64(0),
    })
    
    var systemAutodeleteDlpfilesautodeletionResource = new SystemAutodeleteDlpfilesautodeletion("systemAutodeleteDlpfilesautodeletionResource", SystemAutodeleteDlpfilesautodeletionArgs.builder()
        .retention("string")
        .runat(0)
        .status("string")
        .systemAutodeleteDlpfilesautodeletionId("string")
        .value(0)
        .build());
    
    system_autodelete_dlpfilesautodeletion_resource = fortimanager.SystemAutodeleteDlpfilesautodeletion("systemAutodeleteDlpfilesautodeletionResource",
        retention="string",
        runat=0,
        status="string",
        system_autodelete_dlpfilesautodeletion_id="string",
        value=0)
    
    const systemAutodeleteDlpfilesautodeletionResource = new fortimanager.SystemAutodeleteDlpfilesautodeletion("systemAutodeleteDlpfilesautodeletionResource", {
        retention: "string",
        runat: 0,
        status: "string",
        systemAutodeleteDlpfilesautodeletionId: "string",
        value: 0,
    });
    
    type: fortimanager:SystemAutodeleteDlpfilesautodeletion
    properties:
        retention: string
        runat: 0
        status: string
        systemAutodeleteDlpfilesautodeletionId: string
        value: 0
    

    SystemAutodeleteDlpfilesautodeletion 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 SystemAutodeleteDlpfilesautodeletion resource accepts the following input properties:

    Retention string
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    Runat double
    Automatic deletion run at (0 - 23) o'clock.
    Status string
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    SystemAutodeleteDlpfilesautodeletionId string
    an identifier for the resource.
    Value double
    Automatic deletion in x days, weeks, or months.
    Retention string
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    Runat float64
    Automatic deletion run at (0 - 23) o'clock.
    Status string
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    SystemAutodeleteDlpfilesautodeletionId string
    an identifier for the resource.
    Value float64
    Automatic deletion in x days, weeks, or months.
    retention String
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat Double
    Automatic deletion run at (0 - 23) o'clock.
    status String
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    systemAutodeleteDlpfilesautodeletionId String
    an identifier for the resource.
    value Double
    Automatic deletion in x days, weeks, or months.
    retention string
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat number
    Automatic deletion run at (0 - 23) o'clock.
    status string
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    systemAutodeleteDlpfilesautodeletionId string
    an identifier for the resource.
    value number
    Automatic deletion in x days, weeks, or months.
    retention str
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat float
    Automatic deletion run at (0 - 23) o'clock.
    status str
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    system_autodelete_dlpfilesautodeletion_id str
    an identifier for the resource.
    value float
    Automatic deletion in x days, weeks, or months.
    retention String
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat Number
    Automatic deletion run at (0 - 23) o'clock.
    status String
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    systemAutodeleteDlpfilesautodeletionId String
    an identifier for the resource.
    value Number
    Automatic deletion in x days, weeks, or months.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SystemAutodeleteDlpfilesautodeletion 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 SystemAutodeleteDlpfilesautodeletion Resource

    Get an existing SystemAutodeleteDlpfilesautodeletion 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?: SystemAutodeleteDlpfilesautodeletionState, opts?: CustomResourceOptions): SystemAutodeleteDlpfilesautodeletion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            retention: Optional[str] = None,
            runat: Optional[float] = None,
            status: Optional[str] = None,
            system_autodelete_dlpfilesautodeletion_id: Optional[str] = None,
            value: Optional[float] = None) -> SystemAutodeleteDlpfilesautodeletion
    func GetSystemAutodeleteDlpfilesautodeletion(ctx *Context, name string, id IDInput, state *SystemAutodeleteDlpfilesautodeletionState, opts ...ResourceOption) (*SystemAutodeleteDlpfilesautodeletion, error)
    public static SystemAutodeleteDlpfilesautodeletion Get(string name, Input<string> id, SystemAutodeleteDlpfilesautodeletionState? state, CustomResourceOptions? opts = null)
    public static SystemAutodeleteDlpfilesautodeletion get(String name, Output<String> id, SystemAutodeleteDlpfilesautodeletionState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:SystemAutodeleteDlpfilesautodeletion    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.
    The following state arguments are supported:
    Retention string
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    Runat double
    Automatic deletion run at (0 - 23) o'clock.
    Status string
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    SystemAutodeleteDlpfilesautodeletionId string
    an identifier for the resource.
    Value double
    Automatic deletion in x days, weeks, or months.
    Retention string
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    Runat float64
    Automatic deletion run at (0 - 23) o'clock.
    Status string
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    SystemAutodeleteDlpfilesautodeletionId string
    an identifier for the resource.
    Value float64
    Automatic deletion in x days, weeks, or months.
    retention String
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat Double
    Automatic deletion run at (0 - 23) o'clock.
    status String
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    systemAutodeleteDlpfilesautodeletionId String
    an identifier for the resource.
    value Double
    Automatic deletion in x days, weeks, or months.
    retention string
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat number
    Automatic deletion run at (0 - 23) o'clock.
    status string
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    systemAutodeleteDlpfilesautodeletionId string
    an identifier for the resource.
    value number
    Automatic deletion in x days, weeks, or months.
    retention str
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat float
    Automatic deletion run at (0 - 23) o'clock.
    status str
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    system_autodelete_dlpfilesautodeletion_id str
    an identifier for the resource.
    value float
    Automatic deletion in x days, weeks, or months.
    retention String
    Automatic deletion in days, weeks, or months. days - Auto-delete data older than days. weeks - Auto-delete data older than weeks. months - Auto-delete data older than months. Valid values: days, weeks, months.
    runat Number
    Automatic deletion run at (0 - 23) o'clock.
    status String
    Enable/disable automatic deletion. disable - Disable automatic deletion. enable - Enable automatic deletion. Valid values: disable, enable.
    systemAutodeleteDlpfilesautodeletionId String
    an identifier for the resource.
    value Number
    Automatic deletion in x days, weeks, or months.

    Import

    System AutoDeleteDlpFilesAutoDeletion can be imported using any of these accepted formats:

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/systemAutodeleteDlpfilesautodeletion:SystemAutodeleteDlpfilesautodeletion labelname SystemAutoDeleteDlpFilesAutoDeletion
    

    $ unset “FORTIMANAGER_IMPORT_TABLE”

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    fortimanager fortinetdev/terraform-provider-fortimanager
    License
    Notes
    This Pulumi package is based on the fortimanager Terraform Provider.
    fortimanager logo
    fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev