1. Packages
  2. CrowdStrike
  3. API Docs
  4. SensorUpdatePolicyPrecedence
CrowdStrike v0.0.14 published on Monday, May 5, 2025 by CrowdStrike

crowdstrike.SensorUpdatePolicyPrecedence

Explore with Pulumi AI

crowdstrike logo
CrowdStrike v0.0.14 published on Monday, May 5, 2025 by CrowdStrike

    This resource allows you to set the precedence of Sensor Update Policies based on the order of IDs.

    API Scopes

    The following API scopes are required:

    • Sensor update policies | Read & Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as crowdstrike from "@crowdstrike/pulumi";
    
    const example = new crowdstrike.SensorUpdatePolicyPrecedence("example", {
        ids: [
            "a1j09y3yq0wnrpb5o6jlij9e4f40k6lq",
            "2asia54xti93bg0jbr5hfpqqbhxbyeoa",
            "xuzq8hs1uyc2s7zdar3fli0shiyl22vc",
        ],
        platformName: "linux",
        enforcement: "dynamic",
    });
    export const sensorUpdatePolicyPrecedence = example;
    
    import pulumi
    import crowdstrike_pulumi as crowdstrike
    
    example = crowdstrike.SensorUpdatePolicyPrecedence("example",
        ids=[
            "a1j09y3yq0wnrpb5o6jlij9e4f40k6lq",
            "2asia54xti93bg0jbr5hfpqqbhxbyeoa",
            "xuzq8hs1uyc2s7zdar3fli0shiyl22vc",
        ],
        platform_name="linux",
        enforcement="dynamic")
    pulumi.export("sensorUpdatePolicyPrecedence", example)
    
    package main
    
    import (
    	"github.com/crowdstrike/pulumi-crowdstrike/sdk/go/crowdstrike"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := crowdstrike.NewSensorUpdatePolicyPrecedence(ctx, "example", &crowdstrike.SensorUpdatePolicyPrecedenceArgs{
    			Ids: pulumi.StringArray{
    				pulumi.String("a1j09y3yq0wnrpb5o6jlij9e4f40k6lq"),
    				pulumi.String("2asia54xti93bg0jbr5hfpqqbhxbyeoa"),
    				pulumi.String("xuzq8hs1uyc2s7zdar3fli0shiyl22vc"),
    			},
    			PlatformName: pulumi.String("linux"),
    			Enforcement:  pulumi.String("dynamic"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("sensorUpdatePolicyPrecedence", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Crowdstrike = CrowdStrike.Crowdstrike;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Crowdstrike.SensorUpdatePolicyPrecedence("example", new()
        {
            Ids = new[]
            {
                "a1j09y3yq0wnrpb5o6jlij9e4f40k6lq",
                "2asia54xti93bg0jbr5hfpqqbhxbyeoa",
                "xuzq8hs1uyc2s7zdar3fli0shiyl22vc",
            },
            PlatformName = "linux",
            Enforcement = "dynamic",
        });
    
        return new Dictionary<string, object?>
        {
            ["sensorUpdatePolicyPrecedence"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.crowdstrike.crowdstrike.SensorUpdatePolicyPrecedence;
    import com.crowdstrike.crowdstrike.SensorUpdatePolicyPrecedenceArgs;
    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 SensorUpdatePolicyPrecedence("example", SensorUpdatePolicyPrecedenceArgs.builder()
                .ids(            
                    "a1j09y3yq0wnrpb5o6jlij9e4f40k6lq",
                    "2asia54xti93bg0jbr5hfpqqbhxbyeoa",
                    "xuzq8hs1uyc2s7zdar3fli0shiyl22vc")
                .platformName("linux")
                .enforcement("dynamic")
                .build());
    
            ctx.export("sensorUpdatePolicyPrecedence", example);
        }
    }
    
    resources:
      example:
        type: crowdstrike:SensorUpdatePolicyPrecedence
        properties:
          ids:
            - a1j09y3yq0wnrpb5o6jlij9e4f40k6lq
            - 2asia54xti93bg0jbr5hfpqqbhxbyeoa
            - xuzq8hs1uyc2s7zdar3fli0shiyl22vc
          platformName: linux
          enforcement: dynamic
    outputs:
      sensorUpdatePolicyPrecedence: ${example}
    

    Create SensorUpdatePolicyPrecedence Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SensorUpdatePolicyPrecedence(name: string, args: SensorUpdatePolicyPrecedenceArgs, opts?: CustomResourceOptions);
    @overload
    def SensorUpdatePolicyPrecedence(resource_name: str,
                                     args: SensorUpdatePolicyPrecedenceArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def SensorUpdatePolicyPrecedence(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     enforcement: Optional[str] = None,
                                     ids: Optional[Sequence[str]] = None,
                                     platform_name: Optional[str] = None)
    func NewSensorUpdatePolicyPrecedence(ctx *Context, name string, args SensorUpdatePolicyPrecedenceArgs, opts ...ResourceOption) (*SensorUpdatePolicyPrecedence, error)
    public SensorUpdatePolicyPrecedence(string name, SensorUpdatePolicyPrecedenceArgs args, CustomResourceOptions? opts = null)
    public SensorUpdatePolicyPrecedence(String name, SensorUpdatePolicyPrecedenceArgs args)
    public SensorUpdatePolicyPrecedence(String name, SensorUpdatePolicyPrecedenceArgs args, CustomResourceOptions options)
    
    type: crowdstrike:SensorUpdatePolicyPrecedence
    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 SensorUpdatePolicyPrecedenceArgs
    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 SensorUpdatePolicyPrecedenceArgs
    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 SensorUpdatePolicyPrecedenceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SensorUpdatePolicyPrecedenceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SensorUpdatePolicyPrecedenceArgs
    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 sensorUpdatePolicyPrecedenceResource = new Crowdstrike.SensorUpdatePolicyPrecedence("sensorUpdatePolicyPrecedenceResource", new()
    {
        Enforcement = "string",
        Ids = new[]
        {
            "string",
        },
        PlatformName = "string",
    });
    
    example, err := crowdstrike.NewSensorUpdatePolicyPrecedence(ctx, "sensorUpdatePolicyPrecedenceResource", &crowdstrike.SensorUpdatePolicyPrecedenceArgs{
    	Enforcement: pulumi.String("string"),
    	Ids: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PlatformName: pulumi.String("string"),
    })
    
    var sensorUpdatePolicyPrecedenceResource = new SensorUpdatePolicyPrecedence("sensorUpdatePolicyPrecedenceResource", SensorUpdatePolicyPrecedenceArgs.builder()
        .enforcement("string")
        .ids("string")
        .platformName("string")
        .build());
    
    sensor_update_policy_precedence_resource = crowdstrike.SensorUpdatePolicyPrecedence("sensorUpdatePolicyPrecedenceResource",
        enforcement="string",
        ids=["string"],
        platform_name="string")
    
    const sensorUpdatePolicyPrecedenceResource = new crowdstrike.SensorUpdatePolicyPrecedence("sensorUpdatePolicyPrecedenceResource", {
        enforcement: "string",
        ids: ["string"],
        platformName: "string",
    });
    
    type: crowdstrike:SensorUpdatePolicyPrecedence
    properties:
        enforcement: string
        ids:
            - string
        platformName: string
    

    SensorUpdatePolicyPrecedence 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 SensorUpdatePolicyPrecedence resource accepts the following input properties:

    Enforcement string
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    Ids List<string>
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    PlatformName string
    That platform of the sensor update policies. (Windows, Mac, Linux)
    Enforcement string
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    Ids []string
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    PlatformName string
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement String
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids List<String>
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    platformName String
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement string
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids string[]
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    platformName string
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement str
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids Sequence[str]
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    platform_name str
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement String
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids List<String>
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    platformName String
    That platform of the sensor update policies. (Windows, Mac, Linux)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SensorUpdatePolicyPrecedence resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String

    Look up Existing SensorUpdatePolicyPrecedence Resource

    Get an existing SensorUpdatePolicyPrecedence 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?: SensorUpdatePolicyPrecedenceState, opts?: CustomResourceOptions): SensorUpdatePolicyPrecedence
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enforcement: Optional[str] = None,
            ids: Optional[Sequence[str]] = None,
            last_updated: Optional[str] = None,
            platform_name: Optional[str] = None) -> SensorUpdatePolicyPrecedence
    func GetSensorUpdatePolicyPrecedence(ctx *Context, name string, id IDInput, state *SensorUpdatePolicyPrecedenceState, opts ...ResourceOption) (*SensorUpdatePolicyPrecedence, error)
    public static SensorUpdatePolicyPrecedence Get(string name, Input<string> id, SensorUpdatePolicyPrecedenceState? state, CustomResourceOptions? opts = null)
    public static SensorUpdatePolicyPrecedence get(String name, Output<String> id, SensorUpdatePolicyPrecedenceState state, CustomResourceOptions options)
    resources:  _:    type: crowdstrike:SensorUpdatePolicyPrecedence    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.
    The following state arguments are supported:
    Enforcement string
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    Ids List<string>
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    LastUpdated string
    PlatformName string
    That platform of the sensor update policies. (Windows, Mac, Linux)
    Enforcement string
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    Ids []string
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    LastUpdated string
    PlatformName string
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement String
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids List<String>
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    lastUpdated String
    platformName String
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement string
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids string[]
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    lastUpdated string
    platformName string
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement str
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids Sequence[str]
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    last_updated str
    platform_name str
    That platform of the sensor update policies. (Windows, Mac, Linux)
    enforcement String
    The enforcement type for this resource. strict requires all non-default sensor update policy ids for platform to be provided. dynamic will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in ids will retain their current ordering after the managed ids.
    ids List<String>
    The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest.
    lastUpdated String
    platformName String
    That platform of the sensor update policies. (Windows, Mac, Linux)

    Package Details

    Repository
    crowdstrike crowdstrike/pulumi-crowdstrike
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the crowdstrike Terraform Provider.
    crowdstrike logo
    CrowdStrike v0.0.14 published on Monday, May 5, 2025 by CrowdStrike