Documentation ¶
Index ¶
- type DevCenter
- type DevCenterArgs
- type DevCenterArray
- type DevCenterArrayInput
- type DevCenterArrayOutput
- func (DevCenterArrayOutput) ElementType() reflect.Type
- func (o DevCenterArrayOutput) Index(i pulumi.IntInput) DevCenterOutput
- func (o DevCenterArrayOutput) ToDevCenterArrayOutput() DevCenterArrayOutput
- func (o DevCenterArrayOutput) ToDevCenterArrayOutputWithContext(ctx context.Context) DevCenterArrayOutput
- type DevCenterIdentity
- type DevCenterIdentityArgs
- func (DevCenterIdentityArgs) ElementType() reflect.Type
- func (i DevCenterIdentityArgs) ToDevCenterIdentityOutput() DevCenterIdentityOutput
- func (i DevCenterIdentityArgs) ToDevCenterIdentityOutputWithContext(ctx context.Context) DevCenterIdentityOutput
- func (i DevCenterIdentityArgs) ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput
- func (i DevCenterIdentityArgs) ToDevCenterIdentityPtrOutputWithContext(ctx context.Context) DevCenterIdentityPtrOutput
- type DevCenterIdentityInput
- type DevCenterIdentityOutput
- func (DevCenterIdentityOutput) ElementType() reflect.Type
- func (o DevCenterIdentityOutput) IdentityIds() pulumi.StringArrayOutput
- func (o DevCenterIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o DevCenterIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o DevCenterIdentityOutput) ToDevCenterIdentityOutput() DevCenterIdentityOutput
- func (o DevCenterIdentityOutput) ToDevCenterIdentityOutputWithContext(ctx context.Context) DevCenterIdentityOutput
- func (o DevCenterIdentityOutput) ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput
- func (o DevCenterIdentityOutput) ToDevCenterIdentityPtrOutputWithContext(ctx context.Context) DevCenterIdentityPtrOutput
- func (o DevCenterIdentityOutput) Type() pulumi.StringOutput
- type DevCenterIdentityPtrInput
- type DevCenterIdentityPtrOutput
- func (o DevCenterIdentityPtrOutput) Elem() DevCenterIdentityOutput
- func (DevCenterIdentityPtrOutput) ElementType() reflect.Type
- func (o DevCenterIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
- func (o DevCenterIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o DevCenterIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o DevCenterIdentityPtrOutput) ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput
- func (o DevCenterIdentityPtrOutput) ToDevCenterIdentityPtrOutputWithContext(ctx context.Context) DevCenterIdentityPtrOutput
- func (o DevCenterIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type DevCenterInput
- type DevCenterMap
- type DevCenterMapInput
- type DevCenterMapOutput
- type DevCenterOutput
- func (o DevCenterOutput) DevCenterUri() pulumi.StringOutput
- func (DevCenterOutput) ElementType() reflect.Type
- func (o DevCenterOutput) Identity() DevCenterIdentityPtrOutput
- func (o DevCenterOutput) Location() pulumi.StringOutput
- func (o DevCenterOutput) Name() pulumi.StringOutput
- func (o DevCenterOutput) ResourceGroupName() pulumi.StringOutput
- func (o DevCenterOutput) Tags() pulumi.StringMapOutput
- func (o DevCenterOutput) ToDevCenterOutput() DevCenterOutput
- func (o DevCenterOutput) ToDevCenterOutputWithContext(ctx context.Context) DevCenterOutput
- type DevCenterState
- type Gallery
- type GalleryArgs
- type GalleryArray
- type GalleryArrayInput
- type GalleryArrayOutput
- type GalleryInput
- type GalleryMap
- type GalleryMapInput
- type GalleryMapOutput
- type GalleryOutput
- func (o GalleryOutput) DevCenterId() pulumi.StringOutput
- func (GalleryOutput) ElementType() reflect.Type
- func (o GalleryOutput) Name() pulumi.StringOutput
- func (o GalleryOutput) SharedGalleryId() pulumi.StringOutput
- func (o GalleryOutput) ToGalleryOutput() GalleryOutput
- func (o GalleryOutput) ToGalleryOutputWithContext(ctx context.Context) GalleryOutput
- type GalleryState
- type Project
- type ProjectArgs
- type ProjectArray
- type ProjectArrayInput
- type ProjectArrayOutput
- type ProjectInput
- type ProjectMap
- type ProjectMapInput
- type ProjectMapOutput
- type ProjectOutput
- func (o ProjectOutput) Description() pulumi.StringPtrOutput
- func (o ProjectOutput) DevCenterId() pulumi.StringOutput
- func (o ProjectOutput) DevCenterUri() pulumi.StringOutput
- func (ProjectOutput) ElementType() reflect.Type
- func (o ProjectOutput) Location() pulumi.StringOutput
- func (o ProjectOutput) MaximumDevBoxesPerUser() pulumi.IntPtrOutput
- func (o ProjectOutput) Name() pulumi.StringOutput
- func (o ProjectOutput) ResourceGroupName() pulumi.StringOutput
- func (o ProjectOutput) Tags() pulumi.StringMapOutput
- func (o ProjectOutput) ToProjectOutput() ProjectOutput
- func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
- type ProjectState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevCenter ¶
type DevCenter struct { pulumi.CustomResourceState // The URI of the Dev Center. DevCenterUri pulumi.StringOutput `pulumi:"devCenterUri"` // An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center. Identity DevCenterIdentityPtrOutput `pulumi:"identity"` // The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Dev Center. Tags pulumi.StringMapOutput `pulumi:"tags"` }
<!-- Note: This documentation is generated. Any manual changes will be overwritten -->
Manages a Dev Center.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/devcenter" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{ Name: pulumi.String("example"), ResourceGroupName: example.Name, Location: example.Location, }) if err != nil { return err } _, err = devcenter.NewDevCenter(ctx, "example", &devcenter.DevCenterArgs{ Location: example.Location, Name: pulumi.String("example"), ResourceGroupName: example.Name, }) if err != nil { return err } return nil }) }
``` ## Blocks Reference
### `identity` Block
The `identity` block supports the following arguments:
* `type` - (Required) Specifies the type of Managed Identity that should be assigned to this Dev Center. Possible values are `SystemAssigned`, `SystemAssigned, UserAssigned` and `UserAssigned`. * `identityIds` - (Optional) A list of the User Assigned Identity IDs that should be assigned to this Dev Center.
In addition to the arguments defined above, the `identity` block exports the following attributes:
* `principalId` - The Principal ID for the System-Assigned Managed Identity assigned to this Dev Center. * `tenantId` - The Tenant ID for the System-Assigned Managed Identity assigned to this Dev Center.
## Import
An existing Dev Center can be imported into Terraform using the `resource id`, e.g.
```sh $ pulumi import azure:devcenter/devCenter:DevCenter example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devCenters/{devCenterName} ```
Where `{subscriptionId}` is the ID of the Azure Subscription where the Dev Center exists. For example `12345678-1234-9876-4563-123456789012`.
Where `{resourceGroupName}` is the name of Resource Group where this Dev Center exists. For example `example-resource-group`.
Where `{devCenterName}` is the name of the Dev Center. For example `devCenterValue`.
func GetDevCenter ¶
func GetDevCenter(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DevCenterState, opts ...pulumi.ResourceOption) (*DevCenter, error)
GetDevCenter gets an existing DevCenter 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 NewDevCenter ¶
func NewDevCenter(ctx *pulumi.Context, name string, args *DevCenterArgs, opts ...pulumi.ResourceOption) (*DevCenter, error)
NewDevCenter registers a new resource with the given unique name, arguments, and options.
func (*DevCenter) ElementType ¶
func (*DevCenter) ToDevCenterOutput ¶
func (i *DevCenter) ToDevCenterOutput() DevCenterOutput
func (*DevCenter) ToDevCenterOutputWithContext ¶
func (i *DevCenter) ToDevCenterOutputWithContext(ctx context.Context) DevCenterOutput
type DevCenterArgs ¶
type DevCenterArgs struct { // An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center. Identity DevCenterIdentityPtrInput // The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created. Location pulumi.StringPtrInput // Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Dev Center. Tags pulumi.StringMapInput }
The set of arguments for constructing a DevCenter resource.
func (DevCenterArgs) ElementType ¶
func (DevCenterArgs) ElementType() reflect.Type
type DevCenterArray ¶
type DevCenterArray []DevCenterInput
func (DevCenterArray) ElementType ¶
func (DevCenterArray) ElementType() reflect.Type
func (DevCenterArray) ToDevCenterArrayOutput ¶
func (i DevCenterArray) ToDevCenterArrayOutput() DevCenterArrayOutput
func (DevCenterArray) ToDevCenterArrayOutputWithContext ¶
func (i DevCenterArray) ToDevCenterArrayOutputWithContext(ctx context.Context) DevCenterArrayOutput
type DevCenterArrayInput ¶
type DevCenterArrayInput interface { pulumi.Input ToDevCenterArrayOutput() DevCenterArrayOutput ToDevCenterArrayOutputWithContext(context.Context) DevCenterArrayOutput }
DevCenterArrayInput is an input type that accepts DevCenterArray and DevCenterArrayOutput values. You can construct a concrete instance of `DevCenterArrayInput` via:
DevCenterArray{ DevCenterArgs{...} }
type DevCenterArrayOutput ¶
type DevCenterArrayOutput struct{ *pulumi.OutputState }
func (DevCenterArrayOutput) ElementType ¶
func (DevCenterArrayOutput) ElementType() reflect.Type
func (DevCenterArrayOutput) Index ¶
func (o DevCenterArrayOutput) Index(i pulumi.IntInput) DevCenterOutput
func (DevCenterArrayOutput) ToDevCenterArrayOutput ¶
func (o DevCenterArrayOutput) ToDevCenterArrayOutput() DevCenterArrayOutput
func (DevCenterArrayOutput) ToDevCenterArrayOutputWithContext ¶
func (o DevCenterArrayOutput) ToDevCenterArrayOutputWithContext(ctx context.Context) DevCenterArrayOutput
type DevCenterIdentity ¶
type DevCenterIdentityArgs ¶
type DevCenterIdentityArgs struct { IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` TenantId pulumi.StringPtrInput `pulumi:"tenantId"` Type pulumi.StringInput `pulumi:"type"` }
func (DevCenterIdentityArgs) ElementType ¶
func (DevCenterIdentityArgs) ElementType() reflect.Type
func (DevCenterIdentityArgs) ToDevCenterIdentityOutput ¶
func (i DevCenterIdentityArgs) ToDevCenterIdentityOutput() DevCenterIdentityOutput
func (DevCenterIdentityArgs) ToDevCenterIdentityOutputWithContext ¶
func (i DevCenterIdentityArgs) ToDevCenterIdentityOutputWithContext(ctx context.Context) DevCenterIdentityOutput
func (DevCenterIdentityArgs) ToDevCenterIdentityPtrOutput ¶
func (i DevCenterIdentityArgs) ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput
func (DevCenterIdentityArgs) ToDevCenterIdentityPtrOutputWithContext ¶
func (i DevCenterIdentityArgs) ToDevCenterIdentityPtrOutputWithContext(ctx context.Context) DevCenterIdentityPtrOutput
type DevCenterIdentityInput ¶
type DevCenterIdentityInput interface { pulumi.Input ToDevCenterIdentityOutput() DevCenterIdentityOutput ToDevCenterIdentityOutputWithContext(context.Context) DevCenterIdentityOutput }
DevCenterIdentityInput is an input type that accepts DevCenterIdentityArgs and DevCenterIdentityOutput values. You can construct a concrete instance of `DevCenterIdentityInput` via:
DevCenterIdentityArgs{...}
type DevCenterIdentityOutput ¶
type DevCenterIdentityOutput struct{ *pulumi.OutputState }
func (DevCenterIdentityOutput) ElementType ¶
func (DevCenterIdentityOutput) ElementType() reflect.Type
func (DevCenterIdentityOutput) IdentityIds ¶
func (o DevCenterIdentityOutput) IdentityIds() pulumi.StringArrayOutput
func (DevCenterIdentityOutput) PrincipalId ¶
func (o DevCenterIdentityOutput) PrincipalId() pulumi.StringPtrOutput
func (DevCenterIdentityOutput) TenantId ¶
func (o DevCenterIdentityOutput) TenantId() pulumi.StringPtrOutput
func (DevCenterIdentityOutput) ToDevCenterIdentityOutput ¶
func (o DevCenterIdentityOutput) ToDevCenterIdentityOutput() DevCenterIdentityOutput
func (DevCenterIdentityOutput) ToDevCenterIdentityOutputWithContext ¶
func (o DevCenterIdentityOutput) ToDevCenterIdentityOutputWithContext(ctx context.Context) DevCenterIdentityOutput
func (DevCenterIdentityOutput) ToDevCenterIdentityPtrOutput ¶
func (o DevCenterIdentityOutput) ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput
func (DevCenterIdentityOutput) ToDevCenterIdentityPtrOutputWithContext ¶
func (o DevCenterIdentityOutput) ToDevCenterIdentityPtrOutputWithContext(ctx context.Context) DevCenterIdentityPtrOutput
func (DevCenterIdentityOutput) Type ¶
func (o DevCenterIdentityOutput) Type() pulumi.StringOutput
type DevCenterIdentityPtrInput ¶
type DevCenterIdentityPtrInput interface { pulumi.Input ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput ToDevCenterIdentityPtrOutputWithContext(context.Context) DevCenterIdentityPtrOutput }
DevCenterIdentityPtrInput is an input type that accepts DevCenterIdentityArgs, DevCenterIdentityPtr and DevCenterIdentityPtrOutput values. You can construct a concrete instance of `DevCenterIdentityPtrInput` via:
DevCenterIdentityArgs{...} or: nil
func DevCenterIdentityPtr ¶
func DevCenterIdentityPtr(v *DevCenterIdentityArgs) DevCenterIdentityPtrInput
type DevCenterIdentityPtrOutput ¶
type DevCenterIdentityPtrOutput struct{ *pulumi.OutputState }
func (DevCenterIdentityPtrOutput) Elem ¶
func (o DevCenterIdentityPtrOutput) Elem() DevCenterIdentityOutput
func (DevCenterIdentityPtrOutput) ElementType ¶
func (DevCenterIdentityPtrOutput) ElementType() reflect.Type
func (DevCenterIdentityPtrOutput) IdentityIds ¶
func (o DevCenterIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
func (DevCenterIdentityPtrOutput) PrincipalId ¶
func (o DevCenterIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
func (DevCenterIdentityPtrOutput) TenantId ¶
func (o DevCenterIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
func (DevCenterIdentityPtrOutput) ToDevCenterIdentityPtrOutput ¶
func (o DevCenterIdentityPtrOutput) ToDevCenterIdentityPtrOutput() DevCenterIdentityPtrOutput
func (DevCenterIdentityPtrOutput) ToDevCenterIdentityPtrOutputWithContext ¶
func (o DevCenterIdentityPtrOutput) ToDevCenterIdentityPtrOutputWithContext(ctx context.Context) DevCenterIdentityPtrOutput
func (DevCenterIdentityPtrOutput) Type ¶
func (o DevCenterIdentityPtrOutput) Type() pulumi.StringPtrOutput
type DevCenterInput ¶
type DevCenterInput interface { pulumi.Input ToDevCenterOutput() DevCenterOutput ToDevCenterOutputWithContext(ctx context.Context) DevCenterOutput }
type DevCenterMap ¶
type DevCenterMap map[string]DevCenterInput
func (DevCenterMap) ElementType ¶
func (DevCenterMap) ElementType() reflect.Type
func (DevCenterMap) ToDevCenterMapOutput ¶
func (i DevCenterMap) ToDevCenterMapOutput() DevCenterMapOutput
func (DevCenterMap) ToDevCenterMapOutputWithContext ¶
func (i DevCenterMap) ToDevCenterMapOutputWithContext(ctx context.Context) DevCenterMapOutput
type DevCenterMapInput ¶
type DevCenterMapInput interface { pulumi.Input ToDevCenterMapOutput() DevCenterMapOutput ToDevCenterMapOutputWithContext(context.Context) DevCenterMapOutput }
DevCenterMapInput is an input type that accepts DevCenterMap and DevCenterMapOutput values. You can construct a concrete instance of `DevCenterMapInput` via:
DevCenterMap{ "key": DevCenterArgs{...} }
type DevCenterMapOutput ¶
type DevCenterMapOutput struct{ *pulumi.OutputState }
func (DevCenterMapOutput) ElementType ¶
func (DevCenterMapOutput) ElementType() reflect.Type
func (DevCenterMapOutput) MapIndex ¶
func (o DevCenterMapOutput) MapIndex(k pulumi.StringInput) DevCenterOutput
func (DevCenterMapOutput) ToDevCenterMapOutput ¶
func (o DevCenterMapOutput) ToDevCenterMapOutput() DevCenterMapOutput
func (DevCenterMapOutput) ToDevCenterMapOutputWithContext ¶
func (o DevCenterMapOutput) ToDevCenterMapOutputWithContext(ctx context.Context) DevCenterMapOutput
type DevCenterOutput ¶
type DevCenterOutput struct{ *pulumi.OutputState }
func (DevCenterOutput) DevCenterUri ¶
func (o DevCenterOutput) DevCenterUri() pulumi.StringOutput
The URI of the Dev Center.
func (DevCenterOutput) ElementType ¶
func (DevCenterOutput) ElementType() reflect.Type
func (DevCenterOutput) Identity ¶
func (o DevCenterOutput) Identity() DevCenterIdentityPtrOutput
An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
func (DevCenterOutput) Location ¶
func (o DevCenterOutput) Location() pulumi.StringOutput
The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
func (DevCenterOutput) Name ¶
func (o DevCenterOutput) Name() pulumi.StringOutput
Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
func (DevCenterOutput) ResourceGroupName ¶
func (o DevCenterOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
func (DevCenterOutput) Tags ¶
func (o DevCenterOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Dev Center.
func (DevCenterOutput) ToDevCenterOutput ¶
func (o DevCenterOutput) ToDevCenterOutput() DevCenterOutput
func (DevCenterOutput) ToDevCenterOutputWithContext ¶
func (o DevCenterOutput) ToDevCenterOutputWithContext(ctx context.Context) DevCenterOutput
type DevCenterState ¶
type DevCenterState struct { // The URI of the Dev Center. DevCenterUri pulumi.StringPtrInput // An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center. Identity DevCenterIdentityPtrInput // The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created. Location pulumi.StringPtrInput // Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Dev Center. Tags pulumi.StringMapInput }
func (DevCenterState) ElementType ¶
func (DevCenterState) ElementType() reflect.Type
type Gallery ¶ added in v5.66.1
type Gallery struct { pulumi.CustomResourceState // Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created. DevCenterId pulumi.StringOutput `pulumi:"devCenterId"` // Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. Name pulumi.StringOutput `pulumi:"name"` SharedGalleryId pulumi.StringOutput `pulumi:"sharedGalleryId"` }
Manages a Dev Center Gallery.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/devcenter" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } testUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "test", &authorization.UserAssignedIdentityArgs{ Name: pulumi.String("example-uai"), Location: pulumi.Any(testAzurermResourceGroup.Location), ResourceGroupName: pulumi.Any(testAzurermResourceGroup.Name), }) if err != nil { return err } _, err = devcenter.NewDevCenter(ctx, "test", &devcenter.DevCenterArgs{ Name: pulumi.String("example-devcenter"), ResourceGroupName: pulumi.Any(testAzurermResourceGroup.Name), Location: pulumi.Any(testAzurermResourceGroup.Location), Identity: &devcenter.DevCenterIdentityArgs{ Type: pulumi.String("UserAssigned"), IdentityIds: pulumi.StringArray{ testUserAssignedIdentity.ID(), }, }, }) if err != nil { return err } exampleSharedImageGallery, err := compute.NewSharedImageGallery(ctx, "example", &compute.SharedImageGalleryArgs{ Name: pulumi.String("example-image-gallery"), Location: example.Location, ResourceGroupName: example.Name, }) if err != nil { return err } _, err = devcenter.NewGallery(ctx, "example", &devcenter.GalleryArgs{ DevCenterId: pulumi.Any(exampleAzurermDevCenter.Id), SharedGalleryId: exampleSharedImageGallery.ID(), Name: pulumi.String("example"), }) if err != nil { return err } return nil }) }
```
## Import
An existing Dev Center Gallery can be imported into Terraform using the `resource id`, e.g.
```sh $ pulumi import azure:devcenter/gallery:Gallery example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devCenters/{devCenterName}/galleries/{galleryName} ```
Where `{subscriptionId}` is the ID of the Azure Subscription where the Dev Center Gallery exists. For example `12345678-1234-9876-4563-123456789012`.
Where `{resourceGroupName}` is the name of Resource Group where this Dev Center Gallery exists. For example `example-resource-group`.
Where `{devCenterName}` is the name of the Dev Center. For example `devCenterValue`.
Where `{galleryName}` is the name of the Gallery. For example `galleryValue`.
func GetGallery ¶ added in v5.66.1
func GetGallery(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GalleryState, opts ...pulumi.ResourceOption) (*Gallery, error)
GetGallery gets an existing Gallery 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 NewGallery ¶ added in v5.66.1
func NewGallery(ctx *pulumi.Context, name string, args *GalleryArgs, opts ...pulumi.ResourceOption) (*Gallery, error)
NewGallery registers a new resource with the given unique name, arguments, and options.
func (*Gallery) ElementType ¶ added in v5.66.1
func (*Gallery) ToGalleryOutput ¶ added in v5.66.1
func (i *Gallery) ToGalleryOutput() GalleryOutput
func (*Gallery) ToGalleryOutputWithContext ¶ added in v5.66.1
func (i *Gallery) ToGalleryOutputWithContext(ctx context.Context) GalleryOutput
type GalleryArgs ¶ added in v5.66.1
type GalleryArgs struct { // Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created. DevCenterId pulumi.StringInput // Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. Name pulumi.StringPtrInput SharedGalleryId pulumi.StringInput }
The set of arguments for constructing a Gallery resource.
func (GalleryArgs) ElementType ¶ added in v5.66.1
func (GalleryArgs) ElementType() reflect.Type
type GalleryArray ¶ added in v5.66.1
type GalleryArray []GalleryInput
func (GalleryArray) ElementType ¶ added in v5.66.1
func (GalleryArray) ElementType() reflect.Type
func (GalleryArray) ToGalleryArrayOutput ¶ added in v5.66.1
func (i GalleryArray) ToGalleryArrayOutput() GalleryArrayOutput
func (GalleryArray) ToGalleryArrayOutputWithContext ¶ added in v5.66.1
func (i GalleryArray) ToGalleryArrayOutputWithContext(ctx context.Context) GalleryArrayOutput
type GalleryArrayInput ¶ added in v5.66.1
type GalleryArrayInput interface { pulumi.Input ToGalleryArrayOutput() GalleryArrayOutput ToGalleryArrayOutputWithContext(context.Context) GalleryArrayOutput }
GalleryArrayInput is an input type that accepts GalleryArray and GalleryArrayOutput values. You can construct a concrete instance of `GalleryArrayInput` via:
GalleryArray{ GalleryArgs{...} }
type GalleryArrayOutput ¶ added in v5.66.1
type GalleryArrayOutput struct{ *pulumi.OutputState }
func (GalleryArrayOutput) ElementType ¶ added in v5.66.1
func (GalleryArrayOutput) ElementType() reflect.Type
func (GalleryArrayOutput) Index ¶ added in v5.66.1
func (o GalleryArrayOutput) Index(i pulumi.IntInput) GalleryOutput
func (GalleryArrayOutput) ToGalleryArrayOutput ¶ added in v5.66.1
func (o GalleryArrayOutput) ToGalleryArrayOutput() GalleryArrayOutput
func (GalleryArrayOutput) ToGalleryArrayOutputWithContext ¶ added in v5.66.1
func (o GalleryArrayOutput) ToGalleryArrayOutputWithContext(ctx context.Context) GalleryArrayOutput
type GalleryInput ¶ added in v5.66.1
type GalleryInput interface { pulumi.Input ToGalleryOutput() GalleryOutput ToGalleryOutputWithContext(ctx context.Context) GalleryOutput }
type GalleryMap ¶ added in v5.66.1
type GalleryMap map[string]GalleryInput
func (GalleryMap) ElementType ¶ added in v5.66.1
func (GalleryMap) ElementType() reflect.Type
func (GalleryMap) ToGalleryMapOutput ¶ added in v5.66.1
func (i GalleryMap) ToGalleryMapOutput() GalleryMapOutput
func (GalleryMap) ToGalleryMapOutputWithContext ¶ added in v5.66.1
func (i GalleryMap) ToGalleryMapOutputWithContext(ctx context.Context) GalleryMapOutput
type GalleryMapInput ¶ added in v5.66.1
type GalleryMapInput interface { pulumi.Input ToGalleryMapOutput() GalleryMapOutput ToGalleryMapOutputWithContext(context.Context) GalleryMapOutput }
GalleryMapInput is an input type that accepts GalleryMap and GalleryMapOutput values. You can construct a concrete instance of `GalleryMapInput` via:
GalleryMap{ "key": GalleryArgs{...} }
type GalleryMapOutput ¶ added in v5.66.1
type GalleryMapOutput struct{ *pulumi.OutputState }
func (GalleryMapOutput) ElementType ¶ added in v5.66.1
func (GalleryMapOutput) ElementType() reflect.Type
func (GalleryMapOutput) MapIndex ¶ added in v5.66.1
func (o GalleryMapOutput) MapIndex(k pulumi.StringInput) GalleryOutput
func (GalleryMapOutput) ToGalleryMapOutput ¶ added in v5.66.1
func (o GalleryMapOutput) ToGalleryMapOutput() GalleryMapOutput
func (GalleryMapOutput) ToGalleryMapOutputWithContext ¶ added in v5.66.1
func (o GalleryMapOutput) ToGalleryMapOutputWithContext(ctx context.Context) GalleryMapOutput
type GalleryOutput ¶ added in v5.66.1
type GalleryOutput struct{ *pulumi.OutputState }
func (GalleryOutput) DevCenterId ¶ added in v5.66.1
func (o GalleryOutput) DevCenterId() pulumi.StringOutput
Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created.
func (GalleryOutput) ElementType ¶ added in v5.66.1
func (GalleryOutput) ElementType() reflect.Type
func (GalleryOutput) Name ¶ added in v5.66.1
func (o GalleryOutput) Name() pulumi.StringOutput
Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created.
func (GalleryOutput) SharedGalleryId ¶ added in v5.66.1
func (o GalleryOutput) SharedGalleryId() pulumi.StringOutput
The ID of the Shared Gallery which should be connected to the Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created.
func (GalleryOutput) ToGalleryOutput ¶ added in v5.66.1
func (o GalleryOutput) ToGalleryOutput() GalleryOutput
func (GalleryOutput) ToGalleryOutputWithContext ¶ added in v5.66.1
func (o GalleryOutput) ToGalleryOutputWithContext(ctx context.Context) GalleryOutput
type GalleryState ¶ added in v5.66.1
type GalleryState struct { // Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created. DevCenterId pulumi.StringPtrInput // Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. Name pulumi.StringPtrInput SharedGalleryId pulumi.StringPtrInput }
func (GalleryState) ElementType ¶ added in v5.66.1
func (GalleryState) ElementType() reflect.Type
type Project ¶
type Project struct { pulumi.CustomResourceState // Description of the project. Changing this forces a new Dev Center Project to be created. Description pulumi.StringPtrOutput `pulumi:"description"` // Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created. DevCenterId pulumi.StringOutput `pulumi:"devCenterId"` // The URI of the Dev Center resource this project is associated with. DevCenterUri pulumi.StringOutput `pulumi:"devCenterUri"` // The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created. Location pulumi.StringOutput `pulumi:"location"` // When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. MaximumDevBoxesPerUser pulumi.IntPtrOutput `pulumi:"maximumDevBoxesPerUser"` // Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Dev Center Project. Tags pulumi.StringMapOutput `pulumi:"tags"` }
<!-- Note: This documentation is generated. Any manual changes will be overwritten -->
Manages a Dev Center Project.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/devcenter" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } example, err := devcenter.NewDevCenter(ctx, "example", &devcenter.DevCenterArgs{ Name: pulumi.String("example"), ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Identity: &devcenter.DevCenterIdentityArgs{ Type: pulumi.String("example-value"), }, }) if err != nil { return err } _, err = devcenter.NewProject(ctx, "example", &devcenter.ProjectArgs{ DevCenterId: example.ID(), Location: exampleResourceGroup.Location, Name: pulumi.String("example"), ResourceGroupName: exampleResourceGroup.Name, }) if err != nil { return err } return nil }) }
```
## Import
An existing Dev Center Project can be imported into Terraform using the `resource id`, e.g.
```sh $ pulumi import azure:devcenter/project:Project example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName} ```
Where `{subscriptionId}` is the ID of the Azure Subscription where the Dev Center Project exists. For example `12345678-1234-9876-4563-123456789012`.
Where `{resourceGroupName}` is the name of Resource Group where this Dev Center Project exists. For example `example-resource-group`.
Where `{projectName}` is the name of the Project. For example `projectValue`.
func GetProject ¶
func GetProject(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProjectState, opts ...pulumi.ResourceOption) (*Project, error)
GetProject gets an existing Project 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 NewProject ¶
func NewProject(ctx *pulumi.Context, name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)
NewProject registers a new resource with the given unique name, arguments, and options.
func (*Project) ElementType ¶
func (*Project) ToProjectOutput ¶
func (i *Project) ToProjectOutput() ProjectOutput
func (*Project) ToProjectOutputWithContext ¶
func (i *Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
type ProjectArgs ¶
type ProjectArgs struct { // Description of the project. Changing this forces a new Dev Center Project to be created. Description pulumi.StringPtrInput // Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created. DevCenterId pulumi.StringInput // The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created. Location pulumi.StringPtrInput // When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. MaximumDevBoxesPerUser pulumi.IntPtrInput // Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Dev Center Project. Tags pulumi.StringMapInput }
The set of arguments for constructing a Project resource.
func (ProjectArgs) ElementType ¶
func (ProjectArgs) ElementType() reflect.Type
type ProjectArray ¶
type ProjectArray []ProjectInput
func (ProjectArray) ElementType ¶
func (ProjectArray) ElementType() reflect.Type
func (ProjectArray) ToProjectArrayOutput ¶
func (i ProjectArray) ToProjectArrayOutput() ProjectArrayOutput
func (ProjectArray) ToProjectArrayOutputWithContext ¶
func (i ProjectArray) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput
type ProjectArrayInput ¶
type ProjectArrayInput interface { pulumi.Input ToProjectArrayOutput() ProjectArrayOutput ToProjectArrayOutputWithContext(context.Context) ProjectArrayOutput }
ProjectArrayInput is an input type that accepts ProjectArray and ProjectArrayOutput values. You can construct a concrete instance of `ProjectArrayInput` via:
ProjectArray{ ProjectArgs{...} }
type ProjectArrayOutput ¶
type ProjectArrayOutput struct{ *pulumi.OutputState }
func (ProjectArrayOutput) ElementType ¶
func (ProjectArrayOutput) ElementType() reflect.Type
func (ProjectArrayOutput) Index ¶
func (o ProjectArrayOutput) Index(i pulumi.IntInput) ProjectOutput
func (ProjectArrayOutput) ToProjectArrayOutput ¶
func (o ProjectArrayOutput) ToProjectArrayOutput() ProjectArrayOutput
func (ProjectArrayOutput) ToProjectArrayOutputWithContext ¶
func (o ProjectArrayOutput) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput
type ProjectInput ¶
type ProjectInput interface { pulumi.Input ToProjectOutput() ProjectOutput ToProjectOutputWithContext(ctx context.Context) ProjectOutput }
type ProjectMap ¶
type ProjectMap map[string]ProjectInput
func (ProjectMap) ElementType ¶
func (ProjectMap) ElementType() reflect.Type
func (ProjectMap) ToProjectMapOutput ¶
func (i ProjectMap) ToProjectMapOutput() ProjectMapOutput
func (ProjectMap) ToProjectMapOutputWithContext ¶
func (i ProjectMap) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput
type ProjectMapInput ¶
type ProjectMapInput interface { pulumi.Input ToProjectMapOutput() ProjectMapOutput ToProjectMapOutputWithContext(context.Context) ProjectMapOutput }
ProjectMapInput is an input type that accepts ProjectMap and ProjectMapOutput values. You can construct a concrete instance of `ProjectMapInput` via:
ProjectMap{ "key": ProjectArgs{...} }
type ProjectMapOutput ¶
type ProjectMapOutput struct{ *pulumi.OutputState }
func (ProjectMapOutput) ElementType ¶
func (ProjectMapOutput) ElementType() reflect.Type
func (ProjectMapOutput) MapIndex ¶
func (o ProjectMapOutput) MapIndex(k pulumi.StringInput) ProjectOutput
func (ProjectMapOutput) ToProjectMapOutput ¶
func (o ProjectMapOutput) ToProjectMapOutput() ProjectMapOutput
func (ProjectMapOutput) ToProjectMapOutputWithContext ¶
func (o ProjectMapOutput) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput
type ProjectOutput ¶
type ProjectOutput struct{ *pulumi.OutputState }
func (ProjectOutput) Description ¶
func (o ProjectOutput) Description() pulumi.StringPtrOutput
Description of the project. Changing this forces a new Dev Center Project to be created.
func (ProjectOutput) DevCenterId ¶
func (o ProjectOutput) DevCenterId() pulumi.StringOutput
Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
func (ProjectOutput) DevCenterUri ¶
func (o ProjectOutput) DevCenterUri() pulumi.StringOutput
The URI of the Dev Center resource this project is associated with.
func (ProjectOutput) ElementType ¶
func (ProjectOutput) ElementType() reflect.Type
func (ProjectOutput) Location ¶
func (o ProjectOutput) Location() pulumi.StringOutput
The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
func (ProjectOutput) MaximumDevBoxesPerUser ¶
func (o ProjectOutput) MaximumDevBoxesPerUser() pulumi.IntPtrOutput
When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
func (ProjectOutput) Name ¶
func (o ProjectOutput) Name() pulumi.StringOutput
Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
func (ProjectOutput) ResourceGroupName ¶
func (o ProjectOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
func (ProjectOutput) Tags ¶
func (o ProjectOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Dev Center Project.
func (ProjectOutput) ToProjectOutput ¶
func (o ProjectOutput) ToProjectOutput() ProjectOutput
func (ProjectOutput) ToProjectOutputWithContext ¶
func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
type ProjectState ¶
type ProjectState struct { // Description of the project. Changing this forces a new Dev Center Project to be created. Description pulumi.StringPtrInput // Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created. DevCenterId pulumi.StringPtrInput // The URI of the Dev Center resource this project is associated with. DevCenterUri pulumi.StringPtrInput // The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created. Location pulumi.StringPtrInput // When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. MaximumDevBoxesPerUser pulumi.IntPtrInput // Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Dev Center Project. Tags pulumi.StringMapInput }
func (ProjectState) ElementType ¶
func (ProjectState) ElementType() reflect.Type