UNPKG

@crowdstrike/pulumi

Version:

A Pulumi package for creating and managing CrowdStrike resources. Based on terraform-provider-crowdstrike: version v0.0.4

93 lines (92 loc) 3.85 kB
import * as pulumi from "@pulumi/pulumi"; /** * This resource allows managing the host groups attached to a sensor update policy. This resource takes exclusive ownership over the host groups assigned to a sensor update policy. If you want to fully create or manage a sensor update policy please use the `sensorUpdatePolicy` resource. * * ## API Scopes * * The following API scopes are required: * * - Sensor update policies | Read & Write * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as crowdstrike from "@crowdstrike/pulumi"; * * const example = new crowdstrike.SensorUpdatePolicyHostGroupAttachment("example", { * idProperty: "34ef8e65eb1b4642861e389da3f7e82f", * hostGroups: ["ff1ca3nfr7899j1abf61c0448db28be5"], * }); * export const sensorUpdatePolicyHostGroupAttachment = example; * ``` * * ## Import * * Sensor Update Policy Host Group Attachment can be imported by specifying the id. * * ```sh * $ pulumi import crowdstrike:index/sensorUpdatePolicyHostGroupAttachment:SensorUpdatePolicyHostGroupAttachment example 7fb858a949034a0cbca175f660f1e769 * ``` */ export declare class SensorUpdatePolicyHostGroupAttachment extends pulumi.CustomResource { /** * Get an existing SensorUpdatePolicyHostGroupAttachment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SensorUpdatePolicyHostGroupAttachmentState, opts?: pulumi.CustomResourceOptions): SensorUpdatePolicyHostGroupAttachment; /** * Returns true if the given object is an instance of SensorUpdatePolicyHostGroupAttachment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SensorUpdatePolicyHostGroupAttachment; /** * Host Group ids to attach to the sensor update policy. */ readonly hostGroups: pulumi.Output<string[] | undefined>; /** * The sensor update policy id you want to attach to. */ readonly idProperty: pulumi.Output<string>; readonly lastUpdated: pulumi.Output<string>; /** * Create a SensorUpdatePolicyHostGroupAttachment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SensorUpdatePolicyHostGroupAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SensorUpdatePolicyHostGroupAttachment resources. */ export interface SensorUpdatePolicyHostGroupAttachmentState { /** * Host Group ids to attach to the sensor update policy. */ hostGroups?: pulumi.Input<pulumi.Input<string>[]>; /** * The sensor update policy id you want to attach to. */ idProperty?: pulumi.Input<string>; lastUpdated?: pulumi.Input<string>; } /** * The set of arguments for constructing a SensorUpdatePolicyHostGroupAttachment resource. */ export interface SensorUpdatePolicyHostGroupAttachmentArgs { /** * Host Group ids to attach to the sensor update policy. */ hostGroups?: pulumi.Input<pulumi.Input<string>[]>; /** * The sensor update policy id you want to attach to. */ idProperty: pulumi.Input<string>; }