import * as pulumi from "@pulumi/pulumi"; /** * Manages a Microsoft Cloud App Security Data Connector. * * !> **Note:** This resource requires that [Enterprise Mobility + Security E5](https://www.microsoft.com/en-us/microsoft-365/enterprise-mobility-security) is enabled on the tenant being connected to. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "west europe", * }); * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "example-workspace", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * }); * const exampleLogAnalyticsWorkspaceOnboarding = new azure.sentinel.LogAnalyticsWorkspaceOnboarding("example", {workspaceId: exampleAnalyticsWorkspace.id}); * const exampleDataConnectorMicrosoftCloudAppSecurity = new azure.sentinel.DataConnectorMicrosoftCloudAppSecurity("example", { * name: "example", * logAnalyticsWorkspaceId: exampleLogAnalyticsWorkspaceOnboarding.workspaceId, * }); * ``` * * ## Import * * Microsoft Cloud App Security Data Connectors can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:sentinel/dataConnectorMicrosoftCloudAppSecurity:DataConnectorMicrosoftCloudAppSecurity example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/dataConnectors/dc1 * ``` */ export declare class DataConnectorMicrosoftCloudAppSecurity extends pulumi.CustomResource { /** * Get an existing DataConnectorMicrosoftCloudAppSecurity 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?: DataConnectorMicrosoftCloudAppSecurityState, opts?: pulumi.CustomResourceOptions): DataConnectorMicrosoftCloudAppSecurity; /** * Returns true if the given object is an instance of DataConnectorMicrosoftCloudAppSecurity. 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 DataConnectorMicrosoftCloudAppSecurity; /** * Should the alerts be enabled? Defaults to `true`. */ readonly alertsEnabled: pulumi.Output; /** * Should the Discovery Logs be enabled? Defaults to `true`. * * > **Note:** One of either `alertsEnabled` or `discoveryLogsEnabled` has to be specified. */ readonly discoveryLogsEnabled: pulumi.Output; /** * The ID of the Log Analytics Workspace that this Microsoft Cloud App Security Data Connector resides in. Changing this forces a new Microsoft Cloud App Security Data Connector to be created. */ readonly logAnalyticsWorkspaceId: pulumi.Output; /** * The name which should be used for this Microsoft Cloud App Security Data Connector. Changing this forces a new Microsoft Cloud App Security Data Connector to be created. */ readonly name: pulumi.Output; /** * The ID of the Tenant that this Microsoft Cloud App Security Data Connector connects to. * * > **Note:** Currently, only the same tenant as the running account is allowed. Cross-tenant scenario is not supported yet. */ readonly tenantId: pulumi.Output; /** * Create a DataConnectorMicrosoftCloudAppSecurity 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: DataConnectorMicrosoftCloudAppSecurityArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DataConnectorMicrosoftCloudAppSecurity resources. */ export interface DataConnectorMicrosoftCloudAppSecurityState { /** * Should the alerts be enabled? Defaults to `true`. */ alertsEnabled?: pulumi.Input; /** * Should the Discovery Logs be enabled? Defaults to `true`. * * > **Note:** One of either `alertsEnabled` or `discoveryLogsEnabled` has to be specified. */ discoveryLogsEnabled?: pulumi.Input; /** * The ID of the Log Analytics Workspace that this Microsoft Cloud App Security Data Connector resides in. Changing this forces a new Microsoft Cloud App Security Data Connector to be created. */ logAnalyticsWorkspaceId?: pulumi.Input; /** * The name which should be used for this Microsoft Cloud App Security Data Connector. Changing this forces a new Microsoft Cloud App Security Data Connector to be created. */ name?: pulumi.Input; /** * The ID of the Tenant that this Microsoft Cloud App Security Data Connector connects to. * * > **Note:** Currently, only the same tenant as the running account is allowed. Cross-tenant scenario is not supported yet. */ tenantId?: pulumi.Input; } /** * The set of arguments for constructing a DataConnectorMicrosoftCloudAppSecurity resource. */ export interface DataConnectorMicrosoftCloudAppSecurityArgs { /** * Should the alerts be enabled? Defaults to `true`. */ alertsEnabled?: pulumi.Input; /** * Should the Discovery Logs be enabled? Defaults to `true`. * * > **Note:** One of either `alertsEnabled` or `discoveryLogsEnabled` has to be specified. */ discoveryLogsEnabled?: pulumi.Input; /** * The ID of the Log Analytics Workspace that this Microsoft Cloud App Security Data Connector resides in. Changing this forces a new Microsoft Cloud App Security Data Connector to be created. */ logAnalyticsWorkspaceId: pulumi.Input; /** * The name which should be used for this Microsoft Cloud App Security Data Connector. Changing this forces a new Microsoft Cloud App Security Data Connector to be created. */ name?: pulumi.Input; /** * The ID of the Tenant that this Microsoft Cloud App Security Data Connector connects to. * * > **Note:** Currently, only the same tenant as the running account is allowed. Cross-tenant scenario is not supported yet. */ tenantId?: pulumi.Input; }