checkpoint.ManagementThreatLayer
Explore with Pulumi AI
This resource allows you to add/update/delete Check Point Threat Layer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementThreatLayer("example", {});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementThreatLayer("example")
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.NewManagementThreatLayer(ctx, "example", nil)
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.ManagementThreatLayer("example");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementThreatLayer;
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 ManagementThreatLayer("example");
}
}
resources:
example:
type: checkpoint:ManagementThreatLayer
Create ManagementThreatLayer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementThreatLayer(name: string, args?: ManagementThreatLayerArgs, opts?: CustomResourceOptions);
@overload
def ManagementThreatLayer(resource_name: str,
args: Optional[ManagementThreatLayerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementThreatLayer(resource_name: str,
opts: Optional[ResourceOptions] = None,
add_default_rule: Optional[bool] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_threat_layer_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewManagementThreatLayer(ctx *Context, name string, args *ManagementThreatLayerArgs, opts ...ResourceOption) (*ManagementThreatLayer, error)
public ManagementThreatLayer(string name, ManagementThreatLayerArgs? args = null, CustomResourceOptions? opts = null)
public ManagementThreatLayer(String name, ManagementThreatLayerArgs args)
public ManagementThreatLayer(String name, ManagementThreatLayerArgs args, CustomResourceOptions options)
type: checkpoint:ManagementThreatLayer
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 ManagementThreatLayerArgs
- 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 ManagementThreatLayerArgs
- 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 ManagementThreatLayerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementThreatLayerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementThreatLayerArgs
- 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 managementThreatLayerResource = new Checkpoint.ManagementThreatLayer("managementThreatLayerResource", new()
{
AddDefaultRule = false,
Color = "string",
Comments = "string",
IgnoreErrors = false,
IgnoreWarnings = false,
ManagementThreatLayerId = "string",
Name = "string",
Tags = new[]
{
"string",
},
});
example, err := checkpoint.NewManagementThreatLayer(ctx, "managementThreatLayerResource", &checkpoint.ManagementThreatLayerArgs{
AddDefaultRule: pulumi.Bool(false),
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
ManagementThreatLayerId: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var managementThreatLayerResource = new ManagementThreatLayer("managementThreatLayerResource", ManagementThreatLayerArgs.builder()
.addDefaultRule(false)
.color("string")
.comments("string")
.ignoreErrors(false)
.ignoreWarnings(false)
.managementThreatLayerId("string")
.name("string")
.tags("string")
.build());
management_threat_layer_resource = checkpoint.ManagementThreatLayer("managementThreatLayerResource",
add_default_rule=False,
color="string",
comments="string",
ignore_errors=False,
ignore_warnings=False,
management_threat_layer_id="string",
name="string",
tags=["string"])
const managementThreatLayerResource = new checkpoint.ManagementThreatLayer("managementThreatLayerResource", {
addDefaultRule: false,
color: "string",
comments: "string",
ignoreErrors: false,
ignoreWarnings: false,
managementThreatLayerId: "string",
name: "string",
tags: ["string"],
});
type: checkpoint:ManagementThreatLayer
properties:
addDefaultRule: false
color: string
comments: string
ignoreErrors: false
ignoreWarnings: false
managementThreatLayerId: string
name: string
tags:
- string
ManagementThreatLayer 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 ManagementThreatLayer resource accepts the following input properties:
- Add
Default boolRule - Indicates whether to include a default rule in the new layer.
- 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.
- Management
Threat stringLayer Id - Name string
- Object name.
- List<string>
- Collection of tag identifiers.tags blocks are documented below.
- Add
Default boolRule - Indicates whether to include a default rule in the new layer.
- 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.
- Management
Threat stringLayer Id - Name string
- Object name.
- []string
- Collection of tag identifiers.tags blocks are documented below.
- add
Default BooleanRule - Indicates whether to include a default rule in the new layer.
- 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.
- management
Threat StringLayer Id - name String
- Object name.
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
- add
Default booleanRule - Indicates whether to include a default rule in the new layer.
- 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.
- management
Threat stringLayer Id - name string
- Object name.
- string[]
- Collection of tag identifiers.tags blocks are documented below.
- add_
default_ boolrule - Indicates whether to include a default rule in the new layer.
- 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.
- management_
threat_ strlayer_ id - name str
- Object name.
- Sequence[str]
- Collection of tag identifiers.tags blocks are documented below.
- add
Default BooleanRule - Indicates whether to include a default rule in the new layer.
- 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.
- management
Threat StringLayer 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 ManagementThreatLayer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ips
Layer bool - N/A
- Parent
Layer string - N/A
- Id string
- The provider-assigned unique ID for this managed resource.
- Ips
Layer bool - N/A
- Parent
Layer string - N/A
- id String
- The provider-assigned unique ID for this managed resource.
- ips
Layer Boolean - N/A
- parent
Layer String - N/A
- id string
- The provider-assigned unique ID for this managed resource.
- ips
Layer boolean - N/A
- parent
Layer string - N/A
- id str
- The provider-assigned unique ID for this managed resource.
- ips_
layer bool - N/A
- parent_
layer str - N/A
- id String
- The provider-assigned unique ID for this managed resource.
- ips
Layer Boolean - N/A
- parent
Layer String - N/A
Look up Existing ManagementThreatLayer Resource
Get an existing ManagementThreatLayer 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?: ManagementThreatLayerState, opts?: CustomResourceOptions): ManagementThreatLayer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
add_default_rule: Optional[bool] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
ips_layer: Optional[bool] = None,
management_threat_layer_id: Optional[str] = None,
name: Optional[str] = None,
parent_layer: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> ManagementThreatLayer
func GetManagementThreatLayer(ctx *Context, name string, id IDInput, state *ManagementThreatLayerState, opts ...ResourceOption) (*ManagementThreatLayer, error)
public static ManagementThreatLayer Get(string name, Input<string> id, ManagementThreatLayerState? state, CustomResourceOptions? opts = null)
public static ManagementThreatLayer get(String name, Output<String> id, ManagementThreatLayerState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementThreatLayer 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.
- Add
Default boolRule - Indicates whether to include a default rule in the new layer.
- 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.
- Ips
Layer bool - N/A
- Management
Threat stringLayer Id - Name string
- Object name.
- Parent
Layer string - N/A
- List<string>
- Collection of tag identifiers.tags blocks are documented below.
- Add
Default boolRule - Indicates whether to include a default rule in the new layer.
- 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.
- Ips
Layer bool - N/A
- Management
Threat stringLayer Id - Name string
- Object name.
- Parent
Layer string - N/A
- []string
- Collection of tag identifiers.tags blocks are documented below.
- add
Default BooleanRule - Indicates whether to include a default rule in the new layer.
- 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.
- ips
Layer Boolean - N/A
- management
Threat StringLayer Id - name String
- Object name.
- parent
Layer String - N/A
- List<String>
- Collection of tag identifiers.tags blocks are documented below.
- add
Default booleanRule - Indicates whether to include a default rule in the new layer.
- 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.
- ips
Layer boolean - N/A
- management
Threat stringLayer Id - name string
- Object name.
- parent
Layer string - N/A
- string[]
- Collection of tag identifiers.tags blocks are documented below.
- add_
default_ boolrule - Indicates whether to include a default rule in the new layer.
- 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.
- ips_
layer bool - N/A
- management_
threat_ strlayer_ id - name str
- Object name.
- parent_
layer str - N/A
- Sequence[str]
- Collection of tag identifiers.tags blocks are documented below.
- add
Default BooleanRule - Indicates whether to include a default rule in the new layer.
- 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.
- ips
Layer Boolean - N/A
- management
Threat StringLayer Id - name String
- Object name.
- parent
Layer String - N/A
- 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.