import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Active Directory SQL Administrator setting for a Synapse Workspace * * ## 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: "StorageV2", * isHnsEnabled: true, * }); * const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", { * name: "example", * storageAccountId: exampleAccount.id, * }); * const current = azure.core.getClientConfig({}); * const exampleKeyVault = new azure.keyvault.KeyVault("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * tenantId: current.then(current => current.tenantId), * skuName: "standard", * purgeProtectionEnabled: true, * }); * const deployer = new azure.keyvault.AccessPolicy("deployer", { * keyVaultId: exampleKeyVault.id, * tenantId: current.then(current => current.tenantId), * objectId: current.then(current => current.objectId), * keyPermissions: [ * "Create", * "Get", * "Delete", * "Purge", * "GetRotationPolicy", * ], * }); * const exampleKey = new azure.keyvault.Key("example", { * name: "workspace-encryption-key", * keyVaultId: exampleKeyVault.id, * keyType: "RSA", * keySize: 2048, * keyOpts: [ * "unwrapKey", * "wrapKey", * ], * }, { * dependsOn: [deployer], * }); * 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", * }, * tags: { * Env: "production", * }, * }); * const exampleWorkspaceSqlAadAdmin = new azure.synapse.WorkspaceSqlAadAdmin("example", { * synapseWorkspaceId: exampleWorkspace.id, * login: "AzureAD Admin", * objectId: current.then(current => current.objectId), * tenantId: current.then(current => current.tenantId), * }); * ``` * * ## Import * * Synapse Workspace Azure AD SQL Administrator can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:synapse/workspaceSqlAadAdmin:WorkspaceSqlAadAdmin example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/sqlAdministrators/activeDirectory * ``` */ export declare class WorkspaceSqlAadAdmin extends pulumi.CustomResource { /** * Get an existing WorkspaceSqlAadAdmin 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?: WorkspaceSqlAadAdminState, opts?: pulumi.CustomResourceOptions): WorkspaceSqlAadAdmin; /** * Returns true if the given object is an instance of WorkspaceSqlAadAdmin. 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 WorkspaceSqlAadAdmin; /** * The login name of the Azure AD SQL Administrator of this Synapse Workspace. */ readonly login: pulumi.Output; /** * The object id of the Azure AD SQL Administrator of this Synapse Workspace. */ readonly objectId: pulumi.Output; /** * The ID of the Synapse Workspace where the Azure AD SQL Administrator should be configured. */ readonly synapseWorkspaceId: pulumi.Output; /** * The tenant id of the Azure AD SQL Administrator of this Synapse Workspace. */ readonly tenantId: pulumi.Output; /** * Create a WorkspaceSqlAadAdmin 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: WorkspaceSqlAadAdminArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkspaceSqlAadAdmin resources. */ export interface WorkspaceSqlAadAdminState { /** * The login name of the Azure AD SQL Administrator of this Synapse Workspace. */ login?: pulumi.Input; /** * The object id of the Azure AD SQL Administrator of this Synapse Workspace. */ objectId?: pulumi.Input; /** * The ID of the Synapse Workspace where the Azure AD SQL Administrator should be configured. */ synapseWorkspaceId?: pulumi.Input; /** * The tenant id of the Azure AD SQL Administrator of this Synapse Workspace. */ tenantId?: pulumi.Input; } /** * The set of arguments for constructing a WorkspaceSqlAadAdmin resource. */ export interface WorkspaceSqlAadAdminArgs { /** * The login name of the Azure AD SQL Administrator of this Synapse Workspace. */ login: pulumi.Input; /** * The object id of the Azure AD SQL Administrator of this Synapse Workspace. */ objectId: pulumi.Input; /** * The ID of the Synapse Workspace where the Azure AD SQL Administrator should be configured. */ synapseWorkspaceId: pulumi.Input; /** * The tenant id of the Azure AD SQL Administrator of this Synapse Workspace. */ tenantId: pulumi.Input; }