import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Machine Learning Workspace Network Outbound Rule Private Endpoint. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const current = azure.core.getClientConfig({}); * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleInsights = new azure.appinsights.Insights("example", { * name: "workspace-example-ai", * location: example.location, * resourceGroupName: example.name, * applicationType: "web", * }); * const exampleKeyVault = new azure.keyvault.KeyVault("example", { * name: "workspaceexamplekeyvault", * location: example.location, * resourceGroupName: example.name, * tenantId: current.then(current => current.tenantId), * skuName: "premium", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "workspacestorageaccount", * location: example.location, * resourceGroupName: example.name, * accountTier: "Standard", * accountReplicationType: "GRS", * }); * const exampleWorkspace = new azure.machinelearning.Workspace("example", { * name: "example-workspace", * location: example.location, * resourceGroupName: example.name, * applicationInsightsId: exampleInsights.id, * keyVaultId: exampleKeyVault.id, * storageAccountId: exampleAccount.id, * managedNetwork: { * isolationMode: "AllowOnlyApprovedOutbound", * }, * identity: { * type: "SystemAssigned", * }, * }); * const example2 = new azure.storage.Account("example2", { * name: "example-sa", * location: test.location, * resourceGroupName: test.name, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleWorkspaceNetworkOutboundRulePrivateEndpoint = new azure.machinelearning.WorkspaceNetworkOutboundRulePrivateEndpoint("example", { * name: "example-outboundrule", * workspaceId: exampleWorkspace.id, * serviceResourceId: example2.id, * subResourceTarget: "blob", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.MachineLearningServices` - 2025-06-01 * * ## Import * * Machine Learning Workspace Network Outbound Rule Private Endpoint can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:machinelearning/workspaceNetworkOutboundRulePrivateEndpoint:WorkspaceNetworkOutboundRulePrivateEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/outboundRules/rule1 * ``` */ export declare class WorkspaceNetworkOutboundRulePrivateEndpoint extends pulumi.CustomResource { /** * Get an existing WorkspaceNetworkOutboundRulePrivateEndpoint 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?: WorkspaceNetworkOutboundRulePrivateEndpointState, opts?: pulumi.CustomResourceOptions): WorkspaceNetworkOutboundRulePrivateEndpoint; /** * Returns true if the given object is an instance of WorkspaceNetworkOutboundRulePrivateEndpoint. 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 WorkspaceNetworkOutboundRulePrivateEndpoint; /** * Specifies the name of the Machine Learning Workspace Network Outbound Rule Private Endpoint. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the Service Resource ID to connect. Changing this forces a new resource to be created. * * > **Note:** Supported service resources: **Key Vault**, **Storage Account**, **Machine Learning Workspace**, **Redis**. */ readonly serviceResourceId: pulumi.Output; /** * Whether to enable an additional private endpoint to be used by jobs running on Spark. Changing this forces a new resource to be created. */ readonly sparkEnabled: pulumi.Output; /** * Specifies the Sub Resource of the service resource to connect to. Possible values are `vault`,`amlworkspace`,`blob`,`table`,`queue`,`file`,`web`,`dfs`, `redisCache`. Changing this forces a new resource to be created. * * | Service | Sub Resource Type | * |----------------------------|-------------------------------------------| * | Machine Learning Workspace | `amlworkspace` | * | Redis | `redisCache` | * | Storage Account | `blob`,`table`,`queue`,`file`,`web`,`dfs` | * | Key Vault | `vault` | */ readonly subResourceTarget: pulumi.Output; /** * Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created. */ readonly workspaceId: pulumi.Output; /** * Create a WorkspaceNetworkOutboundRulePrivateEndpoint 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: WorkspaceNetworkOutboundRulePrivateEndpointArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkspaceNetworkOutboundRulePrivateEndpoint resources. */ export interface WorkspaceNetworkOutboundRulePrivateEndpointState { /** * Specifies the name of the Machine Learning Workspace Network Outbound Rule Private Endpoint. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the Service Resource ID to connect. Changing this forces a new resource to be created. * * > **Note:** Supported service resources: **Key Vault**, **Storage Account**, **Machine Learning Workspace**, **Redis**. */ serviceResourceId?: pulumi.Input; /** * Whether to enable an additional private endpoint to be used by jobs running on Spark. Changing this forces a new resource to be created. */ sparkEnabled?: pulumi.Input; /** * Specifies the Sub Resource of the service resource to connect to. Possible values are `vault`,`amlworkspace`,`blob`,`table`,`queue`,`file`,`web`,`dfs`, `redisCache`. Changing this forces a new resource to be created. * * | Service | Sub Resource Type | * |----------------------------|-------------------------------------------| * | Machine Learning Workspace | `amlworkspace` | * | Redis | `redisCache` | * | Storage Account | `blob`,`table`,`queue`,`file`,`web`,`dfs` | * | Key Vault | `vault` | */ subResourceTarget?: pulumi.Input; /** * Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created. */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a WorkspaceNetworkOutboundRulePrivateEndpoint resource. */ export interface WorkspaceNetworkOutboundRulePrivateEndpointArgs { /** * Specifies the name of the Machine Learning Workspace Network Outbound Rule Private Endpoint. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the Service Resource ID to connect. Changing this forces a new resource to be created. * * > **Note:** Supported service resources: **Key Vault**, **Storage Account**, **Machine Learning Workspace**, **Redis**. */ serviceResourceId: pulumi.Input; /** * Whether to enable an additional private endpoint to be used by jobs running on Spark. Changing this forces a new resource to be created. */ sparkEnabled?: pulumi.Input; /** * Specifies the Sub Resource of the service resource to connect to. Possible values are `vault`,`amlworkspace`,`blob`,`table`,`queue`,`file`,`web`,`dfs`, `redisCache`. Changing this forces a new resource to be created. * * | Service | Sub Resource Type | * |----------------------------|-------------------------------------------| * | Machine Learning Workspace | `amlworkspace` | * | Redis | `redisCache` | * | Storage Account | `blob`,`table`,`queue`,`file`,`web`,`dfs` | * | Key Vault | `vault` | */ subResourceTarget: pulumi.Input; /** * Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created. */ workspaceId: pulumi.Input; }