azure-native.machinelearningservices.WorkspaceConnection
Explore with Pulumi AI
Workspace connection. API Version: 2021-01-01.
Example Usage
CreateWorkspaceConnection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspaceConnection = new AzureNative.MachineLearningServices.WorkspaceConnection("workspaceConnection", new()
{
AuthType = "PAT",
Category = "ACR",
ConnectionName = "connection-1",
Name = "connection-1",
ResourceGroupName = "resourceGroup-1",
Target = "www.facebook.com",
Value = "secrets",
WorkspaceName = "workspace-1",
});
});
package main
import (
machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearningservices.NewWorkspaceConnection(ctx, "workspaceConnection", &machinelearningservices.WorkspaceConnectionArgs{
AuthType: pulumi.String("PAT"),
Category: pulumi.String("ACR"),
ConnectionName: pulumi.String("connection-1"),
Name: pulumi.String("connection-1"),
ResourceGroupName: pulumi.String("resourceGroup-1"),
Target: pulumi.String("www.facebook.com"),
Value: pulumi.String("secrets"),
WorkspaceName: pulumi.String("workspace-1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.machinelearningservices.WorkspaceConnection;
import com.pulumi.azurenative.machinelearningservices.WorkspaceConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var workspaceConnection = new WorkspaceConnection("workspaceConnection", WorkspaceConnectionArgs.builder()
.authType("PAT")
.category("ACR")
.connectionName("connection-1")
.name("connection-1")
.resourceGroupName("resourceGroup-1")
.target("www.facebook.com")
.value("secrets")
.workspaceName("workspace-1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
workspace_connection = azure_native.machinelearningservices.WorkspaceConnection("workspaceConnection",
auth_type="PAT",
category="ACR",
connection_name="connection-1",
name="connection-1",
resource_group_name="resourceGroup-1",
target="www.facebook.com",
value="secrets",
workspace_name="workspace-1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const workspaceConnection = new azure_native.machinelearningservices.WorkspaceConnection("workspaceConnection", {
authType: "PAT",
category: "ACR",
connectionName: "connection-1",
name: "connection-1",
resourceGroupName: "resourceGroup-1",
target: "www.facebook.com",
value: "secrets",
workspaceName: "workspace-1",
});
resources:
workspaceConnection:
type: azure-native:machinelearningservices:WorkspaceConnection
properties:
authType: PAT
category: ACR
connectionName: connection-1
name: connection-1
resourceGroupName: resourceGroup-1
target: www.facebook.com
value: secrets
workspaceName: workspace-1
Create WorkspaceConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkspaceConnection(name: string, args: WorkspaceConnectionArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceConnection(resource_name: str,
args: WorkspaceConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
workspace_name: Optional[str] = None,
auth_type: Optional[str] = None,
category: Optional[str] = None,
connection_name: Optional[str] = None,
name: Optional[str] = None,
target: Optional[str] = None,
value: Optional[str] = None,
value_format: Optional[Union[str, ValueFormat]] = None)
func NewWorkspaceConnection(ctx *Context, name string, args WorkspaceConnectionArgs, opts ...ResourceOption) (*WorkspaceConnection, error)
public WorkspaceConnection(string name, WorkspaceConnectionArgs args, CustomResourceOptions? opts = null)
public WorkspaceConnection(String name, WorkspaceConnectionArgs args)
public WorkspaceConnection(String name, WorkspaceConnectionArgs args, CustomResourceOptions options)
type: azure-native:machinelearningservices:WorkspaceConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkspaceConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkspaceConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkspaceConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var workspaceConnectionResource = new AzureNative.Machinelearningservices.WorkspaceConnection("workspaceConnectionResource", new()
{
ResourceGroupName = "string",
WorkspaceName = "string",
AuthType = "string",
Category = "string",
ConnectionName = "string",
Name = "string",
Target = "string",
Value = "string",
ValueFormat = "string",
});
example, err := machinelearningservices.NewWorkspaceConnection(ctx, "workspaceConnectionResource", &machinelearningservices.WorkspaceConnectionArgs{
ResourceGroupName: "string",
WorkspaceName: "string",
AuthType: "string",
Category: "string",
ConnectionName: "string",
Name: "string",
Target: "string",
Value: "string",
ValueFormat: "string",
})
var workspaceConnectionResource = new WorkspaceConnection("workspaceConnectionResource", WorkspaceConnectionArgs.builder()
.resourceGroupName("string")
.workspaceName("string")
.authType("string")
.category("string")
.connectionName("string")
.name("string")
.target("string")
.value("string")
.valueFormat("string")
.build());
workspace_connection_resource = azure_native.machinelearningservices.WorkspaceConnection("workspaceConnectionResource",
resource_group_name=string,
workspace_name=string,
auth_type=string,
category=string,
connection_name=string,
name=string,
target=string,
value=string,
value_format=string)
const workspaceConnectionResource = new azure_native.machinelearningservices.WorkspaceConnection("workspaceConnectionResource", {
resourceGroupName: "string",
workspaceName: "string",
authType: "string",
category: "string",
connectionName: "string",
name: "string",
target: "string",
value: "string",
valueFormat: "string",
});
type: azure-native:machinelearningservices:WorkspaceConnection
properties:
authType: string
category: string
connectionName: string
name: string
resourceGroupName: string
target: string
value: string
valueFormat: string
workspaceName: string
WorkspaceConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkspaceConnection resource accepts the following input properties:
- Resource
Group stringName - Name of the resource group in which workspace is located.
- Workspace
Name string - Name of Azure Machine Learning workspace.
- Auth
Type string - Authorization type of the workspace connection.
- Category string
- Category of the workspace connection.
- Connection
Name string - Friendly name of the workspace connection
- Name string
- Friendly name of the workspace connection
- Target string
- Target of the workspace connection.
- Value string
- Value details of the workspace connection.
- Value
Format string | Pulumi.Azure Native. Machine Learning Services. Value Format - format for the workspace connection value
- Resource
Group stringName - Name of the resource group in which workspace is located.
- Workspace
Name string - Name of Azure Machine Learning workspace.
- Auth
Type string - Authorization type of the workspace connection.
- Category string
- Category of the workspace connection.
- Connection
Name string - Friendly name of the workspace connection
- Name string
- Friendly name of the workspace connection
- Target string
- Target of the workspace connection.
- Value string
- Value details of the workspace connection.
- Value
Format string | ValueFormat - format for the workspace connection value
- resource
Group StringName - Name of the resource group in which workspace is located.
- workspace
Name String - Name of Azure Machine Learning workspace.
- auth
Type String - Authorization type of the workspace connection.
- category String
- Category of the workspace connection.
- connection
Name String - Friendly name of the workspace connection
- name String
- Friendly name of the workspace connection
- target String
- Target of the workspace connection.
- value String
- Value details of the workspace connection.
- value
Format String | ValueFormat - format for the workspace connection value
- resource
Group stringName - Name of the resource group in which workspace is located.
- workspace
Name string - Name of Azure Machine Learning workspace.
- auth
Type string - Authorization type of the workspace connection.
- category string
- Category of the workspace connection.
- connection
Name string - Friendly name of the workspace connection
- name string
- Friendly name of the workspace connection
- target string
- Target of the workspace connection.
- value string
- Value details of the workspace connection.
- value
Format string | ValueFormat - format for the workspace connection value
- resource_
group_ strname - Name of the resource group in which workspace is located.
- workspace_
name str - Name of Azure Machine Learning workspace.
- auth_
type str - Authorization type of the workspace connection.
- category str
- Category of the workspace connection.
- connection_
name str - Friendly name of the workspace connection
- name str
- Friendly name of the workspace connection
- target str
- Target of the workspace connection.
- value str
- Value details of the workspace connection.
- value_
format str | ValueFormat - format for the workspace connection value
- resource
Group StringName - Name of the resource group in which workspace is located.
- workspace
Name String - Name of Azure Machine Learning workspace.
- auth
Type String - Authorization type of the workspace connection.
- category String
- Category of the workspace connection.
- connection
Name String - Friendly name of the workspace connection
- name String
- Friendly name of the workspace connection
- target String
- Target of the workspace connection.
- value String
- Value details of the workspace connection.
- value
Format String | "JSON" - format for the workspace connection value
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceConnection resource produces the following output properties:
Supporting Types
ValueFormat, ValueFormatArgs
- JSON
- JSON
- Value
Format JSON - JSON
- JSON
- JSON
- JSON
- JSON
- JSON
- JSON
- "JSON"
- JSON
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:machinelearningservices:WorkspaceConnection connection-1 /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/connections/connection-1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0