Documentation ¶
Index ¶
- type Assignment
- func (*Assignment) ElementType() reflect.Type
- func (i *Assignment) ToAssignmentOutput() AssignmentOutput
- func (i *Assignment) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput
- func (i *Assignment) ToAssignmentPtrOutput() AssignmentPtrOutput
- func (i *Assignment) ToAssignmentPtrOutputWithContext(ctx context.Context) AssignmentPtrOutput
- type AssignmentArgs
- type AssignmentArray
- type AssignmentArrayInput
- type AssignmentArrayOutput
- func (AssignmentArrayOutput) ElementType() reflect.Type
- func (o AssignmentArrayOutput) Index(i pulumi.IntInput) AssignmentOutput
- func (o AssignmentArrayOutput) ToAssignmentArrayOutput() AssignmentArrayOutput
- func (o AssignmentArrayOutput) ToAssignmentArrayOutputWithContext(ctx context.Context) AssignmentArrayOutput
- type AssignmentIdentity
- type AssignmentIdentityArgs
- func (AssignmentIdentityArgs) ElementType() reflect.Type
- func (i AssignmentIdentityArgs) ToAssignmentIdentityOutput() AssignmentIdentityOutput
- func (i AssignmentIdentityArgs) ToAssignmentIdentityOutputWithContext(ctx context.Context) AssignmentIdentityOutput
- func (i AssignmentIdentityArgs) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
- func (i AssignmentIdentityArgs) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput
- type AssignmentIdentityInput
- type AssignmentIdentityOutput
- func (AssignmentIdentityOutput) ElementType() reflect.Type
- func (o AssignmentIdentityOutput) IdentityIds() pulumi.StringArrayOutput
- func (o AssignmentIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o AssignmentIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o AssignmentIdentityOutput) ToAssignmentIdentityOutput() AssignmentIdentityOutput
- func (o AssignmentIdentityOutput) ToAssignmentIdentityOutputWithContext(ctx context.Context) AssignmentIdentityOutput
- func (o AssignmentIdentityOutput) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
- func (o AssignmentIdentityOutput) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput
- func (o AssignmentIdentityOutput) Type() pulumi.StringOutput
- type AssignmentIdentityPtrInput
- type AssignmentIdentityPtrOutput
- func (o AssignmentIdentityPtrOutput) Elem() AssignmentIdentityOutput
- func (AssignmentIdentityPtrOutput) ElementType() reflect.Type
- func (o AssignmentIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
- func (o AssignmentIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o AssignmentIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
- func (o AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput
- func (o AssignmentIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type AssignmentInput
- type AssignmentMap
- type AssignmentMapInput
- type AssignmentMapOutput
- func (AssignmentMapOutput) ElementType() reflect.Type
- func (o AssignmentMapOutput) MapIndex(k pulumi.StringInput) AssignmentOutput
- func (o AssignmentMapOutput) ToAssignmentMapOutput() AssignmentMapOutput
- func (o AssignmentMapOutput) ToAssignmentMapOutputWithContext(ctx context.Context) AssignmentMapOutput
- type AssignmentOutput
- func (AssignmentOutput) ElementType() reflect.Type
- func (o AssignmentOutput) ToAssignmentOutput() AssignmentOutput
- func (o AssignmentOutput) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput
- func (o AssignmentOutput) ToAssignmentPtrOutput() AssignmentPtrOutput
- func (o AssignmentOutput) ToAssignmentPtrOutputWithContext(ctx context.Context) AssignmentPtrOutput
- type AssignmentPtrInput
- type AssignmentPtrOutput
- type AssignmentState
- type GetDefinitionArgs
- type GetDefinitionOutputArgs
- type GetDefinitionResult
- type GetDefinitionResultOutput
- func (o GetDefinitionResultOutput) Description() pulumi.StringOutput
- func (o GetDefinitionResultOutput) DisplayName() pulumi.StringOutput
- func (GetDefinitionResultOutput) ElementType() reflect.Type
- func (o GetDefinitionResultOutput) Id() pulumi.StringOutput
- func (o GetDefinitionResultOutput) LastModified() pulumi.StringOutput
- func (o GetDefinitionResultOutput) Name() pulumi.StringOutput
- func (o GetDefinitionResultOutput) ScopeId() pulumi.StringOutput
- func (o GetDefinitionResultOutput) TargetScope() pulumi.StringOutput
- func (o GetDefinitionResultOutput) TimeCreated() pulumi.StringOutput
- func (o GetDefinitionResultOutput) ToGetDefinitionResultOutput() GetDefinitionResultOutput
- func (o GetDefinitionResultOutput) ToGetDefinitionResultOutputWithContext(ctx context.Context) GetDefinitionResultOutput
- func (o GetDefinitionResultOutput) Versions() pulumi.StringArrayOutput
- type GetPublishedVersionArgs
- type GetPublishedVersionOutputArgs
- type GetPublishedVersionResult
- type GetPublishedVersionResultOutput
- func (o GetPublishedVersionResultOutput) BlueprintName() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) Description() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) DisplayName() pulumi.StringOutput
- func (GetPublishedVersionResultOutput) ElementType() reflect.Type
- func (o GetPublishedVersionResultOutput) Id() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) LastModified() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) ScopeId() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) TargetScope() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) TimeCreated() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutput() GetPublishedVersionResultOutput
- func (o GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutputWithContext(ctx context.Context) GetPublishedVersionResultOutput
- func (o GetPublishedVersionResultOutput) Type() pulumi.StringOutput
- func (o GetPublishedVersionResultOutput) Version() pulumi.StringOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct { pulumi.CustomResourceState // The name of the blueprint assigned BlueprintName pulumi.StringOutput `pulumi:"blueprintName"` // The Description on the Blueprint Description pulumi.StringOutput `pulumi:"description"` // The display name of the blueprint DisplayName pulumi.StringOutput `pulumi:"displayName"` // An `identity` block as defined below. Identity AssignmentIdentityPtrOutput `pulumi:"identity"` // The Azure location of the Assignment. Location pulumi.StringOutput `pulumi:"location"` // a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint. LockExcludePrincipals pulumi.StringArrayOutput `pulumi:"lockExcludePrincipals"` // The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AlResourcesDoNotDelete`. LockMode pulumi.StringPtrOutput `pulumi:"lockMode"` // The name of the Blueprint Assignment Name pulumi.StringOutput `pulumi:"name"` // a JSON string to supply Blueprint Assignment parameter values. ParameterValues pulumi.StringPtrOutput `pulumi:"parameterValues"` // a JSON string to supply the Blueprint Resource Group information. ResourceGroups pulumi.StringPtrOutput `pulumi:"resourceGroups"` // The Subscription ID the Blueprint Published Version is to be applied to. TargetSubscriptionId pulumi.StringOutput `pulumi:"targetSubscriptionId"` // The Identity type for the Managed Service Identity. Currently only `UserAssigned` is supported. Type pulumi.StringOutput `pulumi:"type"` // The ID of the Published Version of the blueprint to be assigned. VersionId pulumi.StringOutput `pulumi:"versionId"` }
Manages a Blueprint Assignment resource
> **NOTE:** Azure Blueprints are in Preview and potentially subject to breaking change without notice.
> **NOTE:** Azure Blueprint Assignments can only be applied to Subscriptions. Assignments to Management Groups is not currently supported by the service or by this provider.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/blueprint" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := core.GetClientConfig(ctx, nil, nil) if err != nil { return err } exampleSubscription, err := core.LookupSubscription(ctx, nil, nil) if err != nil { return err } exampleDefinition, err := blueprint.GetDefinition(ctx, &blueprint.GetDefinitionArgs{ Name: "exampleBlueprint", ScopeId: exampleSubscription.Id, }, nil) if err != nil { return err } examplePublishedVersion, err := blueprint.GetPublishedVersion(ctx, &blueprint.GetPublishedVersionArgs{ ScopeId: exampleDefinition.ScopeId, BlueprintName: exampleDefinition.Name, Version: "v1.0.0", }, nil) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), Tags: pulumi.StringMap{ "Environment": pulumi.String("example"), }, }) if err != nil { return err } exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "exampleUserAssignedIdentity", &authorization.UserAssignedIdentityArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, }) if err != nil { return err } operator, err := authorization.NewAssignment(ctx, "operator", &authorization.AssignmentArgs{ Scope: pulumi.String(exampleSubscription.Id), RoleDefinitionName: pulumi.String("Blueprint Operator"), PrincipalId: exampleUserAssignedIdentity.PrincipalId, }) if err != nil { return err } owner, err := authorization.NewAssignment(ctx, "owner", &authorization.AssignmentArgs{ Scope: pulumi.String(exampleSubscription.Id), RoleDefinitionName: pulumi.String("Owner"), PrincipalId: exampleUserAssignedIdentity.PrincipalId, }) if err != nil { return err } _, err = blueprint.NewAssignment(ctx, "exampleAssignment", &blueprint.AssignmentArgs{ TargetSubscriptionId: pulumi.String(exampleSubscription.Id), VersionId: pulumi.String(examplePublishedVersion.Id), Location: exampleResourceGroup.Location, LockMode: pulumi.String("AllResourcesDoNotDelete"), LockExcludePrincipals: pulumi.StringArray{ pulumi.String(current.ObjectId), }, Identity: &blueprint.AssignmentIdentityArgs{ Type: pulumi.String("UserAssigned"), IdentityIds: pulumi.StringArray{ exampleUserAssignedIdentity.ID(), }, }, ResourceGroups: pulumi.String(fmt.Sprintf("%v%v%v%v%v", " {\n", " \"ResourceGroup\": {\n", " \"name\": \"exampleRG-bp\"\n", " }\n", " }\n")), ParameterValues: pulumi.String(fmt.Sprintf("%v%v%v%v%v", " {\n", " \"allowedlocationsforresourcegroups_listOfAllowedLocations\": {\n", " \"value\": [\"westus\", \"westus2\", \"eastus\", \"centralus\", \"centraluseuap\", \"southcentralus\", \"northcentralus\", \"westcentralus\", \"eastus2\", \"eastus2euap\", \"brazilsouth\", \"brazilus\", \"northeurope\", \"westeurope\", \"eastasia\", \"southeastasia\", \"japanwest\", \"japaneast\", \"koreacentral\", \"koreasouth\", \"indiasouth\", \"indiawest\", \"indiacentral\", \"australiaeast\", \"australiasoutheast\", \"canadacentral\", \"canadaeast\", \"uknorth\", \"uksouth2\", \"uksouth\", \"ukwest\", \"francecentral\", \"francesouth\", \"australiacentral\", \"australiacentral2\", \"uaecentral\", \"uaenorth\", \"southafricanorth\", \"southafricawest\", \"switzerlandnorth\", \"switzerlandwest\", \"germanynorth\", \"germanywestcentral\", \"norwayeast\", \"norwaywest\"]\n", " }\n", " }\n")), }, pulumi.DependsOn([]pulumi.Resource{ operator, owner, })) if err != nil { return err } return nil }) }
```
## Import
Azure Blueprint Assignments can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:blueprint/assignment:Assignment example "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint"
```
func GetAssignment ¶
func GetAssignment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AssignmentState, opts ...pulumi.ResourceOption) (*Assignment, error)
GetAssignment gets an existing Assignment 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 NewAssignment ¶
func NewAssignment(ctx *pulumi.Context, name string, args *AssignmentArgs, opts ...pulumi.ResourceOption) (*Assignment, error)
NewAssignment registers a new resource with the given unique name, arguments, and options.
func (*Assignment) ElementType ¶
func (*Assignment) ElementType() reflect.Type
func (*Assignment) ToAssignmentOutput ¶
func (i *Assignment) ToAssignmentOutput() AssignmentOutput
func (*Assignment) ToAssignmentOutputWithContext ¶
func (i *Assignment) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput
func (*Assignment) ToAssignmentPtrOutput ¶
func (i *Assignment) ToAssignmentPtrOutput() AssignmentPtrOutput
func (*Assignment) ToAssignmentPtrOutputWithContext ¶
func (i *Assignment) ToAssignmentPtrOutputWithContext(ctx context.Context) AssignmentPtrOutput
type AssignmentArgs ¶
type AssignmentArgs struct { // An `identity` block as defined below. Identity AssignmentIdentityPtrInput // The Azure location of the Assignment. Location pulumi.StringPtrInput // a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint. LockExcludePrincipals pulumi.StringArrayInput // The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AlResourcesDoNotDelete`. LockMode pulumi.StringPtrInput // The name of the Blueprint Assignment Name pulumi.StringPtrInput // a JSON string to supply Blueprint Assignment parameter values. ParameterValues pulumi.StringPtrInput // a JSON string to supply the Blueprint Resource Group information. ResourceGroups pulumi.StringPtrInput // The Subscription ID the Blueprint Published Version is to be applied to. TargetSubscriptionId pulumi.StringInput // The ID of the Published Version of the blueprint to be assigned. VersionId pulumi.StringInput }
The set of arguments for constructing a Assignment resource.
func (AssignmentArgs) ElementType ¶
func (AssignmentArgs) ElementType() reflect.Type
type AssignmentArray ¶
type AssignmentArray []AssignmentInput
func (AssignmentArray) ElementType ¶
func (AssignmentArray) ElementType() reflect.Type
func (AssignmentArray) ToAssignmentArrayOutput ¶
func (i AssignmentArray) ToAssignmentArrayOutput() AssignmentArrayOutput
func (AssignmentArray) ToAssignmentArrayOutputWithContext ¶
func (i AssignmentArray) ToAssignmentArrayOutputWithContext(ctx context.Context) AssignmentArrayOutput
type AssignmentArrayInput ¶
type AssignmentArrayInput interface { pulumi.Input ToAssignmentArrayOutput() AssignmentArrayOutput ToAssignmentArrayOutputWithContext(context.Context) AssignmentArrayOutput }
AssignmentArrayInput is an input type that accepts AssignmentArray and AssignmentArrayOutput values. You can construct a concrete instance of `AssignmentArrayInput` via:
AssignmentArray{ AssignmentArgs{...} }
type AssignmentArrayOutput ¶
type AssignmentArrayOutput struct{ *pulumi.OutputState }
func (AssignmentArrayOutput) ElementType ¶
func (AssignmentArrayOutput) ElementType() reflect.Type
func (AssignmentArrayOutput) Index ¶
func (o AssignmentArrayOutput) Index(i pulumi.IntInput) AssignmentOutput
func (AssignmentArrayOutput) ToAssignmentArrayOutput ¶
func (o AssignmentArrayOutput) ToAssignmentArrayOutput() AssignmentArrayOutput
func (AssignmentArrayOutput) ToAssignmentArrayOutputWithContext ¶
func (o AssignmentArrayOutput) ToAssignmentArrayOutputWithContext(ctx context.Context) AssignmentArrayOutput
type AssignmentIdentity ¶
type AssignmentIdentityArgs ¶
type AssignmentIdentityArgs struct { IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The Identity type for the Managed Service Identity. Currently only `UserAssigned` is supported. Type pulumi.StringInput `pulumi:"type"` }
func (AssignmentIdentityArgs) ElementType ¶
func (AssignmentIdentityArgs) ElementType() reflect.Type
func (AssignmentIdentityArgs) ToAssignmentIdentityOutput ¶
func (i AssignmentIdentityArgs) ToAssignmentIdentityOutput() AssignmentIdentityOutput
func (AssignmentIdentityArgs) ToAssignmentIdentityOutputWithContext ¶
func (i AssignmentIdentityArgs) ToAssignmentIdentityOutputWithContext(ctx context.Context) AssignmentIdentityOutput
func (AssignmentIdentityArgs) ToAssignmentIdentityPtrOutput ¶
func (i AssignmentIdentityArgs) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
func (AssignmentIdentityArgs) ToAssignmentIdentityPtrOutputWithContext ¶
func (i AssignmentIdentityArgs) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput
type AssignmentIdentityInput ¶
type AssignmentIdentityInput interface { pulumi.Input ToAssignmentIdentityOutput() AssignmentIdentityOutput ToAssignmentIdentityOutputWithContext(context.Context) AssignmentIdentityOutput }
AssignmentIdentityInput is an input type that accepts AssignmentIdentityArgs and AssignmentIdentityOutput values. You can construct a concrete instance of `AssignmentIdentityInput` via:
AssignmentIdentityArgs{...}
type AssignmentIdentityOutput ¶
type AssignmentIdentityOutput struct{ *pulumi.OutputState }
func (AssignmentIdentityOutput) ElementType ¶
func (AssignmentIdentityOutput) ElementType() reflect.Type
func (AssignmentIdentityOutput) IdentityIds ¶
func (o AssignmentIdentityOutput) IdentityIds() pulumi.StringArrayOutput
func (AssignmentIdentityOutput) PrincipalId ¶
func (o AssignmentIdentityOutput) PrincipalId() pulumi.StringPtrOutput
func (AssignmentIdentityOutput) TenantId ¶
func (o AssignmentIdentityOutput) TenantId() pulumi.StringPtrOutput
func (AssignmentIdentityOutput) ToAssignmentIdentityOutput ¶
func (o AssignmentIdentityOutput) ToAssignmentIdentityOutput() AssignmentIdentityOutput
func (AssignmentIdentityOutput) ToAssignmentIdentityOutputWithContext ¶
func (o AssignmentIdentityOutput) ToAssignmentIdentityOutputWithContext(ctx context.Context) AssignmentIdentityOutput
func (AssignmentIdentityOutput) ToAssignmentIdentityPtrOutput ¶
func (o AssignmentIdentityOutput) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
func (AssignmentIdentityOutput) ToAssignmentIdentityPtrOutputWithContext ¶
func (o AssignmentIdentityOutput) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput
func (AssignmentIdentityOutput) Type ¶
func (o AssignmentIdentityOutput) Type() pulumi.StringOutput
The Identity type for the Managed Service Identity. Currently only `UserAssigned` is supported.
type AssignmentIdentityPtrInput ¶
type AssignmentIdentityPtrInput interface { pulumi.Input ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput ToAssignmentIdentityPtrOutputWithContext(context.Context) AssignmentIdentityPtrOutput }
AssignmentIdentityPtrInput is an input type that accepts AssignmentIdentityArgs, AssignmentIdentityPtr and AssignmentIdentityPtrOutput values. You can construct a concrete instance of `AssignmentIdentityPtrInput` via:
AssignmentIdentityArgs{...} or: nil
func AssignmentIdentityPtr ¶
func AssignmentIdentityPtr(v *AssignmentIdentityArgs) AssignmentIdentityPtrInput
type AssignmentIdentityPtrOutput ¶
type AssignmentIdentityPtrOutput struct{ *pulumi.OutputState }
func (AssignmentIdentityPtrOutput) Elem ¶
func (o AssignmentIdentityPtrOutput) Elem() AssignmentIdentityOutput
func (AssignmentIdentityPtrOutput) ElementType ¶
func (AssignmentIdentityPtrOutput) ElementType() reflect.Type
func (AssignmentIdentityPtrOutput) IdentityIds ¶
func (o AssignmentIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
func (AssignmentIdentityPtrOutput) PrincipalId ¶
func (o AssignmentIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
func (AssignmentIdentityPtrOutput) TenantId ¶
func (o AssignmentIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
func (AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutput ¶
func (o AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
func (AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutputWithContext ¶
func (o AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput
func (AssignmentIdentityPtrOutput) Type ¶
func (o AssignmentIdentityPtrOutput) Type() pulumi.StringPtrOutput
The Identity type for the Managed Service Identity. Currently only `UserAssigned` is supported.
type AssignmentInput ¶
type AssignmentInput interface { pulumi.Input ToAssignmentOutput() AssignmentOutput ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput }
type AssignmentMap ¶
type AssignmentMap map[string]AssignmentInput
func (AssignmentMap) ElementType ¶
func (AssignmentMap) ElementType() reflect.Type
func (AssignmentMap) ToAssignmentMapOutput ¶
func (i AssignmentMap) ToAssignmentMapOutput() AssignmentMapOutput
func (AssignmentMap) ToAssignmentMapOutputWithContext ¶
func (i AssignmentMap) ToAssignmentMapOutputWithContext(ctx context.Context) AssignmentMapOutput
type AssignmentMapInput ¶
type AssignmentMapInput interface { pulumi.Input ToAssignmentMapOutput() AssignmentMapOutput ToAssignmentMapOutputWithContext(context.Context) AssignmentMapOutput }
AssignmentMapInput is an input type that accepts AssignmentMap and AssignmentMapOutput values. You can construct a concrete instance of `AssignmentMapInput` via:
AssignmentMap{ "key": AssignmentArgs{...} }
type AssignmentMapOutput ¶
type AssignmentMapOutput struct{ *pulumi.OutputState }
func (AssignmentMapOutput) ElementType ¶
func (AssignmentMapOutput) ElementType() reflect.Type
func (AssignmentMapOutput) MapIndex ¶
func (o AssignmentMapOutput) MapIndex(k pulumi.StringInput) AssignmentOutput
func (AssignmentMapOutput) ToAssignmentMapOutput ¶
func (o AssignmentMapOutput) ToAssignmentMapOutput() AssignmentMapOutput
func (AssignmentMapOutput) ToAssignmentMapOutputWithContext ¶
func (o AssignmentMapOutput) ToAssignmentMapOutputWithContext(ctx context.Context) AssignmentMapOutput
type AssignmentOutput ¶
type AssignmentOutput struct{ *pulumi.OutputState }
func (AssignmentOutput) ElementType ¶
func (AssignmentOutput) ElementType() reflect.Type
func (AssignmentOutput) ToAssignmentOutput ¶
func (o AssignmentOutput) ToAssignmentOutput() AssignmentOutput
func (AssignmentOutput) ToAssignmentOutputWithContext ¶
func (o AssignmentOutput) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput
func (AssignmentOutput) ToAssignmentPtrOutput ¶
func (o AssignmentOutput) ToAssignmentPtrOutput() AssignmentPtrOutput
func (AssignmentOutput) ToAssignmentPtrOutputWithContext ¶
func (o AssignmentOutput) ToAssignmentPtrOutputWithContext(ctx context.Context) AssignmentPtrOutput
type AssignmentPtrInput ¶
type AssignmentPtrInput interface { pulumi.Input ToAssignmentPtrOutput() AssignmentPtrOutput ToAssignmentPtrOutputWithContext(ctx context.Context) AssignmentPtrOutput }
type AssignmentPtrOutput ¶
type AssignmentPtrOutput struct{ *pulumi.OutputState }
func (AssignmentPtrOutput) Elem ¶ added in v4.20.0
func (o AssignmentPtrOutput) Elem() AssignmentOutput
func (AssignmentPtrOutput) ElementType ¶
func (AssignmentPtrOutput) ElementType() reflect.Type
func (AssignmentPtrOutput) ToAssignmentPtrOutput ¶
func (o AssignmentPtrOutput) ToAssignmentPtrOutput() AssignmentPtrOutput
func (AssignmentPtrOutput) ToAssignmentPtrOutputWithContext ¶
func (o AssignmentPtrOutput) ToAssignmentPtrOutputWithContext(ctx context.Context) AssignmentPtrOutput
type AssignmentState ¶
type AssignmentState struct { // The name of the blueprint assigned BlueprintName pulumi.StringPtrInput // The Description on the Blueprint Description pulumi.StringPtrInput // The display name of the blueprint DisplayName pulumi.StringPtrInput // An `identity` block as defined below. Identity AssignmentIdentityPtrInput // The Azure location of the Assignment. Location pulumi.StringPtrInput // a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint. LockExcludePrincipals pulumi.StringArrayInput // The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AlResourcesDoNotDelete`. LockMode pulumi.StringPtrInput // The name of the Blueprint Assignment Name pulumi.StringPtrInput // a JSON string to supply Blueprint Assignment parameter values. ParameterValues pulumi.StringPtrInput // a JSON string to supply the Blueprint Resource Group information. ResourceGroups pulumi.StringPtrInput // The Subscription ID the Blueprint Published Version is to be applied to. TargetSubscriptionId pulumi.StringPtrInput // The Identity type for the Managed Service Identity. Currently only `UserAssigned` is supported. Type pulumi.StringPtrInput // The ID of the Published Version of the blueprint to be assigned. VersionId pulumi.StringPtrInput }
func (AssignmentState) ElementType ¶
func (AssignmentState) ElementType() reflect.Type
type GetDefinitionArgs ¶
type GetDefinitionArgs struct { // The name of the Blueprint. Name string `pulumi:"name"` // The ID of the Subscription or Management Group, as the scope at which the blueprint definition is stored. ScopeId string `pulumi:"scopeId"` }
A collection of arguments for invoking getDefinition.
type GetDefinitionOutputArgs ¶ added in v4.20.0
type GetDefinitionOutputArgs struct { // The name of the Blueprint. Name pulumi.StringInput `pulumi:"name"` // The ID of the Subscription or Management Group, as the scope at which the blueprint definition is stored. ScopeId pulumi.StringInput `pulumi:"scopeId"` }
A collection of arguments for invoking getDefinition.
func (GetDefinitionOutputArgs) ElementType ¶ added in v4.20.0
func (GetDefinitionOutputArgs) ElementType() reflect.Type
type GetDefinitionResult ¶
type GetDefinitionResult struct { // The description of the Blueprint Definition. Description string `pulumi:"description"` // The display name of the Blueprint Definition. DisplayName string `pulumi:"displayName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The timestamp of when this last modification was saved to the Blueprint Definition. LastModified string `pulumi:"lastModified"` Name string `pulumi:"name"` ScopeId string `pulumi:"scopeId"` // The target scope. TargetScope string `pulumi:"targetScope"` // The timestamp of when this Blueprint Definition was created. TimeCreated string `pulumi:"timeCreated"` // A list of versions published for this Blueprint Definition. Versions []string `pulumi:"versions"` }
A collection of values returned by getDefinition.
func GetDefinition ¶
func GetDefinition(ctx *pulumi.Context, args *GetDefinitionArgs, opts ...pulumi.InvokeOption) (*GetDefinitionResult, error)
Use this data source to access information about an existing Azure Blueprint Definition
> **NOTE:** Azure Blueprints are in Preview and potentially subject to breaking change without notice.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/blueprint" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := core.GetClientConfig(ctx, nil, nil) if err != nil { return err } opt0 := current.TenantId root, err := management.LookupGroup(ctx, &management.LookupGroupArgs{ Name: &opt0, }, nil) if err != nil { return err } _, err = blueprint.GetDefinition(ctx, &blueprint.GetDefinitionArgs{ Name: "exampleManagementGroupBP", ScopeId: root.Id, }, nil) if err != nil { return err } return nil }) }
```
type GetDefinitionResultOutput ¶ added in v4.20.0
type GetDefinitionResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDefinition.
func GetDefinitionOutput ¶ added in v4.20.0
func GetDefinitionOutput(ctx *pulumi.Context, args GetDefinitionOutputArgs, opts ...pulumi.InvokeOption) GetDefinitionResultOutput
func (GetDefinitionResultOutput) Description ¶ added in v4.20.0
func (o GetDefinitionResultOutput) Description() pulumi.StringOutput
The description of the Blueprint Definition.
func (GetDefinitionResultOutput) DisplayName ¶ added in v4.20.0
func (o GetDefinitionResultOutput) DisplayName() pulumi.StringOutput
The display name of the Blueprint Definition.
func (GetDefinitionResultOutput) ElementType ¶ added in v4.20.0
func (GetDefinitionResultOutput) ElementType() reflect.Type
func (GetDefinitionResultOutput) Id ¶ added in v4.20.0
func (o GetDefinitionResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDefinitionResultOutput) LastModified ¶ added in v4.20.0
func (o GetDefinitionResultOutput) LastModified() pulumi.StringOutput
The timestamp of when this last modification was saved to the Blueprint Definition.
func (GetDefinitionResultOutput) Name ¶ added in v4.20.0
func (o GetDefinitionResultOutput) Name() pulumi.StringOutput
func (GetDefinitionResultOutput) ScopeId ¶ added in v4.20.0
func (o GetDefinitionResultOutput) ScopeId() pulumi.StringOutput
func (GetDefinitionResultOutput) TargetScope ¶ added in v4.20.0
func (o GetDefinitionResultOutput) TargetScope() pulumi.StringOutput
The target scope.
func (GetDefinitionResultOutput) TimeCreated ¶ added in v4.20.0
func (o GetDefinitionResultOutput) TimeCreated() pulumi.StringOutput
The timestamp of when this Blueprint Definition was created.
func (GetDefinitionResultOutput) ToGetDefinitionResultOutput ¶ added in v4.20.0
func (o GetDefinitionResultOutput) ToGetDefinitionResultOutput() GetDefinitionResultOutput
func (GetDefinitionResultOutput) ToGetDefinitionResultOutputWithContext ¶ added in v4.20.0
func (o GetDefinitionResultOutput) ToGetDefinitionResultOutputWithContext(ctx context.Context) GetDefinitionResultOutput
func (GetDefinitionResultOutput) Versions ¶ added in v4.20.0
func (o GetDefinitionResultOutput) Versions() pulumi.StringArrayOutput
A list of versions published for this Blueprint Definition.
type GetPublishedVersionArgs ¶
type GetPublishedVersionArgs struct { // The name of the Blueprint Definition BlueprintName string `pulumi:"blueprintName"` // The ID of the Management Group / Subscription where this Blueprint Definition is stored. ScopeId string `pulumi:"scopeId"` // The Version name of the Published Version of the Blueprint Definition Version string `pulumi:"version"` }
A collection of arguments for invoking getPublishedVersion.
type GetPublishedVersionOutputArgs ¶ added in v4.20.0
type GetPublishedVersionOutputArgs struct { // The name of the Blueprint Definition BlueprintName pulumi.StringInput `pulumi:"blueprintName"` // The ID of the Management Group / Subscription where this Blueprint Definition is stored. ScopeId pulumi.StringInput `pulumi:"scopeId"` // The Version name of the Published Version of the Blueprint Definition Version pulumi.StringInput `pulumi:"version"` }
A collection of arguments for invoking getPublishedVersion.
func (GetPublishedVersionOutputArgs) ElementType ¶ added in v4.20.0
func (GetPublishedVersionOutputArgs) ElementType() reflect.Type
type GetPublishedVersionResult ¶
type GetPublishedVersionResult struct { BlueprintName string `pulumi:"blueprintName"` // The description of the Blueprint Published Version Description string `pulumi:"description"` // The display name of the Blueprint Published Version DisplayName string `pulumi:"displayName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` LastModified string `pulumi:"lastModified"` ScopeId string `pulumi:"scopeId"` // The target scope TargetScope string `pulumi:"targetScope"` TimeCreated string `pulumi:"timeCreated"` // The type of the Blueprint Type string `pulumi:"type"` Version string `pulumi:"version"` }
A collection of values returned by getPublishedVersion.
func GetPublishedVersion ¶
func GetPublishedVersion(ctx *pulumi.Context, args *GetPublishedVersionArgs, opts ...pulumi.InvokeOption) (*GetPublishedVersionResult, error)
Use this data source to access information about an existing Blueprint Published Version
> **NOTE:** Azure Blueprints are in Preview and potentially subject to breaking change without notice.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/blueprint" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := core.LookupSubscription(ctx, nil, nil) if err != nil { return err } _, err = blueprint.GetPublishedVersion(ctx, &blueprint.GetPublishedVersionArgs{ ScopeId: current.Id, BlueprintName: "exampleBluePrint", Version: "dev_v2.3", }, nil) if err != nil { return err } return nil }) }
```
type GetPublishedVersionResultOutput ¶ added in v4.20.0
type GetPublishedVersionResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPublishedVersion.
func GetPublishedVersionOutput ¶ added in v4.20.0
func GetPublishedVersionOutput(ctx *pulumi.Context, args GetPublishedVersionOutputArgs, opts ...pulumi.InvokeOption) GetPublishedVersionResultOutput
func (GetPublishedVersionResultOutput) BlueprintName ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) BlueprintName() pulumi.StringOutput
func (GetPublishedVersionResultOutput) Description ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) Description() pulumi.StringOutput
The description of the Blueprint Published Version
func (GetPublishedVersionResultOutput) DisplayName ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) DisplayName() pulumi.StringOutput
The display name of the Blueprint Published Version
func (GetPublishedVersionResultOutput) ElementType ¶ added in v4.20.0
func (GetPublishedVersionResultOutput) ElementType() reflect.Type
func (GetPublishedVersionResultOutput) Id ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPublishedVersionResultOutput) LastModified ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) LastModified() pulumi.StringOutput
func (GetPublishedVersionResultOutput) ScopeId ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) ScopeId() pulumi.StringOutput
func (GetPublishedVersionResultOutput) TargetScope ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) TargetScope() pulumi.StringOutput
The target scope
func (GetPublishedVersionResultOutput) TimeCreated ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) TimeCreated() pulumi.StringOutput
func (GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutput ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutput() GetPublishedVersionResultOutput
func (GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutputWithContext ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutputWithContext(ctx context.Context) GetPublishedVersionResultOutput
func (GetPublishedVersionResultOutput) Type ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) Type() pulumi.StringOutput
The type of the Blueprint
func (GetPublishedVersionResultOutput) Version ¶ added in v4.20.0
func (o GetPublishedVersionResultOutput) Version() pulumi.StringOutput