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

checkpoint.getManagementDataTypeWeightedKeywords

Explore with Pulumi AI

checkpoint logo
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:

    Name string
    Object name.
    Id string
    Uid string
    Object unique identifier.
    Name string
    Object name.
    Id string
    Uid string
    Object unique identifier.
    name String
    Object name.
    id String
    uid String
    Object unique identifier.
    name string
    Object name.
    id string
    uid string
    Object unique identifier.
    name str
    Object name.
    id str
    uid str
    Object unique identifier.
    name String
    Object name.
    id String
    uid String
    Object unique identifier.

    getManagementDataTypeWeightedKeywords Result

    The following output properties are available:

    color String
    comments String
    description String
    id String
    name String
    sumOfWeightsThreshold Number
    tags List<String>
    weightedKeywords List<Property Map>
    uid String

    Supporting Types

    GetManagementDataTypeWeightedKeywordsWeightedKeyword

    Keyword string
    keyword or regular expression to be weighted.
    MaxWeight double
    Max weight of the expression.
    Regex bool
    Determine whether to consider the expression as a regular expression.
    Weight double
    Weight of the expression.
    Keyword string
    keyword or regular expression to be weighted.
    MaxWeight float64
    Max weight of the expression.
    Regex bool
    Determine whether to consider the expression as a regular expression.
    Weight float64
    Weight of the expression.
    keyword String
    keyword or regular expression to be weighted.
    maxWeight Double
    Max weight of the expression.
    regex Boolean
    Determine whether to consider the expression as a regular expression.
    weight Double
    Weight of the expression.
    keyword string
    keyword or regular expression to be weighted.
    maxWeight number
    Max weight of the expression.
    regex boolean
    Determine whether to consider the expression as a regular expression.
    weight number
    Weight of the expression.
    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.
    keyword String
    keyword or regular expression to be weighted.
    maxWeight Number
    Max weight of the expression.
    regex Boolean
    Determine whether to consider the expression as a regular expression.
    weight Number
    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 logo
    checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw