1. Packages
  2. Azure Native v1
  3. API Docs
  4. machinelearningservices
  5. WorkspaceConnection
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.machinelearningservices.WorkspaceConnection

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The WorkspaceConnection resource accepts the following input properties:

    ResourceGroupName string
    Name of the resource group in which workspace is located.
    WorkspaceName string
    Name of Azure Machine Learning workspace.
    AuthType string
    Authorization type of the workspace connection.
    Category string
    Category of the workspace connection.
    ConnectionName 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.
    ValueFormat string | Pulumi.AzureNative.MachineLearningServices.ValueFormat
    format for the workspace connection value
    ResourceGroupName string
    Name of the resource group in which workspace is located.
    WorkspaceName string
    Name of Azure Machine Learning workspace.
    AuthType string
    Authorization type of the workspace connection.
    Category string
    Category of the workspace connection.
    ConnectionName 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.
    ValueFormat string | ValueFormat
    format for the workspace connection value
    resourceGroupName String
    Name of the resource group in which workspace is located.
    workspaceName String
    Name of Azure Machine Learning workspace.
    authType String
    Authorization type of the workspace connection.
    category String
    Category of the workspace connection.
    connectionName 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.
    valueFormat String | ValueFormat
    format for the workspace connection value
    resourceGroupName string
    Name of the resource group in which workspace is located.
    workspaceName string
    Name of Azure Machine Learning workspace.
    authType string
    Authorization type of the workspace connection.
    category string
    Category of the workspace connection.
    connectionName 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.
    valueFormat string | ValueFormat
    format for the workspace connection value
    resource_group_name str
    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
    resourceGroupName String
    Name of the resource group in which workspace is located.
    workspaceName String
    Name of Azure Machine Learning workspace.
    authType String
    Authorization type of the workspace connection.
    category String
    Category of the workspace connection.
    connectionName 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.
    valueFormat 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Resource type of workspace connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Resource type of workspace connection.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Resource type of workspace connection.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    Resource type of workspace connection.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    Resource type of workspace connection.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Resource type of workspace connection.

    Supporting Types

    ValueFormat, ValueFormatArgs

    JSON
    JSON
    ValueFormatJSON
    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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi