checkpoint.ManagementResourceCifs
Explore with Pulumi AI
This resource allows you to execute Check Point Resource Cifs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const cifs = new checkpoint.ManagementResourceCifs("cifs", {
allowedDiskAndPrintShares: [
{
serverName: "server1",
shareName: "share1",
},
{
serverName: "server2",
shareName: "share2",
},
],
blockRemoteRegistryAccess: false,
logAccessViolation: true,
logMappedShares: true,
});
import pulumi
import pulumi_checkpoint as checkpoint
cifs = checkpoint.ManagementResourceCifs("cifs",
allowed_disk_and_print_shares=[
{
"server_name": "server1",
"share_name": "share1",
},
{
"server_name": "server2",
"share_name": "share2",
},
],
block_remote_registry_access=False,
log_access_violation=True,
log_mapped_shares=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.NewManagementResourceCifs(ctx, "cifs", &checkpoint.ManagementResourceCifsArgs{
AllowedDiskAndPrintShares: checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArray{
&checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArgs{
ServerName: pulumi.String("server1"),
ShareName: pulumi.String("share1"),
},
&checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArgs{
ServerName: pulumi.String("server2"),
ShareName: pulumi.String("share2"),
},
},
BlockRemoteRegistryAccess: pulumi.Bool(false),
LogAccessViolation: pulumi.Bool(true),
LogMappedShares: 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 cifs = new Checkpoint.ManagementResourceCifs("cifs", new()
{
AllowedDiskAndPrintShares = new[]
{
new Checkpoint.Inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs
{
ServerName = "server1",
ShareName = "share1",
},
new Checkpoint.Inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs
{
ServerName = "server2",
ShareName = "share2",
},
},
BlockRemoteRegistryAccess = false,
LogAccessViolation = true,
LogMappedShares = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementResourceCifs;
import com.pulumi.checkpoint.ManagementResourceCifsArgs;
import com.pulumi.checkpoint.inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs;
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 cifs = new ManagementResourceCifs("cifs", ManagementResourceCifsArgs.builder()
.allowedDiskAndPrintShares(
ManagementResourceCifsAllowedDiskAndPrintShareArgs.builder()
.serverName("server1")
.shareName("share1")
.build(),
ManagementResourceCifsAllowedDiskAndPrintShareArgs.builder()
.serverName("server2")
.shareName("share2")
.build())
.blockRemoteRegistryAccess(false)
.logAccessViolation(true)
.logMappedShares(true)
.build());
}
}
resources:
cifs:
type: checkpoint:ManagementResourceCifs
properties:
allowedDiskAndPrintShares:
- serverName: server1
shareName: share1
- serverName: server2
shareName: share2
blockRemoteRegistryAccess: false
logAccessViolation: true
logMappedShares: true
Create ManagementResourceCifs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementResourceCifs(name: string, args: ManagementResourceCifsArgs, opts?: CustomResourceOptions);
@overload
def ManagementResourceCifs(resource_name: str,
args: ManagementResourceCifsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementResourceCifs(resource_name: str,
opts: Optional[ResourceOptions] = None,
allowed_disk_and_print_shares: Optional[Sequence[ManagementResourceCifsAllowedDiskAndPrintShareArgs]] = None,
block_remote_registry_access: Optional[bool] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
log_access_violation: Optional[bool] = None,
log_mapped_shares: Optional[bool] = None,
management_resource_cifs_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewManagementResourceCifs(ctx *Context, name string, args ManagementResourceCifsArgs, opts ...ResourceOption) (*ManagementResourceCifs, error)
public ManagementResourceCifs(string name, ManagementResourceCifsArgs args, CustomResourceOptions? opts = null)
public ManagementResourceCifs(String name, ManagementResourceCifsArgs args)
public ManagementResourceCifs(String name, ManagementResourceCifsArgs args, CustomResourceOptions options)
type: checkpoint:ManagementResourceCifs
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 ManagementResourceCifsArgs
- 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 ManagementResourceCifsArgs
- 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 ManagementResourceCifsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementResourceCifsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementResourceCifsArgs
- 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 managementResourceCifsResource = new Checkpoint.ManagementResourceCifs("managementResourceCifsResource", new()
{
AllowedDiskAndPrintShares = new[]
{
new Checkpoint.Inputs.ManagementResourceCifsAllowedDiskAndPrintShareArgs
{
ServerName = "string",
ShareName = "string",
},
},
BlockRemoteRegistryAccess = false,
Color = "string",
Comments = "string",
IgnoreErrors = false,
IgnoreWarnings = false,
LogAccessViolation = false,
LogMappedShares = false,
ManagementResourceCifsId = "string",
Name = "string",
Tags = new[]
{
"string",
},
});
example, err := checkpoint.NewManagementResourceCifs(ctx, "managementResourceCifsResource", &checkpoint.ManagementResourceCifsArgs{
AllowedDiskAndPrintShares: checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArray{
&checkpoint.ManagementResourceCifsAllowedDiskAndPrintShareArgs{
ServerName: pulumi.String("string"),
ShareName: pulumi.String("string"),
},
},
BlockRemoteRegistryAccess: pulumi.Bool(false),
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
LogAccessViolation: pulumi.Bool(false),
LogMappedShares: pulumi.Bool(false),
ManagementResourceCifsId: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var managementResourceCifsResource = new ManagementResourceCifs("managementResourceCifsResource", ManagementResourceCifsArgs.builder()
.allowedDiskAndPrintShares(ManagementResourceCifsAllowedDiskAndPrintShareArgs.builder()
.serverName("string")
.shareName("string")
.build())
.blockRemoteRegistryAccess(false)
.color("string")
.comments("string")
.ignoreErrors(false)
.ignoreWarnings(false)
.logAccessViolation(false)
.logMappedShares(false)
.managementResourceCifsId("string")
.name("string")
.tags("string")
.build());
management_resource_cifs_resource = checkpoint.ManagementResourceCifs("managementResourceCifsResource",
allowed_disk_and_print_shares=[{
"server_name": "string",
"share_name": "string",
}],
block_remote_registry_access=False,
color="string",
comments="string",
ignore_errors=False,
ignore_warnings=False,
log_access_violation=False,
log_mapped_shares=False,
management_resource_cifs_id="string",
name="string",
tags=["string"])
const managementResourceCifsResource = new checkpoint.ManagementResourceCifs("managementResourceCifsResource", {
allowedDiskAndPrintShares: [{
serverName: "string",
shareName: "string",
}],
blockRemoteRegistryAccess: false,
color: "string",
comments: "string",
ignoreErrors: false,
ignoreWarnings: false,
logAccessViolation: false,
logMappedShares: false,
managementResourceCifsId: "string",
name: "string",
tags: ["string"],
});
type: checkpoint:ManagementResourceCifs
properties:
allowedDiskAndPrintShares:
- serverName: string
shareName: string
blockRemoteRegistryAccess: false
color: string
comments: string
ignoreErrors: false
ignoreWarnings: false
logAccessViolation: false
logMappedShares: false
managementResourceCifsId: string
name: string
tags:
- string
ManagementResourceCifs 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 ManagementResourceCifs resource accepts the following input properties:
- List<Management
Resource Cifs Allowed Disk And Print Share> - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- Block
Remote boolRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- 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.
- Log
Access boolViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- bool
- Logs each share map attempt.
- Management
Resource stringCifs Id - Name string
- Object name.
- List<string>
- Collection of tag identifiers.tags blocks are documented below.
- []Management
Resource Cifs Allowed Disk And Print Share Args - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- Block
Remote boolRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- 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.
- Log
Access boolViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- bool
- Logs each share map attempt.
- Management
Resource stringCifs Id - Name string
- Object name.
- []string
- Collection of tag identifiers.tags blocks are documented below.
- List<Management
Resource Cifs Allowed Disk And Print Share> - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block
Remote BooleanRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- 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.
- log
Access BooleanViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- Boolean
- Logs each share map attempt.
- management
Resource StringCifs Id - name String
- Object name.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
- Management
Resource Cifs Allowed Disk And Print Share[] - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block
Remote booleanRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- 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.
- log
Access booleanViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- boolean
- Logs each share map attempt.
- management
Resource stringCifs Id - name string
- Object name.
- string[]
- Collection of tag identifiers.tags blocks are documented below.
- Sequence[Management
Resource Cifs Allowed Disk And Print Share Args] - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block_
remote_ boolregistry_ access - Blocks the ability to remotely manipulate a the window's registry.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- 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.
- log_
access_ boolviolation - Logs any attempt to violate the restrictions imposed by the Resource.
- bool
- Logs each share map attempt.
- management_
resource_ strcifs_ id - name str
- Object name.
- Sequence[str]
- Collection of tag identifiers.tags blocks are documented below.
- List<Property Map>
- The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block
Remote BooleanRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- 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.
- log
Access BooleanViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- Boolean
- Logs each share map attempt.
- management
Resource StringCifs Id - 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 ManagementResourceCifs 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 ManagementResourceCifs Resource
Get an existing ManagementResourceCifs 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?: ManagementResourceCifsState, opts?: CustomResourceOptions): ManagementResourceCifs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_disk_and_print_shares: Optional[Sequence[ManagementResourceCifsAllowedDiskAndPrintShareArgs]] = None,
block_remote_registry_access: Optional[bool] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
log_access_violation: Optional[bool] = None,
log_mapped_shares: Optional[bool] = None,
management_resource_cifs_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> ManagementResourceCifs
func GetManagementResourceCifs(ctx *Context, name string, id IDInput, state *ManagementResourceCifsState, opts ...ResourceOption) (*ManagementResourceCifs, error)
public static ManagementResourceCifs Get(string name, Input<string> id, ManagementResourceCifsState? state, CustomResourceOptions? opts = null)
public static ManagementResourceCifs get(String name, Output<String> id, ManagementResourceCifsState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementResourceCifs 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.
- List<Management
Resource Cifs Allowed Disk And Print Share> - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- Block
Remote boolRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- 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.
- Log
Access boolViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- bool
- Logs each share map attempt.
- Management
Resource stringCifs Id - Name string
- Object name.
- List<string>
- Collection of tag identifiers.tags blocks are documented below.
- []Management
Resource Cifs Allowed Disk And Print Share Args - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- Block
Remote boolRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- 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.
- Log
Access boolViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- bool
- Logs each share map attempt.
- Management
Resource stringCifs Id - Name string
- Object name.
- []string
- Collection of tag identifiers.tags blocks are documented below.
- List<Management
Resource Cifs Allowed Disk And Print Share> - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block
Remote BooleanRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- 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.
- log
Access BooleanViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- Boolean
- Logs each share map attempt.
- management
Resource StringCifs Id - name String
- Object name.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
- Management
Resource Cifs Allowed Disk And Print Share[] - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block
Remote booleanRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- 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.
- log
Access booleanViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- boolean
- Logs each share map attempt.
- management
Resource stringCifs Id - name string
- Object name.
- string[]
- Collection of tag identifiers.tags blocks are documented below.
- Sequence[Management
Resource Cifs Allowed Disk And Print Share Args] - The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block_
remote_ boolregistry_ access - Blocks the ability to remotely manipulate a the window's registry.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- 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.
- log_
access_ boolviolation - Logs any attempt to violate the restrictions imposed by the Resource.
- bool
- Logs each share map attempt.
- management_
resource_ strcifs_ id - name str
- Object name.
- Sequence[str]
- Collection of tag identifiers.tags blocks are documented below.
- List<Property Map>
- The list of Allowed Disk and Print Shares. Must be added in pairs.allowed_disk_and_print_shares blocks are documented below.
- block
Remote BooleanRegistry Access - Blocks the ability to remotely manipulate a the window's registry.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- 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.
- log
Access BooleanViolation - Logs any attempt to violate the restrictions imposed by the Resource.
- Boolean
- Logs each share map attempt.
- management
Resource StringCifs Id - name String
- Object name.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
Supporting Types
ManagementResourceCifsAllowedDiskAndPrintShare, ManagementResourceCifsAllowedDiskAndPrintShareArgs
- Server
Name string - Blocks the ability to remotely manipulate a the window's registry.
- string
- Disk shares.
- Server
Name string - Blocks the ability to remotely manipulate a the window's registry.
- string
- Disk shares.
- server
Name String - Blocks the ability to remotely manipulate a the window's registry.
- String
- Disk shares.
- server
Name string - Blocks the ability to remotely manipulate a the window's registry.
- string
- Disk shares.
- server_
name str - Blocks the ability to remotely manipulate a the window's registry.
- str
- Disk shares.
- server
Name String - Blocks the ability to remotely manipulate a the window's registry.
- String
- Disk shares.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.