import * as pulumi from "@pulumi/pulumi"; /** * Manages a Security Insights Sentinel Onboarding. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "example-law", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * }); * const exampleLogAnalyticsWorkspaceOnboarding = new azure.sentinel.LogAnalyticsWorkspaceOnboarding("example", { * workspaceId: exampleAnalyticsWorkspace.id, * customerManagedKeyEnabled: false, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2022-11-01 * * ## Import * * Security Insights Sentinel Onboarding States can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:sentinel/logAnalyticsWorkspaceOnboarding:LogAnalyticsWorkspaceOnboarding example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/onboardingStates/defaults * ``` */ export declare class LogAnalyticsWorkspaceOnboarding extends pulumi.CustomResource { /** * Get an existing LogAnalyticsWorkspaceOnboarding 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, state?: LogAnalyticsWorkspaceOnboardingState, opts?: pulumi.CustomResourceOptions): LogAnalyticsWorkspaceOnboarding; /** * Returns true if the given object is an instance of LogAnalyticsWorkspaceOnboarding. 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 LogAnalyticsWorkspaceOnboarding; /** * Specifies if the Workspace is using Customer managed key. Defaults to `false`. Changing this forces a new resource to be created. * * > **Note:** To set up Microsoft Sentinel customer-managed key it needs to enable CMK on the workspace and add access policy to your Azure Key Vault. Details could be found on [this document](https://learn.microsoft.com/en-us/azure/sentinel/customer-managed-keys) * * > **Note:** Once a workspace is onboarded to Microsoft Sentinel with `customerManagedKeyEnabled` set to true, it will not be able to be onboarded again with `customerManagedKeyEnabled` set to false. */ readonly customerManagedKeyEnabled: pulumi.Output; /** * Specifies the Workspace Id. Changing this forces the Log Analytics Workspace off the board and onboard again. Changing this forces a new resource to be created. */ readonly workspaceId: pulumi.Output; /** * Create a LogAnalyticsWorkspaceOnboarding 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: LogAnalyticsWorkspaceOnboardingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogAnalyticsWorkspaceOnboarding resources. */ export interface LogAnalyticsWorkspaceOnboardingState { /** * Specifies if the Workspace is using Customer managed key. Defaults to `false`. Changing this forces a new resource to be created. * * > **Note:** To set up Microsoft Sentinel customer-managed key it needs to enable CMK on the workspace and add access policy to your Azure Key Vault. Details could be found on [this document](https://learn.microsoft.com/en-us/azure/sentinel/customer-managed-keys) * * > **Note:** Once a workspace is onboarded to Microsoft Sentinel with `customerManagedKeyEnabled` set to true, it will not be able to be onboarded again with `customerManagedKeyEnabled` set to false. */ customerManagedKeyEnabled?: pulumi.Input; /** * Specifies the Workspace Id. Changing this forces the Log Analytics Workspace off the board and onboard again. Changing this forces a new resource to be created. */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a LogAnalyticsWorkspaceOnboarding resource. */ export interface LogAnalyticsWorkspaceOnboardingArgs { /** * Specifies if the Workspace is using Customer managed key. Defaults to `false`. Changing this forces a new resource to be created. * * > **Note:** To set up Microsoft Sentinel customer-managed key it needs to enable CMK on the workspace and add access policy to your Azure Key Vault. Details could be found on [this document](https://learn.microsoft.com/en-us/azure/sentinel/customer-managed-keys) * * > **Note:** Once a workspace is onboarded to Microsoft Sentinel with `customerManagedKeyEnabled` set to true, it will not be able to be onboarded again with `customerManagedKeyEnabled` set to false. */ customerManagedKeyEnabled?: pulumi.Input; /** * Specifies the Workspace Id. Changing this forces the Log Analytics Workspace off the board and onboard again. Changing this forces a new resource to be created. */ workspaceId: pulumi.Input; }