checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw
checkpoint.getManagementDataTypeWeightedKeywords
Explore with Pulumi AI
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw
Use this data source to get information on an existing Check Point Data Type Weighted Keywords.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementDataTypeWeightedKeywords("example", {
sumOfWeightsThreshold: 10,
weightedKeywords: [{
keyword: "name",
maxWeight: 4,
regex: true,
weight: 4,
}],
});
const data = checkpoint.getManagementDataTypeWeightedKeywordsOutput({
name: example.name,
});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementDataTypeWeightedKeywords("example",
sum_of_weights_threshold=10,
weighted_keywords=[{
"keyword": "name",
"max_weight": 4,
"regex": True,
"weight": 4,
}])
data = checkpoint.get_management_data_type_weighted_keywords_output(name=example.name)
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 {
example, err := checkpoint.NewManagementDataTypeWeightedKeywords(ctx, "example", &checkpoint.ManagementDataTypeWeightedKeywordsArgs{
SumOfWeightsThreshold: pulumi.Float64(10),
WeightedKeywords: checkpoint.ManagementDataTypeWeightedKeywordsWeightedKeywordArray{
&checkpoint.ManagementDataTypeWeightedKeywordsWeightedKeywordArgs{
Keyword: pulumi.String("name"),
MaxWeight: pulumi.Float64(4),
Regex: pulumi.Bool(true),
Weight: pulumi.Float64(4),
},
},
})
if err != nil {
return err
}
_ = checkpoint.LookupManagementDataTypeWeightedKeywordsOutput(ctx, checkpoint.GetManagementDataTypeWeightedKeywordsOutputArgs{
Name: example.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;
return await Deployment.RunAsync(() =>
{
var example = new Checkpoint.ManagementDataTypeWeightedKeywords("example", new()
{
SumOfWeightsThreshold = 10,
WeightedKeywords = new[]
{
new Checkpoint.Inputs.ManagementDataTypeWeightedKeywordsWeightedKeywordArgs
{
Keyword = "name",
MaxWeight = 4,
Regex = true,
Weight = 4,
},
},
});
var data = Checkpoint.GetManagementDataTypeWeightedKeywords.Invoke(new()
{
Name = example.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementDataTypeWeightedKeywords;
import com.pulumi.checkpoint.ManagementDataTypeWeightedKeywordsArgs;
import com.pulumi.checkpoint.inputs.ManagementDataTypeWeightedKeywordsWeightedKeywordArgs;
import com.pulumi.checkpoint.CheckpointFunctions;
import com.pulumi.checkpoint.inputs.GetManagementDataTypeWeightedKeywordsArgs;
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 ManagementDataTypeWeightedKeywords("example", ManagementDataTypeWeightedKeywordsArgs.builder()
.sumOfWeightsThreshold(10)
.weightedKeywords(ManagementDataTypeWeightedKeywordsWeightedKeywordArgs.builder()
.keyword("name")
.maxWeight("4")
.regex(true)
.weight("4")
.build())
.build());
final var data = CheckpointFunctions.getManagementDataTypeWeightedKeywords(GetManagementDataTypeWeightedKeywordsArgs.builder()
.name(example.name())
.build());
}
}
resources:
example:
type: checkpoint:ManagementDataTypeWeightedKeywords
properties:
sumOfWeightsThreshold: 10
weightedKeywords:
- keyword: name
maxWeight: '4'
regex: true
weight: '4'
variables:
data:
fn::invoke:
function: checkpoint:getManagementDataTypeWeightedKeywords
arguments:
name: ${example.name}
Using getManagementDataTypeWeightedKeywords
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagementDataTypeWeightedKeywords(args: GetManagementDataTypeWeightedKeywordsArgs, opts?: InvokeOptions): Promise<GetManagementDataTypeWeightedKeywordsResult>
function getManagementDataTypeWeightedKeywordsOutput(args: GetManagementDataTypeWeightedKeywordsOutputArgs, opts?: InvokeOptions): Output<GetManagementDataTypeWeightedKeywordsResult>
def get_management_data_type_weighted_keywords(id: Optional[str] = None,
name: Optional[str] = None,
uid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagementDataTypeWeightedKeywordsResult
def get_management_data_type_weighted_keywords_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
uid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagementDataTypeWeightedKeywordsResult]
func LookupManagementDataTypeWeightedKeywords(ctx *Context, args *LookupManagementDataTypeWeightedKeywordsArgs, opts ...InvokeOption) (*LookupManagementDataTypeWeightedKeywordsResult, error)
func LookupManagementDataTypeWeightedKeywordsOutput(ctx *Context, args *LookupManagementDataTypeWeightedKeywordsOutputArgs, opts ...InvokeOption) LookupManagementDataTypeWeightedKeywordsResultOutput
> Note: This function is named LookupManagementDataTypeWeightedKeywords
in the Go SDK.
public static class GetManagementDataTypeWeightedKeywords
{
public static Task<GetManagementDataTypeWeightedKeywordsResult> InvokeAsync(GetManagementDataTypeWeightedKeywordsArgs args, InvokeOptions? opts = null)
public static Output<GetManagementDataTypeWeightedKeywordsResult> Invoke(GetManagementDataTypeWeightedKeywordsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagementDataTypeWeightedKeywordsResult> getManagementDataTypeWeightedKeywords(GetManagementDataTypeWeightedKeywordsArgs args, InvokeOptions options)
public static Output<GetManagementDataTypeWeightedKeywordsResult> getManagementDataTypeWeightedKeywords(GetManagementDataTypeWeightedKeywordsArgs args, InvokeOptions options)
fn::invoke:
function: checkpoint:index/getManagementDataTypeWeightedKeywords:getManagementDataTypeWeightedKeywords
arguments:
# arguments dictionary
The following arguments are supported:
getManagementDataTypeWeightedKeywords Result
The following output properties are available:
- Color string
- Comments string
- Description string
- Id string
- Name string
- Sum
Of doubleWeights Threshold - List<string>
- Weighted
Keywords List<GetManagement Data Type Weighted Keywords Weighted Keyword> - Uid string
- Color string
- Comments string
- Description string
- Id string
- Name string
- Sum
Of float64Weights Threshold - []string
- Weighted
Keywords []GetManagement Data Type Weighted Keywords Weighted Keyword - Uid string
- color String
- comments String
- description String
- id String
- name String
- sum
Of DoubleWeights Threshold - List<String>
- weighted
Keywords List<GetManagement Data Type Weighted Keywords Weighted Keyword> - uid String
- color string
- comments string
- description string
- id string
- name string
- sum
Of numberWeights Threshold - string[]
- weighted
Keywords GetManagement Data Type Weighted Keywords Weighted Keyword[] - uid string
- color str
- comments str
- description str
- id str
- name str
- sum_
of_ floatweights_ threshold - Sequence[str]
- weighted_
keywords Sequence[GetManagement Data Type Weighted Keywords Weighted Keyword] - uid str
- color String
- comments String
- description String
- id String
- name String
- sum
Of NumberWeights Threshold - List<String>
- weighted
Keywords List<Property Map> - uid String
Supporting Types
GetManagementDataTypeWeightedKeywordsWeightedKeyword
- keyword str
- keyword or regular expression to be weighted.
- max_
weight float - Max weight of the expression.
- regex bool
- Determine whether to consider the expression as a regular expression.
- weight float
- Weight of the expression.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw