import * as pulumi from "@pulumi/pulumi"; /** * Manages a Synapse Workspace Extended Auditing Policy. * * ## 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 exampleAccount = new azure.storage.Account("example", { * name: "examplestorageacc", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * accountKind: "BlobStorage", * }); * const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", { * name: "example", * storageAccountId: exampleAccount.id, * }); * const exampleWorkspace = new azure.synapse.Workspace("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id, * sqlAdministratorLogin: "sqladminuser", * sqlAdministratorLoginPassword: "H@Sh1CoR3!", * identity: { * type: "SystemAssigned", * }, * }); * const auditLogs = new azure.storage.Account("audit_logs", { * name: "examplesa", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleWorkspaceExtendedAuditingPolicy = new azure.synapse.WorkspaceExtendedAuditingPolicy("example", { * synapseWorkspaceId: exampleWorkspace.id, * storageEndpoint: auditLogs.primaryBlobEndpoint, * storageAccountAccessKey: auditLogs.primaryAccessKey, * storageAccountAccessKeyIsSecondary: false, * retentionInDays: 6, * }); * ``` * * ## Import * * Synapse Workspace Extended Auditing Policies can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:synapse/workspaceExtendedAuditingPolicy:WorkspaceExtendedAuditingPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Synapse/workspaces/workspace1/extendedAuditingSettings/default * ``` */ export declare class WorkspaceExtendedAuditingPolicy extends pulumi.CustomResource { /** * Get an existing WorkspaceExtendedAuditingPolicy 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?: WorkspaceExtendedAuditingPolicyState, opts?: pulumi.CustomResourceOptions): WorkspaceExtendedAuditingPolicy; /** * Returns true if the given object is an instance of WorkspaceExtendedAuditingPolicy. 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 WorkspaceExtendedAuditingPolicy; /** * Enable audit events to Azure Monitor? To enable server audit events to Azure Monitor, please enable its master database audit events to Azure Monitor. Defaults to `true`. */ readonly logMonitoringEnabled: pulumi.Output; /** * The number of days to retain logs for in the storage account. Defaults to `0`. */ readonly retentionInDays: pulumi.Output; /** * The access key to use for the auditing storage account. */ readonly storageAccountAccessKey: pulumi.Output; /** * Is `storageAccountAccessKey` value the storage's secondary key? */ readonly storageAccountAccessKeyIsSecondary: pulumi.Output; /** * The blob storage endpoint (e.g. ). This blob storage will hold all extended auditing logs. */ readonly storageEndpoint: pulumi.Output; /** * The ID of the Synapse workspace to set the extended auditing policy. Changing this forces a new resource to be created. */ readonly synapseWorkspaceId: pulumi.Output; /** * Create a WorkspaceExtendedAuditingPolicy 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: WorkspaceExtendedAuditingPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkspaceExtendedAuditingPolicy resources. */ export interface WorkspaceExtendedAuditingPolicyState { /** * Enable audit events to Azure Monitor? To enable server audit events to Azure Monitor, please enable its master database audit events to Azure Monitor. Defaults to `true`. */ logMonitoringEnabled?: pulumi.Input; /** * The number of days to retain logs for in the storage account. Defaults to `0`. */ retentionInDays?: pulumi.Input; /** * The access key to use for the auditing storage account. */ storageAccountAccessKey?: pulumi.Input; /** * Is `storageAccountAccessKey` value the storage's secondary key? */ storageAccountAccessKeyIsSecondary?: pulumi.Input; /** * The blob storage endpoint (e.g. ). This blob storage will hold all extended auditing logs. */ storageEndpoint?: pulumi.Input; /** * The ID of the Synapse workspace to set the extended auditing policy. Changing this forces a new resource to be created. */ synapseWorkspaceId?: pulumi.Input; } /** * The set of arguments for constructing a WorkspaceExtendedAuditingPolicy resource. */ export interface WorkspaceExtendedAuditingPolicyArgs { /** * Enable audit events to Azure Monitor? To enable server audit events to Azure Monitor, please enable its master database audit events to Azure Monitor. Defaults to `true`. */ logMonitoringEnabled?: pulumi.Input; /** * The number of days to retain logs for in the storage account. Defaults to `0`. */ retentionInDays?: pulumi.Input; /** * The access key to use for the auditing storage account. */ storageAccountAccessKey?: pulumi.Input; /** * Is `storageAccountAccessKey` value the storage's secondary key? */ storageAccountAccessKeyIsSecondary?: pulumi.Input; /** * The blob storage endpoint (e.g. ). This blob storage will hold all extended auditing logs. */ storageEndpoint?: pulumi.Input; /** * The ID of the Synapse workspace to set the extended auditing policy. Changing this forces a new resource to be created. */ synapseWorkspaceId: pulumi.Input; }