1. Packages
  2. CrowdStrike
  3. API Docs
  4. DefaultSensorUpdatePolicy
CrowdStrike v0.0.13 published on Tuesday, Apr 22, 2025 by CrowdStrike

crowdstrike.DefaultSensorUpdatePolicy

Explore with Pulumi AI

crowdstrike logo
CrowdStrike v0.0.13 published on Tuesday, Apr 22, 2025 by CrowdStrike

    This resource allows management of the default sensor update policy in the CrowdStrike Falcon platform. Destruction of this resource will not delete the default sensor update policy or remove any configured settings.

    API Scopes

    The following API scopes are required:

    • Sensor update policies | Read & Write

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      default:
        type: crowdstrike:DefaultSensorUpdatePolicy
        properties:
          platformName: windows
          build: ${all.windows.n1.build}
          uninstallProtection: true
          schedule:
            enabled: true
            timezone: Etc/UTC
            time_blocks:
              - days:
                  - sunday
                  - wednesday
                startTime: 12:40
                endTime: 16:40
    variables:
      all:
        fn::invoke:
          function: crowdstrike:getSensorUpdatePolicyBuilds
          arguments: {}
    outputs:
      sensorPolicy: ${default}
    

    Create DefaultSensorUpdatePolicy Resource

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

    Constructor syntax

    new DefaultSensorUpdatePolicy(name: string, args: DefaultSensorUpdatePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultSensorUpdatePolicy(resource_name: str,
                                  args: DefaultSensorUpdatePolicyArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultSensorUpdatePolicy(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  build: Optional[str] = None,
                                  platform_name: Optional[str] = None,
                                  schedule: Optional[DefaultSensorUpdatePolicyScheduleArgs] = None,
                                  build_arm64: Optional[str] = None,
                                  uninstall_protection: Optional[bool] = None)
    func NewDefaultSensorUpdatePolicy(ctx *Context, name string, args DefaultSensorUpdatePolicyArgs, opts ...ResourceOption) (*DefaultSensorUpdatePolicy, error)
    public DefaultSensorUpdatePolicy(string name, DefaultSensorUpdatePolicyArgs args, CustomResourceOptions? opts = null)
    public DefaultSensorUpdatePolicy(String name, DefaultSensorUpdatePolicyArgs args)
    public DefaultSensorUpdatePolicy(String name, DefaultSensorUpdatePolicyArgs args, CustomResourceOptions options)
    
    type: crowdstrike:DefaultSensorUpdatePolicy
    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 DefaultSensorUpdatePolicyArgs
    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 DefaultSensorUpdatePolicyArgs
    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 DefaultSensorUpdatePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultSensorUpdatePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultSensorUpdatePolicyArgs
    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 defaultSensorUpdatePolicyResource = new Crowdstrike.DefaultSensorUpdatePolicy("defaultSensorUpdatePolicyResource", new()
    {
        Build = "string",
        PlatformName = "string",
        Schedule = new Crowdstrike.Inputs.DefaultSensorUpdatePolicyScheduleArgs
        {
            Enabled = false,
            TimeBlocks = new[]
            {
                new Crowdstrike.Inputs.DefaultSensorUpdatePolicyScheduleTimeBlockArgs
                {
                    Days = new[]
                    {
                        "string",
                    },
                    EndTime = "string",
                    StartTime = "string",
                },
            },
            Timezone = "string",
        },
        BuildArm64 = "string",
        UninstallProtection = false,
    });
    
    example, err := crowdstrike.NewDefaultSensorUpdatePolicy(ctx, "defaultSensorUpdatePolicyResource", &crowdstrike.DefaultSensorUpdatePolicyArgs{
    	Build:        pulumi.String("string"),
    	PlatformName: pulumi.String("string"),
    	Schedule: &crowdstrike.DefaultSensorUpdatePolicyScheduleArgs{
    		Enabled: pulumi.Bool(false),
    		TimeBlocks: crowdstrike.DefaultSensorUpdatePolicyScheduleTimeBlockArray{
    			&crowdstrike.DefaultSensorUpdatePolicyScheduleTimeBlockArgs{
    				Days: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				EndTime:   pulumi.String("string"),
    				StartTime: pulumi.String("string"),
    			},
    		},
    		Timezone: pulumi.String("string"),
    	},
    	BuildArm64:          pulumi.String("string"),
    	UninstallProtection: pulumi.Bool(false),
    })
    
    var defaultSensorUpdatePolicyResource = new DefaultSensorUpdatePolicy("defaultSensorUpdatePolicyResource", DefaultSensorUpdatePolicyArgs.builder()
        .build("string")
        .platformName("string")
        .schedule(DefaultSensorUpdatePolicyScheduleArgs.builder()
            .enabled(false)
            .timeBlocks(DefaultSensorUpdatePolicyScheduleTimeBlockArgs.builder()
                .days("string")
                .endTime("string")
                .startTime("string")
                .build())
            .timezone("string")
            .build())
        .buildArm64("string")
        .uninstallProtection(false)
        .build());
    
    default_sensor_update_policy_resource = crowdstrike.DefaultSensorUpdatePolicy("defaultSensorUpdatePolicyResource",
        build="string",
        platform_name="string",
        schedule={
            "enabled": False,
            "time_blocks": [{
                "days": ["string"],
                "end_time": "string",
                "start_time": "string",
            }],
            "timezone": "string",
        },
        build_arm64="string",
        uninstall_protection=False)
    
    const defaultSensorUpdatePolicyResource = new crowdstrike.DefaultSensorUpdatePolicy("defaultSensorUpdatePolicyResource", {
        build: "string",
        platformName: "string",
        schedule: {
            enabled: false,
            timeBlocks: [{
                days: ["string"],
                endTime: "string",
                startTime: "string",
            }],
            timezone: "string",
        },
        buildArm64: "string",
        uninstallProtection: false,
    });
    
    type: crowdstrike:DefaultSensorUpdatePolicy
    properties:
        build: string
        buildArm64: string
        platformName: string
        schedule:
            enabled: false
            timeBlocks:
                - days:
                    - string
                  endTime: string
                  startTime: string
            timezone: string
        uninstallProtection: false
    

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

    Build string
    Sensor build to use for the default sensor update policy.
    PlatformName string
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    Schedule CrowdStrike.Crowdstrike.Inputs.DefaultSensorUpdatePolicySchedule
    Prohibit sensor updates during a set of time blocks.
    BuildArm64 string
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    UninstallProtection bool
    Enable uninstall protection. Windows and Mac only.
    Build string
    Sensor build to use for the default sensor update policy.
    PlatformName string
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    Schedule DefaultSensorUpdatePolicyScheduleArgs
    Prohibit sensor updates during a set of time blocks.
    BuildArm64 string
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    UninstallProtection bool
    Enable uninstall protection. Windows and Mac only.
    build String
    Sensor build to use for the default sensor update policy.
    platformName String
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule DefaultSensorUpdatePolicySchedule
    Prohibit sensor updates during a set of time blocks.
    buildArm64 String
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    uninstallProtection Boolean
    Enable uninstall protection. Windows and Mac only.
    build string
    Sensor build to use for the default sensor update policy.
    platformName string
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule DefaultSensorUpdatePolicySchedule
    Prohibit sensor updates during a set of time blocks.
    buildArm64 string
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    uninstallProtection boolean
    Enable uninstall protection. Windows and Mac only.
    build str
    Sensor build to use for the default sensor update policy.
    platform_name str
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule DefaultSensorUpdatePolicyScheduleArgs
    Prohibit sensor updates during a set of time blocks.
    build_arm64 str
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    uninstall_protection bool
    Enable uninstall protection. Windows and Mac only.
    build String
    Sensor build to use for the default sensor update policy.
    platformName String
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule Property Map
    Prohibit sensor updates during a set of time blocks.
    buildArm64 String
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    uninstallProtection Boolean
    Enable uninstall protection. Windows and Mac only.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DefaultSensorUpdatePolicy 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 DefaultSensorUpdatePolicy Resource

    Get an existing DefaultSensorUpdatePolicy 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?: DefaultSensorUpdatePolicyState, opts?: CustomResourceOptions): DefaultSensorUpdatePolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            build: Optional[str] = None,
            build_arm64: Optional[str] = None,
            last_updated: Optional[str] = None,
            platform_name: Optional[str] = None,
            schedule: Optional[DefaultSensorUpdatePolicyScheduleArgs] = None,
            uninstall_protection: Optional[bool] = None) -> DefaultSensorUpdatePolicy
    func GetDefaultSensorUpdatePolicy(ctx *Context, name string, id IDInput, state *DefaultSensorUpdatePolicyState, opts ...ResourceOption) (*DefaultSensorUpdatePolicy, error)
    public static DefaultSensorUpdatePolicy Get(string name, Input<string> id, DefaultSensorUpdatePolicyState? state, CustomResourceOptions? opts = null)
    public static DefaultSensorUpdatePolicy get(String name, Output<String> id, DefaultSensorUpdatePolicyState state, CustomResourceOptions options)
    resources:  _:    type: crowdstrike:DefaultSensorUpdatePolicy    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:
    Build string
    Sensor build to use for the default sensor update policy.
    BuildArm64 string
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    LastUpdated string
    PlatformName string
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    Schedule CrowdStrike.Crowdstrike.Inputs.DefaultSensorUpdatePolicySchedule
    Prohibit sensor updates during a set of time blocks.
    UninstallProtection bool
    Enable uninstall protection. Windows and Mac only.
    Build string
    Sensor build to use for the default sensor update policy.
    BuildArm64 string
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    LastUpdated string
    PlatformName string
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    Schedule DefaultSensorUpdatePolicyScheduleArgs
    Prohibit sensor updates during a set of time blocks.
    UninstallProtection bool
    Enable uninstall protection. Windows and Mac only.
    build String
    Sensor build to use for the default sensor update policy.
    buildArm64 String
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    lastUpdated String
    platformName String
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule DefaultSensorUpdatePolicySchedule
    Prohibit sensor updates during a set of time blocks.
    uninstallProtection Boolean
    Enable uninstall protection. Windows and Mac only.
    build string
    Sensor build to use for the default sensor update policy.
    buildArm64 string
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    lastUpdated string
    platformName string
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule DefaultSensorUpdatePolicySchedule
    Prohibit sensor updates during a set of time blocks.
    uninstallProtection boolean
    Enable uninstall protection. Windows and Mac only.
    build str
    Sensor build to use for the default sensor update policy.
    build_arm64 str
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    last_updated str
    platform_name str
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule DefaultSensorUpdatePolicyScheduleArgs
    Prohibit sensor updates during a set of time blocks.
    uninstall_protection bool
    Enable uninstall protection. Windows and Mac only.
    build String
    Sensor build to use for the default sensor update policy.
    buildArm64 String
    Sensor arm64 build to use for the default sensor update policy (Linux only). Required if platform_name is Linux.
    lastUpdated String
    platformName String
    Chooses which default sensor update policy to manage. (Windows, Mac, Linux)
    schedule Property Map
    Prohibit sensor updates during a set of time blocks.
    uninstallProtection Boolean
    Enable uninstall protection. Windows and Mac only.

    Supporting Types

    DefaultSensorUpdatePolicySchedule, DefaultSensorUpdatePolicyScheduleArgs

    Enabled bool
    Enable the scheduler for sensor update policy.
    TimeBlocks List<CrowdStrike.Crowdstrike.Inputs.DefaultSensorUpdatePolicyScheduleTimeBlock>
    The time block to prevent sensor updates. Only set when enabled is true.
    Timezone string
    The time zones that will be used for the time blocks. Only set when enabled is true.
    Enabled bool
    Enable the scheduler for sensor update policy.
    TimeBlocks []DefaultSensorUpdatePolicyScheduleTimeBlock
    The time block to prevent sensor updates. Only set when enabled is true.
    Timezone string
    The time zones that will be used for the time blocks. Only set when enabled is true.
    enabled Boolean
    Enable the scheduler for sensor update policy.
    timeBlocks List<DefaultSensorUpdatePolicyScheduleTimeBlock>
    The time block to prevent sensor updates. Only set when enabled is true.
    timezone String
    The time zones that will be used for the time blocks. Only set when enabled is true.
    enabled boolean
    Enable the scheduler for sensor update policy.
    timeBlocks DefaultSensorUpdatePolicyScheduleTimeBlock[]
    The time block to prevent sensor updates. Only set when enabled is true.
    timezone string
    The time zones that will be used for the time blocks. Only set when enabled is true.
    enabled bool
    Enable the scheduler for sensor update policy.
    time_blocks Sequence[DefaultSensorUpdatePolicyScheduleTimeBlock]
    The time block to prevent sensor updates. Only set when enabled is true.
    timezone str
    The time zones that will be used for the time blocks. Only set when enabled is true.
    enabled Boolean
    Enable the scheduler for sensor update policy.
    timeBlocks List<Property Map>
    The time block to prevent sensor updates. Only set when enabled is true.
    timezone String
    The time zones that will be used for the time blocks. Only set when enabled is true.

    DefaultSensorUpdatePolicyScheduleTimeBlock, DefaultSensorUpdatePolicyScheduleTimeBlockArgs

    Days List<string>
    The days of the week the time block should be active.
    EndTime string
    The end time for the time block in 24HR format. Must be atleast 1 hour more than start_time.
    StartTime string
    The start time for the time block in 24HR format. Must be atleast 1 hour before end_time.
    Days []string
    The days of the week the time block should be active.
    EndTime string
    The end time for the time block in 24HR format. Must be atleast 1 hour more than start_time.
    StartTime string
    The start time for the time block in 24HR format. Must be atleast 1 hour before end_time.
    days List<String>
    The days of the week the time block should be active.
    endTime String
    The end time for the time block in 24HR format. Must be atleast 1 hour more than start_time.
    startTime String
    The start time for the time block in 24HR format. Must be atleast 1 hour before end_time.
    days string[]
    The days of the week the time block should be active.
    endTime string
    The end time for the time block in 24HR format. Must be atleast 1 hour more than start_time.
    startTime string
    The start time for the time block in 24HR format. Must be atleast 1 hour before end_time.
    days Sequence[str]
    The days of the week the time block should be active.
    end_time str
    The end time for the time block in 24HR format. Must be atleast 1 hour more than start_time.
    start_time str
    The start time for the time block in 24HR format. Must be atleast 1 hour before end_time.
    days List<String>
    The days of the week the time block should be active.
    endTime String
    The end time for the time block in 24HR format. Must be atleast 1 hour more than start_time.
    startTime String
    The start time for the time block in 24HR format. Must be atleast 1 hour before end_time.

    Import

    A default sensor update policy can be imported by specifying the policy id.

    $ pulumi import crowdstrike:index/defaultSensorUpdatePolicy:DefaultSensorUpdatePolicy default 7fb858a949034a0cbca175f660f1e769
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.13 published on Tuesday, Apr 22, 2025 by CrowdStrike