Documentation
¶
Index ¶
- type LookupWorkspaceArgs
- type LookupWorkspaceResult
- type Workspace
- type WorkspaceArgs
- type WorkspaceIdentity
- type WorkspaceIdentityArgs
- func (WorkspaceIdentityArgs) ElementType() reflect.Type
- func (i WorkspaceIdentityArgs) ToWorkspaceIdentityOutput() WorkspaceIdentityOutput
- func (i WorkspaceIdentityArgs) ToWorkspaceIdentityOutputWithContext(ctx context.Context) WorkspaceIdentityOutput
- func (i WorkspaceIdentityArgs) ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput
- func (i WorkspaceIdentityArgs) ToWorkspaceIdentityPtrOutputWithContext(ctx context.Context) WorkspaceIdentityPtrOutput
- type WorkspaceIdentityInput
- type WorkspaceIdentityOutput
- func (WorkspaceIdentityOutput) ElementType() reflect.Type
- func (o WorkspaceIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o WorkspaceIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o WorkspaceIdentityOutput) ToWorkspaceIdentityOutput() WorkspaceIdentityOutput
- func (o WorkspaceIdentityOutput) ToWorkspaceIdentityOutputWithContext(ctx context.Context) WorkspaceIdentityOutput
- func (o WorkspaceIdentityOutput) ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput
- func (o WorkspaceIdentityOutput) ToWorkspaceIdentityPtrOutputWithContext(ctx context.Context) WorkspaceIdentityPtrOutput
- func (o WorkspaceIdentityOutput) Type() pulumi.StringOutput
- type WorkspaceIdentityPtrInput
- type WorkspaceIdentityPtrOutput
- func (o WorkspaceIdentityPtrOutput) Elem() WorkspaceIdentityOutput
- func (WorkspaceIdentityPtrOutput) ElementType() reflect.Type
- func (o WorkspaceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o WorkspaceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o WorkspaceIdentityPtrOutput) ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput
- func (o WorkspaceIdentityPtrOutput) ToWorkspaceIdentityPtrOutputWithContext(ctx context.Context) WorkspaceIdentityPtrOutput
- func (o WorkspaceIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type WorkspaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupWorkspaceArgs ¶
type LookupWorkspaceArgs struct { // The name of the Machine Learning Workspace exists. Name string `pulumi:"name"` // The name of the Resource Group where the Machine Learning Workspace exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getWorkspace.
type LookupWorkspaceResult ¶
type LookupWorkspaceResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The location where the Machine Learning Workspace exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the Machine Learning Workspace. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getWorkspace.
func LookupWorkspace ¶
func LookupWorkspace(ctx *pulumi.Context, args *LookupWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupWorkspaceResult, error)
Use this data source to access information about an existing Machine Learning Workspace.
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/machinelearning" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := machinelearning.LookupWorkspace(ctx, &machinelearning.LookupWorkspaceArgs{ Name: "example-workspace", ResourceGroupName: "example-resources", }, nil) if err != nil { return err } ctx.Export("id", azurerm_machine_learning_workspace.Existing.Id) return nil }) }
```
type Workspace ¶
type Workspace struct { pulumi.CustomResourceState // The ID of the Application Insights associated with this Machine Learning Workspace. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"` // The ID of the container registry associated with this Machine Learning Workspace. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringPtrOutput `pulumi:"containerRegistryId"` // The description of this Machine Learning Workspace. Description pulumi.StringPtrOutput `pulumi:"description"` // Friendly name for this Machine Learning Workspace. FriendlyName pulumi.StringPtrOutput `pulumi:"friendlyName"` // An `identity` block defined below. Identity WorkspaceIdentityOutput `pulumi:"identity"` // The ID of key vault associated with this Machine Learning Workspace. Changing this forces a new resource to be created. KeyVaultId pulumi.StringOutput `pulumi:"keyVaultId"` // Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Machine Learning Workspace. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // SKU/edition of the Machine Learning Workspace, possible values are `Basic` for a basic workspace or `Enterprise` for a feature rich workspace. Defaults to `Basic`. SkuName pulumi.StringPtrOutput `pulumi:"skuName"` // The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created. StorageAccountId pulumi.StringOutput `pulumi:"storageAccountId"` // A mapping of tags to assign to the resource. Changing this forces a new resource to be created. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Azure Machine Learning Workspace
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/keyvault" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/machinelearning" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := core.GetClientConfig(ctx, nil, nil) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, ApplicationType: pulumi.String("web"), }) if err != nil { return err } exampleKeyVault, err := keyvault.NewKeyVault(ctx, "exampleKeyVault", &keyvault.KeyVaultArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, TenantId: pulumi.String(current.TenantId), SkuName: pulumi.String("premium"), }) if err != nil { return err } exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("GRS"), }) if err != nil { return err } _, err = machinelearning.NewWorkspace(ctx, "exampleWorkspace", &machinelearning.WorkspaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, ApplicationInsightsId: exampleInsights.ID(), KeyVaultId: exampleKeyVault.ID(), StorageAccountId: exampleAccount.ID(), Identity: &machinelearning.WorkspaceIdentityArgs{ Type: pulumi.String("SystemAssigned"), }, }) if err != nil { return err } return nil }) }
```
func GetWorkspace ¶
func GetWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error)
GetWorkspace gets an existing Workspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkspace ¶
func NewWorkspace(ctx *pulumi.Context, name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error)
NewWorkspace registers a new resource with the given unique name, arguments, and options.
type WorkspaceArgs ¶
type WorkspaceArgs struct { // The ID of the Application Insights associated with this Machine Learning Workspace. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringInput // The ID of the container registry associated with this Machine Learning Workspace. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringPtrInput // The description of this Machine Learning Workspace. Description pulumi.StringPtrInput // Friendly name for this Machine Learning Workspace. FriendlyName pulumi.StringPtrInput // An `identity` block defined below. Identity WorkspaceIdentityInput // The ID of key vault associated with this Machine Learning Workspace. Changing this forces a new resource to be created. KeyVaultId pulumi.StringInput // Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Machine Learning Workspace. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // SKU/edition of the Machine Learning Workspace, possible values are `Basic` for a basic workspace or `Enterprise` for a feature rich workspace. Defaults to `Basic`. SkuName pulumi.StringPtrInput // The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created. StorageAccountId pulumi.StringInput // A mapping of tags to assign to the resource. Changing this forces a new resource to be created. Tags pulumi.StringMapInput }
The set of arguments for constructing a Workspace resource.
func (WorkspaceArgs) ElementType ¶
func (WorkspaceArgs) ElementType() reflect.Type
type WorkspaceIdentity ¶
type WorkspaceIdentity struct { // The (Client) ID of the Service Principal. PrincipalId *string `pulumi:"principalId"` // The ID of the Tenant the Service Principal is assigned in. TenantId *string `pulumi:"tenantId"` // The Type of Identity which should be used for this Disk Encryption Set. At this time the only possible value is `SystemAssigned`. Type string `pulumi:"type"` }
type WorkspaceIdentityArgs ¶
type WorkspaceIdentityArgs struct { // The (Client) ID of the Service Principal. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The ID of the Tenant the Service Principal is assigned in. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The Type of Identity which should be used for this Disk Encryption Set. At this time the only possible value is `SystemAssigned`. Type pulumi.StringInput `pulumi:"type"` }
func (WorkspaceIdentityArgs) ElementType ¶
func (WorkspaceIdentityArgs) ElementType() reflect.Type
func (WorkspaceIdentityArgs) ToWorkspaceIdentityOutput ¶
func (i WorkspaceIdentityArgs) ToWorkspaceIdentityOutput() WorkspaceIdentityOutput
func (WorkspaceIdentityArgs) ToWorkspaceIdentityOutputWithContext ¶
func (i WorkspaceIdentityArgs) ToWorkspaceIdentityOutputWithContext(ctx context.Context) WorkspaceIdentityOutput
func (WorkspaceIdentityArgs) ToWorkspaceIdentityPtrOutput ¶
func (i WorkspaceIdentityArgs) ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput
func (WorkspaceIdentityArgs) ToWorkspaceIdentityPtrOutputWithContext ¶
func (i WorkspaceIdentityArgs) ToWorkspaceIdentityPtrOutputWithContext(ctx context.Context) WorkspaceIdentityPtrOutput
type WorkspaceIdentityInput ¶
type WorkspaceIdentityInput interface { pulumi.Input ToWorkspaceIdentityOutput() WorkspaceIdentityOutput ToWorkspaceIdentityOutputWithContext(context.Context) WorkspaceIdentityOutput }
WorkspaceIdentityInput is an input type that accepts WorkspaceIdentityArgs and WorkspaceIdentityOutput values. You can construct a concrete instance of `WorkspaceIdentityInput` via:
WorkspaceIdentityArgs{...}
type WorkspaceIdentityOutput ¶
type WorkspaceIdentityOutput struct{ *pulumi.OutputState }
func (WorkspaceIdentityOutput) ElementType ¶
func (WorkspaceIdentityOutput) ElementType() reflect.Type
func (WorkspaceIdentityOutput) PrincipalId ¶
func (o WorkspaceIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The (Client) ID of the Service Principal.
func (WorkspaceIdentityOutput) TenantId ¶
func (o WorkspaceIdentityOutput) TenantId() pulumi.StringPtrOutput
The ID of the Tenant the Service Principal is assigned in.
func (WorkspaceIdentityOutput) ToWorkspaceIdentityOutput ¶
func (o WorkspaceIdentityOutput) ToWorkspaceIdentityOutput() WorkspaceIdentityOutput
func (WorkspaceIdentityOutput) ToWorkspaceIdentityOutputWithContext ¶
func (o WorkspaceIdentityOutput) ToWorkspaceIdentityOutputWithContext(ctx context.Context) WorkspaceIdentityOutput
func (WorkspaceIdentityOutput) ToWorkspaceIdentityPtrOutput ¶
func (o WorkspaceIdentityOutput) ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput
func (WorkspaceIdentityOutput) ToWorkspaceIdentityPtrOutputWithContext ¶
func (o WorkspaceIdentityOutput) ToWorkspaceIdentityPtrOutputWithContext(ctx context.Context) WorkspaceIdentityPtrOutput
func (WorkspaceIdentityOutput) Type ¶
func (o WorkspaceIdentityOutput) Type() pulumi.StringOutput
The Type of Identity which should be used for this Disk Encryption Set. At this time the only possible value is `SystemAssigned`.
type WorkspaceIdentityPtrInput ¶
type WorkspaceIdentityPtrInput interface { pulumi.Input ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput ToWorkspaceIdentityPtrOutputWithContext(context.Context) WorkspaceIdentityPtrOutput }
WorkspaceIdentityPtrInput is an input type that accepts WorkspaceIdentityArgs, WorkspaceIdentityPtr and WorkspaceIdentityPtrOutput values. You can construct a concrete instance of `WorkspaceIdentityPtrInput` via:
WorkspaceIdentityArgs{...} or: nil
func WorkspaceIdentityPtr ¶
func WorkspaceIdentityPtr(v *WorkspaceIdentityArgs) WorkspaceIdentityPtrInput
type WorkspaceIdentityPtrOutput ¶
type WorkspaceIdentityPtrOutput struct{ *pulumi.OutputState }
func (WorkspaceIdentityPtrOutput) Elem ¶
func (o WorkspaceIdentityPtrOutput) Elem() WorkspaceIdentityOutput
func (WorkspaceIdentityPtrOutput) ElementType ¶
func (WorkspaceIdentityPtrOutput) ElementType() reflect.Type
func (WorkspaceIdentityPtrOutput) PrincipalId ¶
func (o WorkspaceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The (Client) ID of the Service Principal.
func (WorkspaceIdentityPtrOutput) TenantId ¶
func (o WorkspaceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The ID of the Tenant the Service Principal is assigned in.
func (WorkspaceIdentityPtrOutput) ToWorkspaceIdentityPtrOutput ¶
func (o WorkspaceIdentityPtrOutput) ToWorkspaceIdentityPtrOutput() WorkspaceIdentityPtrOutput
func (WorkspaceIdentityPtrOutput) ToWorkspaceIdentityPtrOutputWithContext ¶
func (o WorkspaceIdentityPtrOutput) ToWorkspaceIdentityPtrOutputWithContext(ctx context.Context) WorkspaceIdentityPtrOutput
func (WorkspaceIdentityPtrOutput) Type ¶
func (o WorkspaceIdentityPtrOutput) Type() pulumi.StringPtrOutput
The Type of Identity which should be used for this Disk Encryption Set. At this time the only possible value is `SystemAssigned`.
type WorkspaceState ¶
type WorkspaceState struct { // The ID of the Application Insights associated with this Machine Learning Workspace. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringPtrInput // The ID of the container registry associated with this Machine Learning Workspace. Changing this forces a new resource to be created. ContainerRegistryId pulumi.StringPtrInput // The description of this Machine Learning Workspace. Description pulumi.StringPtrInput // Friendly name for this Machine Learning Workspace. FriendlyName pulumi.StringPtrInput // An `identity` block defined below. Identity WorkspaceIdentityPtrInput // The ID of key vault associated with this Machine Learning Workspace. Changing this forces a new resource to be created. KeyVaultId pulumi.StringPtrInput // Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Machine Learning Workspace. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // SKU/edition of the Machine Learning Workspace, possible values are `Basic` for a basic workspace or `Enterprise` for a feature rich workspace. Defaults to `Basic`. SkuName pulumi.StringPtrInput // The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created. StorageAccountId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Changing this forces a new resource to be created. Tags pulumi.StringMapInput }
func (WorkspaceState) ElementType ¶
func (WorkspaceState) ElementType() reflect.Type