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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
example:
type: checkpoint:ManagementDataTypeFileAttributes
properties:
fileGroupsLists:
- Viewer
fileNameContains: expression
fileSize: 14
matchByFileName: true
matchByFileSize: true
matchByFileType: true
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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"])
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"],
});
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
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.
- File
Groups List<string>Lists - 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 stringContains - File name should contain the expression.
- File
Size double - 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 stringType File Attributes Id - Match
By boolFile Name - Determine whether to consider file name.
- Match
By boolFile Size - Determine whether to consider file size.
- Match
By boolFile Type - Determine whether to consider file type.
- Name string
- Object name.
- 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.
- File
Groups []stringLists - 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 stringContains - File name should contain the expression.
- File
Size float64 - 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 stringType File Attributes Id - Match
By boolFile Name - Determine whether to consider file name.
- Match
By boolFile Size - Determine whether to consider file size.
- Match
By boolFile Type - Determine whether to consider file type.
- Name string
- Object name.
- []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.
- file
Groups List<String>Lists - 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 StringContains - File name should contain the expression.
- file
Size Double - Min File size in KB.
- ignore
Errors 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.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Data StringType File Attributes Id - match
By BooleanFile Name - Determine whether to consider file name.
- match
By BooleanFile Size - Determine whether to consider file size.
- match
By BooleanFile Type - Determine whether to consider file type.
- name String
- Object name.
- 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.
- file
Groups string[]Lists - 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 stringContains - File name should contain the expression.
- file
Size number - Min File size in KB.
- ignore
Errors 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.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Data stringType File Attributes Id - match
By booleanFile Name - Determine whether to consider file name.
- match
By booleanFile Size - Determine whether to consider file size.
- match
By booleanFile Type - Determine whether to consider file type.
- name string
- Object name.
- 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_ Sequence[str]lists - 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_ strcontains - 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_ strtype_ file_ attributes_ id - match_
by_ boolfile_ name - Determine whether to consider file name.
- match_
by_ boolfile_ size - Determine whether to consider file size.
- match_
by_ boolfile_ type - Determine whether to consider file type.
- name str
- Object name.
- 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.
- file
Groups List<String>Lists - 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 StringContains - File name should contain the expression.
- file
Size Number - Min File size in KB.
- ignore
Errors 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.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Data StringType File Attributes Id - match
By BooleanFile Name - Determine whether to consider file name.
- match
By BooleanFile Size - Determine whether to consider file size.
- match
By BooleanFile Type - Determine whether to consider file type.
- name String
- Object name.
- 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
- 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.
- 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.
- File
Groups List<string>Lists - 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 stringContains - File name should contain the expression.
- File
Size double - 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 stringType File Attributes Id - Match
By boolFile Name - Determine whether to consider file name.
- Match
By boolFile Size - Determine whether to consider file size.
- Match
By boolFile Type - Determine whether to consider file type.
- Name string
- Object name.
- 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.
- File
Groups []stringLists - 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 stringContains - File name should contain the expression.
- File
Size float64 - 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 stringType File Attributes Id - Match
By boolFile Name - Determine whether to consider file name.
- Match
By boolFile Size - Determine whether to consider file size.
- Match
By boolFile Type - Determine whether to consider file type.
- Name string
- Object name.
- []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.
- file
Groups List<String>Lists - 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 StringContains - File name should contain the expression.
- file
Size Double - Min File size in KB.
- ignore
Errors 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.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Data StringType File Attributes Id - match
By BooleanFile Name - Determine whether to consider file name.
- match
By BooleanFile Size - Determine whether to consider file size.
- match
By BooleanFile Type - Determine whether to consider file type.
- name String
- Object name.
- 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.
- file
Groups string[]Lists - 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 stringContains - File name should contain the expression.
- file
Size number - Min File size in KB.
- ignore
Errors 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.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Data stringType File Attributes Id - match
By booleanFile Name - Determine whether to consider file name.
- match
By booleanFile Size - Determine whether to consider file size.
- match
By booleanFile Type - Determine whether to consider file type.
- name string
- Object name.
- 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_ Sequence[str]lists - 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_ strcontains - 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_ strtype_ file_ attributes_ id - match_
by_ boolfile_ name - Determine whether to consider file name.
- match_
by_ boolfile_ size - Determine whether to consider file size.
- match_
by_ boolfile_ type - Determine whether to consider file type.
- name str
- Object name.
- 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.
- file
Groups List<String>Lists - 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 StringContains - File name should contain the expression.
- file
Size Number - Min File size in KB.
- ignore
Errors 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.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Data StringType File Attributes Id - match
By BooleanFile Name - Determine whether to consider file name.
- match
By BooleanFile Size - Determine whether to consider file size.
- match
By BooleanFile Type - Determine whether to consider file type.
- name String
- Object name.
- 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.