1. Packages
  2. Checkpoint Provider
  3. API Docs
  4. ManagementDataTypeFileAttributes
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

checkpoint.ManagementDataTypeFileAttributes

Explore with Pulumi AI

This resource allows you to execute Check Point Data Type File Attributes.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";

const example = new checkpoint.ManagementDataTypeFileAttributes("example", {
    fileGroupsLists: ["Viewer"],
    fileNameContains: "expression",
    fileSize: 14,
    matchByFileName: true,
    matchByFileSize: true,
    matchByFileType: true,
});
Copy
import pulumi
import pulumi_checkpoint as checkpoint

example = checkpoint.ManagementDataTypeFileAttributes("example",
    file_groups_lists=["Viewer"],
    file_name_contains="expression",
    file_size=14,
    match_by_file_name=True,
    match_by_file_size=True,
    match_by_file_type=True)
Copy
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.NewManagementDataTypeFileAttributes(ctx, "example", &checkpoint.ManagementDataTypeFileAttributesArgs{
			FileGroupsLists: pulumi.StringArray{
				pulumi.String("Viewer"),
			},
			FileNameContains: pulumi.String("expression"),
			FileSize:         pulumi.Float64(14),
			MatchByFileName:  pulumi.Bool(true),
			MatchByFileSize:  pulumi.Bool(true),
			MatchByFileType:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;

return await Deployment.RunAsync(() => 
{
    var example = new Checkpoint.ManagementDataTypeFileAttributes("example", new()
    {
        FileGroupsLists = new[]
        {
            "Viewer",
        },
        FileNameContains = "expression",
        FileSize = 14,
        MatchByFileName = true,
        MatchByFileSize = true,
        MatchByFileType = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementDataTypeFileAttributes;
import com.pulumi.checkpoint.ManagementDataTypeFileAttributesArgs;
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 ManagementDataTypeFileAttributes("example", ManagementDataTypeFileAttributesArgs.builder()
            .fileGroupsLists("Viewer")
            .fileNameContains("expression")
            .fileSize(14)
            .matchByFileName(true)
            .matchByFileSize(true)
            .matchByFileType(true)
            .build());

    }
}
Copy
resources:
  example:
    type: checkpoint:ManagementDataTypeFileAttributes
    properties:
      fileGroupsLists:
        - Viewer
      fileNameContains: expression
      fileSize: 14
      matchByFileName: true
      matchByFileSize: true
      matchByFileType: true
Copy

Create ManagementDataTypeFileAttributes Resource

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

Constructor syntax

new ManagementDataTypeFileAttributes(name: string, args?: ManagementDataTypeFileAttributesArgs, opts?: CustomResourceOptions);
@overload
def ManagementDataTypeFileAttributes(resource_name: str,
                                     args: Optional[ManagementDataTypeFileAttributesArgs] = None,
                                     opts: Optional[ResourceOptions] = None)

@overload
def ManagementDataTypeFileAttributes(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     color: Optional[str] = None,
                                     comments: Optional[str] = None,
                                     description: Optional[str] = None,
                                     file_groups_lists: Optional[Sequence[str]] = None,
                                     file_name_contains: Optional[str] = None,
                                     file_size: Optional[float] = None,
                                     ignore_errors: Optional[bool] = None,
                                     ignore_warnings: Optional[bool] = None,
                                     management_data_type_file_attributes_id: Optional[str] = None,
                                     match_by_file_name: Optional[bool] = None,
                                     match_by_file_size: Optional[bool] = None,
                                     match_by_file_type: Optional[bool] = None,
                                     name: Optional[str] = None,
                                     tags: Optional[Sequence[str]] = None)
func NewManagementDataTypeFileAttributes(ctx *Context, name string, args *ManagementDataTypeFileAttributesArgs, opts ...ResourceOption) (*ManagementDataTypeFileAttributes, error)
public ManagementDataTypeFileAttributes(string name, ManagementDataTypeFileAttributesArgs? args = null, CustomResourceOptions? opts = null)
public ManagementDataTypeFileAttributes(String name, ManagementDataTypeFileAttributesArgs args)
public ManagementDataTypeFileAttributes(String name, ManagementDataTypeFileAttributesArgs args, CustomResourceOptions options)
type: checkpoint:ManagementDataTypeFileAttributes
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ManagementDataTypeFileAttributesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ManagementDataTypeFileAttributesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ManagementDataTypeFileAttributesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ManagementDataTypeFileAttributesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ManagementDataTypeFileAttributesArgs
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 managementDataTypeFileAttributesResource = new Checkpoint.ManagementDataTypeFileAttributes("managementDataTypeFileAttributesResource", new()
{
    Color = "string",
    Comments = "string",
    Description = "string",
    FileGroupsLists = new[]
    {
        "string",
    },
    FileNameContains = "string",
    FileSize = 0,
    IgnoreErrors = false,
    IgnoreWarnings = false,
    ManagementDataTypeFileAttributesId = "string",
    MatchByFileName = false,
    MatchByFileSize = false,
    MatchByFileType = false,
    Name = "string",
    Tags = new[]
    {
        "string",
    },
});
Copy
example, err := checkpoint.NewManagementDataTypeFileAttributes(ctx, "managementDataTypeFileAttributesResource", &checkpoint.ManagementDataTypeFileAttributesArgs{
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
Description: pulumi.String("string"),
FileGroupsLists: pulumi.StringArray{
pulumi.String("string"),
},
FileNameContains: pulumi.String("string"),
FileSize: pulumi.Float64(0),
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
ManagementDataTypeFileAttributesId: pulumi.String("string"),
MatchByFileName: pulumi.Bool(false),
MatchByFileSize: pulumi.Bool(false),
MatchByFileType: pulumi.Bool(false),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var managementDataTypeFileAttributesResource = new ManagementDataTypeFileAttributes("managementDataTypeFileAttributesResource", ManagementDataTypeFileAttributesArgs.builder()
    .color("string")
    .comments("string")
    .description("string")
    .fileGroupsLists("string")
    .fileNameContains("string")
    .fileSize(0)
    .ignoreErrors(false)
    .ignoreWarnings(false)
    .managementDataTypeFileAttributesId("string")
    .matchByFileName(false)
    .matchByFileSize(false)
    .matchByFileType(false)
    .name("string")
    .tags("string")
    .build());
Copy
management_data_type_file_attributes_resource = checkpoint.ManagementDataTypeFileAttributes("managementDataTypeFileAttributesResource",
    color="string",
    comments="string",
    description="string",
    file_groups_lists=["string"],
    file_name_contains="string",
    file_size=0,
    ignore_errors=False,
    ignore_warnings=False,
    management_data_type_file_attributes_id="string",
    match_by_file_name=False,
    match_by_file_size=False,
    match_by_file_type=False,
    name="string",
    tags=["string"])
Copy
const managementDataTypeFileAttributesResource = new checkpoint.ManagementDataTypeFileAttributes("managementDataTypeFileAttributesResource", {
    color: "string",
    comments: "string",
    description: "string",
    fileGroupsLists: ["string"],
    fileNameContains: "string",
    fileSize: 0,
    ignoreErrors: false,
    ignoreWarnings: false,
    managementDataTypeFileAttributesId: "string",
    matchByFileName: false,
    matchByFileSize: false,
    matchByFileType: false,
    name: "string",
    tags: ["string"],
});
Copy
type: checkpoint:ManagementDataTypeFileAttributes
properties:
    color: string
    comments: string
    description: string
    fileGroupsLists:
        - string
    fileNameContains: string
    fileSize: 0
    ignoreErrors: false
    ignoreWarnings: false
    managementDataTypeFileAttributesId: string
    matchByFileName: false
    matchByFileSize: false
    matchByFileType: false
    name: string
    tags:
        - string
Copy

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

Color string
Color of the object. Should be one of existing colors.
Comments string
Comments string.
Description string
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
FileGroupsLists List<string>
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
FileNameContains string
File name should contain the expression.
FileSize double
Min File size in KB.
IgnoreErrors bool
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
IgnoreWarnings bool
Apply changes ignoring warnings.
ManagementDataTypeFileAttributesId string
MatchByFileName bool
Determine whether to consider file name.
MatchByFileSize bool
Determine whether to consider file size.
MatchByFileType bool
Determine whether to consider file type.
Name string
Object name.
Tags List<string>
Collection of tag identifiers.tags blocks are documented below.
Color string
Color of the object. Should be one of existing colors.
Comments string
Comments string.
Description string
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
FileGroupsLists []string
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
FileNameContains string
File name should contain the expression.
FileSize float64
Min File size in KB.
IgnoreErrors bool
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
IgnoreWarnings bool
Apply changes ignoring warnings.
ManagementDataTypeFileAttributesId string
MatchByFileName bool
Determine whether to consider file name.
MatchByFileSize bool
Determine whether to consider file size.
MatchByFileType bool
Determine whether to consider file type.
Name string
Object name.
Tags []string
Collection of tag identifiers.tags blocks are documented below.
color String
Color of the object. Should be one of existing colors.
comments String
Comments string.
description String
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
fileGroupsLists List<String>
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
fileNameContains String
File name should contain the expression.
fileSize Double
Min File size in KB.
ignoreErrors Boolean
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignoreWarnings Boolean
Apply changes ignoring warnings.
managementDataTypeFileAttributesId String
matchByFileName Boolean
Determine whether to consider file name.
matchByFileSize Boolean
Determine whether to consider file size.
matchByFileType Boolean
Determine whether to consider file type.
name String
Object name.
tags List<String>
Collection of tag identifiers.tags blocks are documented below.
color string
Color of the object. Should be one of existing colors.
comments string
Comments string.
description string
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
fileGroupsLists string[]
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
fileNameContains string
File name should contain the expression.
fileSize number
Min File size in KB.
ignoreErrors boolean
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignoreWarnings boolean
Apply changes ignoring warnings.
managementDataTypeFileAttributesId string
matchByFileName boolean
Determine whether to consider file name.
matchByFileSize boolean
Determine whether to consider file size.
matchByFileType boolean
Determine whether to consider file type.
name string
Object name.
tags string[]
Collection of tag identifiers.tags blocks are documented below.
color str
Color of the object. Should be one of existing colors.
comments str
Comments string.
description str
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
file_groups_lists Sequence[str]
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
file_name_contains str
File name should contain the expression.
file_size float
Min File size in KB.
ignore_errors bool
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignore_warnings bool
Apply changes ignoring warnings.
management_data_type_file_attributes_id str
match_by_file_name bool
Determine whether to consider file name.
match_by_file_size bool
Determine whether to consider file size.
match_by_file_type bool
Determine whether to consider file type.
name str
Object name.
tags Sequence[str]
Collection of tag identifiers.tags blocks are documented below.
color String
Color of the object. Should be one of existing colors.
comments String
Comments string.
description String
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
fileGroupsLists List<String>
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
fileNameContains String
File name should contain the expression.
fileSize Number
Min File size in KB.
ignoreErrors Boolean
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignoreWarnings Boolean
Apply changes ignoring warnings.
managementDataTypeFileAttributesId String
matchByFileName Boolean
Determine whether to consider file name.
matchByFileSize Boolean
Determine whether to consider file size.
matchByFileType Boolean
Determine whether to consider file type.
name String
Object name.
tags List<String>
Collection of tag identifiers.tags blocks are documented below.

Outputs

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

Get an existing ManagementDataTypeFileAttributes 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?: ManagementDataTypeFileAttributesState, opts?: CustomResourceOptions): ManagementDataTypeFileAttributes
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        color: Optional[str] = None,
        comments: Optional[str] = None,
        description: Optional[str] = None,
        file_groups_lists: Optional[Sequence[str]] = None,
        file_name_contains: Optional[str] = None,
        file_size: Optional[float] = None,
        ignore_errors: Optional[bool] = None,
        ignore_warnings: Optional[bool] = None,
        management_data_type_file_attributes_id: Optional[str] = None,
        match_by_file_name: Optional[bool] = None,
        match_by_file_size: Optional[bool] = None,
        match_by_file_type: Optional[bool] = None,
        name: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> ManagementDataTypeFileAttributes
func GetManagementDataTypeFileAttributes(ctx *Context, name string, id IDInput, state *ManagementDataTypeFileAttributesState, opts ...ResourceOption) (*ManagementDataTypeFileAttributes, error)
public static ManagementDataTypeFileAttributes Get(string name, Input<string> id, ManagementDataTypeFileAttributesState? state, CustomResourceOptions? opts = null)
public static ManagementDataTypeFileAttributes get(String name, Output<String> id, ManagementDataTypeFileAttributesState state, CustomResourceOptions options)
resources:  _:    type: checkpoint:ManagementDataTypeFileAttributes    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Color string
Color of the object. Should be one of existing colors.
Comments string
Comments string.
Description string
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
FileGroupsLists List<string>
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
FileNameContains string
File name should contain the expression.
FileSize double
Min File size in KB.
IgnoreErrors bool
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
IgnoreWarnings bool
Apply changes ignoring warnings.
ManagementDataTypeFileAttributesId string
MatchByFileName bool
Determine whether to consider file name.
MatchByFileSize bool
Determine whether to consider file size.
MatchByFileType bool
Determine whether to consider file type.
Name string
Object name.
Tags List<string>
Collection of tag identifiers.tags blocks are documented below.
Color string
Color of the object. Should be one of existing colors.
Comments string
Comments string.
Description string
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
FileGroupsLists []string
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
FileNameContains string
File name should contain the expression.
FileSize float64
Min File size in KB.
IgnoreErrors bool
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
IgnoreWarnings bool
Apply changes ignoring warnings.
ManagementDataTypeFileAttributesId string
MatchByFileName bool
Determine whether to consider file name.
MatchByFileSize bool
Determine whether to consider file size.
MatchByFileType bool
Determine whether to consider file type.
Name string
Object name.
Tags []string
Collection of tag identifiers.tags blocks are documented below.
color String
Color of the object. Should be one of existing colors.
comments String
Comments string.
description String
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
fileGroupsLists List<String>
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
fileNameContains String
File name should contain the expression.
fileSize Double
Min File size in KB.
ignoreErrors Boolean
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignoreWarnings Boolean
Apply changes ignoring warnings.
managementDataTypeFileAttributesId String
matchByFileName Boolean
Determine whether to consider file name.
matchByFileSize Boolean
Determine whether to consider file size.
matchByFileType Boolean
Determine whether to consider file type.
name String
Object name.
tags List<String>
Collection of tag identifiers.tags blocks are documented below.
color string
Color of the object. Should be one of existing colors.
comments string
Comments string.
description string
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
fileGroupsLists string[]
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
fileNameContains string
File name should contain the expression.
fileSize number
Min File size in KB.
ignoreErrors boolean
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignoreWarnings boolean
Apply changes ignoring warnings.
managementDataTypeFileAttributesId string
matchByFileName boolean
Determine whether to consider file name.
matchByFileSize boolean
Determine whether to consider file size.
matchByFileType boolean
Determine whether to consider file type.
name string
Object name.
tags string[]
Collection of tag identifiers.tags blocks are documented below.
color str
Color of the object. Should be one of existing colors.
comments str
Comments string.
description str
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
file_groups_lists Sequence[str]
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
file_name_contains str
File name should contain the expression.
file_size float
Min File size in KB.
ignore_errors bool
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignore_warnings bool
Apply changes ignoring warnings.
management_data_type_file_attributes_id str
match_by_file_name bool
Determine whether to consider file name.
match_by_file_size bool
Determine whether to consider file size.
match_by_file_type bool
Determine whether to consider file type.
name str
Object name.
tags Sequence[str]
Collection of tag identifiers.tags blocks are documented below.
color String
Color of the object. Should be one of existing colors.
comments String
Comments string.
description String
For built-in data types, the description explains the purpose of this type of data representation. For custom-made data types, you can use this field to provide more details.
fileGroupsLists List<String>
The file must be one of the types specified in the list. Identified by name or UID.file_groups_list blocks are documented below.
fileNameContains String
File name should contain the expression.
fileSize Number
Min File size in KB.
ignoreErrors Boolean
Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignoreWarnings Boolean
Apply changes ignoring warnings.
managementDataTypeFileAttributesId String
matchByFileName Boolean
Determine whether to consider file name.
matchByFileSize Boolean
Determine whether to consider file size.
matchByFileType Boolean
Determine whether to consider file type.
name String
Object name.
tags List<String>
Collection of tag identifiers.tags blocks are documented below.

Package Details

Repository
checkpoint checkpointsw/terraform-provider-checkpoint
License
Notes
This Pulumi package is based on the checkpoint Terraform Provider.