Documentation
¶
Index ¶
- type Application
- type ApplicationArgs
- type ApplicationInput
- type ApplicationOutput
- type ApplicationPlan
- type ApplicationPlanArgs
- func (ApplicationPlanArgs) ElementType() reflect.Type
- func (i ApplicationPlanArgs) ToApplicationPlanOutput() ApplicationPlanOutput
- func (i ApplicationPlanArgs) ToApplicationPlanOutputWithContext(ctx context.Context) ApplicationPlanOutput
- func (i ApplicationPlanArgs) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
- func (i ApplicationPlanArgs) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
- type ApplicationPlanInput
- type ApplicationPlanOutput
- func (ApplicationPlanOutput) ElementType() reflect.Type
- func (o ApplicationPlanOutput) Name() pulumi.StringOutput
- func (o ApplicationPlanOutput) Product() pulumi.StringOutput
- func (o ApplicationPlanOutput) PromotionCode() pulumi.StringPtrOutput
- func (o ApplicationPlanOutput) Publisher() pulumi.StringOutput
- func (o ApplicationPlanOutput) ToApplicationPlanOutput() ApplicationPlanOutput
- func (o ApplicationPlanOutput) ToApplicationPlanOutputWithContext(ctx context.Context) ApplicationPlanOutput
- func (o ApplicationPlanOutput) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
- func (o ApplicationPlanOutput) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
- func (o ApplicationPlanOutput) Version() pulumi.StringOutput
- type ApplicationPlanPtrInput
- type ApplicationPlanPtrOutput
- func (o ApplicationPlanPtrOutput) Elem() ApplicationPlanOutput
- func (ApplicationPlanPtrOutput) ElementType() reflect.Type
- func (o ApplicationPlanPtrOutput) Name() pulumi.StringPtrOutput
- func (o ApplicationPlanPtrOutput) Product() pulumi.StringPtrOutput
- func (o ApplicationPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
- func (o ApplicationPlanPtrOutput) Publisher() pulumi.StringPtrOutput
- func (o ApplicationPlanPtrOutput) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
- func (o ApplicationPlanPtrOutput) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
- func (o ApplicationPlanPtrOutput) Version() pulumi.StringPtrOutput
- type ApplicationState
- type Definition
- type DefinitionArgs
- type DefinitionAuthorization
- type DefinitionAuthorizationArgs
- type DefinitionAuthorizationArray
- func (DefinitionAuthorizationArray) ElementType() reflect.Type
- func (i DefinitionAuthorizationArray) ToDefinitionAuthorizationArrayOutput() DefinitionAuthorizationArrayOutput
- func (i DefinitionAuthorizationArray) ToDefinitionAuthorizationArrayOutputWithContext(ctx context.Context) DefinitionAuthorizationArrayOutput
- type DefinitionAuthorizationArrayInput
- type DefinitionAuthorizationArrayOutput
- func (DefinitionAuthorizationArrayOutput) ElementType() reflect.Type
- func (o DefinitionAuthorizationArrayOutput) Index(i pulumi.IntInput) DefinitionAuthorizationOutput
- func (o DefinitionAuthorizationArrayOutput) ToDefinitionAuthorizationArrayOutput() DefinitionAuthorizationArrayOutput
- func (o DefinitionAuthorizationArrayOutput) ToDefinitionAuthorizationArrayOutputWithContext(ctx context.Context) DefinitionAuthorizationArrayOutput
- type DefinitionAuthorizationInput
- type DefinitionAuthorizationOutput
- func (DefinitionAuthorizationOutput) ElementType() reflect.Type
- func (o DefinitionAuthorizationOutput) RoleDefinitionId() pulumi.StringOutput
- func (o DefinitionAuthorizationOutput) ServicePrincipalId() pulumi.StringOutput
- func (o DefinitionAuthorizationOutput) ToDefinitionAuthorizationOutput() DefinitionAuthorizationOutput
- func (o DefinitionAuthorizationOutput) ToDefinitionAuthorizationOutputWithContext(ctx context.Context) DefinitionAuthorizationOutput
- type DefinitionInput
- type DefinitionOutput
- type DefinitionState
- type LookupDefinitionArgs
- type LookupDefinitionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶ added in v3.4.0
type Application struct { pulumi.CustomResourceState // The application definition ID to deploy. ApplicationDefinitionId pulumi.StringPtrOutput `pulumi:"applicationDefinitionId"` // The kind of the managed application to deploy. Possible values are `MarketPlace` and `ServiceCatalog`. Changing this forces a new resource to be created. Kind pulumi.StringOutput `pulumi:"kind"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the target resource group where all the resources deployed by the managed application will reside. Changing this forces a new resource to be created. ManagedResourceGroupName pulumi.StringOutput `pulumi:"managedResourceGroupName"` // Specifies the name of the Managed Application. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name and value pairs that define the managed application outputs. Outputs pulumi.StringMapOutput `pulumi:"outputs"` // A mapping of name and value pairs to pass to the managed application as parameters. Parameters pulumi.StringMapOutput `pulumi:"parameters"` // One `plan` block as defined below. Plan ApplicationPlanPtrOutput `pulumi:"plan"` // The name of the Resource Group where the Managed Application should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Managed Application.
## Import
Managed Application can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:managedapplication/application:Application example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Solutions/applications/app1
```
func GetApplication ¶ added in v3.4.0
func GetApplication(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationState, opts ...pulumi.ResourceOption) (*Application, error)
GetApplication gets an existing Application 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 NewApplication ¶ added in v3.4.0
func NewApplication(ctx *pulumi.Context, name string, args *ApplicationArgs, opts ...pulumi.ResourceOption) (*Application, error)
NewApplication registers a new resource with the given unique name, arguments, and options.
func (Application) ElementType ¶ added in v3.31.1
func (Application) ElementType() reflect.Type
func (Application) ToApplicationOutput ¶ added in v3.31.1
func (i Application) ToApplicationOutput() ApplicationOutput
func (Application) ToApplicationOutputWithContext ¶ added in v3.31.1
func (i Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
type ApplicationArgs ¶ added in v3.4.0
type ApplicationArgs struct { // The application definition ID to deploy. ApplicationDefinitionId pulumi.StringPtrInput // The kind of the managed application to deploy. Possible values are `MarketPlace` and `ServiceCatalog`. Changing this forces a new resource to be created. Kind pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the target resource group where all the resources deployed by the managed application will reside. Changing this forces a new resource to be created. ManagedResourceGroupName pulumi.StringInput // Specifies the name of the Managed Application. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A mapping of name and value pairs to pass to the managed application as parameters. Parameters pulumi.StringMapInput // One `plan` block as defined below. Plan ApplicationPlanPtrInput // The name of the Resource Group where the Managed Application should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Application resource.
func (ApplicationArgs) ElementType ¶ added in v3.4.0
func (ApplicationArgs) ElementType() reflect.Type
type ApplicationInput ¶ added in v3.31.1
type ApplicationInput interface { pulumi.Input ToApplicationOutput() ApplicationOutput ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput }
type ApplicationOutput ¶ added in v3.31.1
type ApplicationOutput struct {
*pulumi.OutputState
}
func (ApplicationOutput) ElementType ¶ added in v3.31.1
func (ApplicationOutput) ElementType() reflect.Type
func (ApplicationOutput) ToApplicationOutput ¶ added in v3.31.1
func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
func (ApplicationOutput) ToApplicationOutputWithContext ¶ added in v3.31.1
func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
type ApplicationPlan ¶ added in v3.4.0
type ApplicationPlan struct { // Specifies the name of the plan from the marketplace. Name string `pulumi:"name"` // Specifies the product of the plan from the marketplace. Product string `pulumi:"product"` // Specifies the promotion code to use with the plan. PromotionCode *string `pulumi:"promotionCode"` // Specifies the publisher of the plan. Publisher string `pulumi:"publisher"` // Specifies the version of the plan from the marketplace. Version string `pulumi:"version"` }
type ApplicationPlanArgs ¶ added in v3.4.0
type ApplicationPlanArgs struct { // Specifies the name of the plan from the marketplace. Name pulumi.StringInput `pulumi:"name"` // Specifies the product of the plan from the marketplace. Product pulumi.StringInput `pulumi:"product"` // Specifies the promotion code to use with the plan. PromotionCode pulumi.StringPtrInput `pulumi:"promotionCode"` // Specifies the publisher of the plan. Publisher pulumi.StringInput `pulumi:"publisher"` // Specifies the version of the plan from the marketplace. Version pulumi.StringInput `pulumi:"version"` }
func (ApplicationPlanArgs) ElementType ¶ added in v3.4.0
func (ApplicationPlanArgs) ElementType() reflect.Type
func (ApplicationPlanArgs) ToApplicationPlanOutput ¶ added in v3.4.0
func (i ApplicationPlanArgs) ToApplicationPlanOutput() ApplicationPlanOutput
func (ApplicationPlanArgs) ToApplicationPlanOutputWithContext ¶ added in v3.4.0
func (i ApplicationPlanArgs) ToApplicationPlanOutputWithContext(ctx context.Context) ApplicationPlanOutput
func (ApplicationPlanArgs) ToApplicationPlanPtrOutput ¶ added in v3.4.0
func (i ApplicationPlanArgs) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
func (ApplicationPlanArgs) ToApplicationPlanPtrOutputWithContext ¶ added in v3.4.0
func (i ApplicationPlanArgs) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
type ApplicationPlanInput ¶ added in v3.4.0
type ApplicationPlanInput interface { pulumi.Input ToApplicationPlanOutput() ApplicationPlanOutput ToApplicationPlanOutputWithContext(context.Context) ApplicationPlanOutput }
ApplicationPlanInput is an input type that accepts ApplicationPlanArgs and ApplicationPlanOutput values. You can construct a concrete instance of `ApplicationPlanInput` via:
ApplicationPlanArgs{...}
type ApplicationPlanOutput ¶ added in v3.4.0
type ApplicationPlanOutput struct{ *pulumi.OutputState }
func (ApplicationPlanOutput) ElementType ¶ added in v3.4.0
func (ApplicationPlanOutput) ElementType() reflect.Type
func (ApplicationPlanOutput) Name ¶ added in v3.4.0
func (o ApplicationPlanOutput) Name() pulumi.StringOutput
Specifies the name of the plan from the marketplace.
func (ApplicationPlanOutput) Product ¶ added in v3.4.0
func (o ApplicationPlanOutput) Product() pulumi.StringOutput
Specifies the product of the plan from the marketplace.
func (ApplicationPlanOutput) PromotionCode ¶ added in v3.4.0
func (o ApplicationPlanOutput) PromotionCode() pulumi.StringPtrOutput
Specifies the promotion code to use with the plan.
func (ApplicationPlanOutput) Publisher ¶ added in v3.4.0
func (o ApplicationPlanOutput) Publisher() pulumi.StringOutput
Specifies the publisher of the plan.
func (ApplicationPlanOutput) ToApplicationPlanOutput ¶ added in v3.4.0
func (o ApplicationPlanOutput) ToApplicationPlanOutput() ApplicationPlanOutput
func (ApplicationPlanOutput) ToApplicationPlanOutputWithContext ¶ added in v3.4.0
func (o ApplicationPlanOutput) ToApplicationPlanOutputWithContext(ctx context.Context) ApplicationPlanOutput
func (ApplicationPlanOutput) ToApplicationPlanPtrOutput ¶ added in v3.4.0
func (o ApplicationPlanOutput) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
func (ApplicationPlanOutput) ToApplicationPlanPtrOutputWithContext ¶ added in v3.4.0
func (o ApplicationPlanOutput) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
func (ApplicationPlanOutput) Version ¶ added in v3.4.0
func (o ApplicationPlanOutput) Version() pulumi.StringOutput
Specifies the version of the plan from the marketplace.
type ApplicationPlanPtrInput ¶ added in v3.4.0
type ApplicationPlanPtrInput interface { pulumi.Input ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput ToApplicationPlanPtrOutputWithContext(context.Context) ApplicationPlanPtrOutput }
ApplicationPlanPtrInput is an input type that accepts ApplicationPlanArgs, ApplicationPlanPtr and ApplicationPlanPtrOutput values. You can construct a concrete instance of `ApplicationPlanPtrInput` via:
ApplicationPlanArgs{...} or: nil
func ApplicationPlanPtr ¶ added in v3.4.0
func ApplicationPlanPtr(v *ApplicationPlanArgs) ApplicationPlanPtrInput
type ApplicationPlanPtrOutput ¶ added in v3.4.0
type ApplicationPlanPtrOutput struct{ *pulumi.OutputState }
func (ApplicationPlanPtrOutput) Elem ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) Elem() ApplicationPlanOutput
func (ApplicationPlanPtrOutput) ElementType ¶ added in v3.4.0
func (ApplicationPlanPtrOutput) ElementType() reflect.Type
func (ApplicationPlanPtrOutput) Name ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) Name() pulumi.StringPtrOutput
Specifies the name of the plan from the marketplace.
func (ApplicationPlanPtrOutput) Product ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) Product() pulumi.StringPtrOutput
Specifies the product of the plan from the marketplace.
func (ApplicationPlanPtrOutput) PromotionCode ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
Specifies the promotion code to use with the plan.
func (ApplicationPlanPtrOutput) Publisher ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) Publisher() pulumi.StringPtrOutput
Specifies the publisher of the plan.
func (ApplicationPlanPtrOutput) ToApplicationPlanPtrOutput ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
func (ApplicationPlanPtrOutput) ToApplicationPlanPtrOutputWithContext ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
func (ApplicationPlanPtrOutput) Version ¶ added in v3.4.0
func (o ApplicationPlanPtrOutput) Version() pulumi.StringPtrOutput
Specifies the version of the plan from the marketplace.
type ApplicationState ¶ added in v3.4.0
type ApplicationState struct { // The application definition ID to deploy. ApplicationDefinitionId pulumi.StringPtrInput // The kind of the managed application to deploy. Possible values are `MarketPlace` and `ServiceCatalog`. Changing this forces a new resource to be created. Kind pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the target resource group where all the resources deployed by the managed application will reside. Changing this forces a new resource to be created. ManagedResourceGroupName pulumi.StringPtrInput // Specifies the name of the Managed Application. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name and value pairs that define the managed application outputs. Outputs pulumi.StringMapInput // A mapping of name and value pairs to pass to the managed application as parameters. Parameters pulumi.StringMapInput // One `plan` block as defined below. Plan ApplicationPlanPtrInput // The name of the Resource Group where the Managed Application should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (ApplicationState) ElementType ¶ added in v3.4.0
func (ApplicationState) ElementType() reflect.Type
type Definition ¶
type Definition struct { pulumi.CustomResourceState // One or more `authorization` block defined below. Authorizations DefinitionAuthorizationArrayOutput `pulumi:"authorizations"` // Specifies the `createUiDefinition` json for the backing template with `Microsoft.Solutions/applications` resource. CreateUiDefinition pulumi.StringPtrOutput `pulumi:"createUiDefinition"` // Specifies the managed application definition description. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the managed application definition display name. DisplayName pulumi.StringOutput `pulumi:"displayName"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the managed application lock level. Valid values include `CanNotDelete`, `None`, `ReadOnly`. Changing this forces a new resource to be created. LockLevel pulumi.StringOutput `pulumi:"lockLevel"` // Specifies the inline main template json which has resources to be provisioned. MainTemplate pulumi.StringPtrOutput `pulumi:"mainTemplate"` // Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Is the package enabled? Defaults to `true`. PackageEnabled pulumi.BoolPtrOutput `pulumi:"packageEnabled"` // Specifies the managed application definition package file Uri. PackageFileUri pulumi.StringPtrOutput `pulumi:"packageFileUri"` // The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Managed Application Definition.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/managedapplication" "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 } _, err = managedapplication.NewDefinition(ctx, "exampleDefinition", &managedapplication.DefinitionArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, LockLevel: pulumi.String("ReadOnly"), PackageFileUri: pulumi.String("https://github.com/Azure/azure-managedapp-samples/raw/master/Managed Application Sample Packages/201-managed-storage-account/managedstorage.zip"), DisplayName: pulumi.String("TestManagedApplicationDefinition"), Description: pulumi.String("Test Managed Application Definition"), Authorizations: managedapplication.DefinitionAuthorizationArray{ &managedapplication.DefinitionAuthorizationArgs{ ServicePrincipalId: pulumi.String(current.ObjectId), RoleDefinitionId: pulumi.String("a094b430-dad3-424d-ae58-13f72fd72591"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Managed Application Definition can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:managedapplication/definition:Definition example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Solutions/applicationDefinitions/appDefinition1
```
func GetDefinition ¶
func GetDefinition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DefinitionState, opts ...pulumi.ResourceOption) (*Definition, error)
GetDefinition gets an existing Definition 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 NewDefinition ¶
func NewDefinition(ctx *pulumi.Context, name string, args *DefinitionArgs, opts ...pulumi.ResourceOption) (*Definition, error)
NewDefinition registers a new resource with the given unique name, arguments, and options.
func (Definition) ElementType ¶ added in v3.31.1
func (Definition) ElementType() reflect.Type
func (Definition) ToDefinitionOutput ¶ added in v3.31.1
func (i Definition) ToDefinitionOutput() DefinitionOutput
func (Definition) ToDefinitionOutputWithContext ¶ added in v3.31.1
func (i Definition) ToDefinitionOutputWithContext(ctx context.Context) DefinitionOutput
type DefinitionArgs ¶
type DefinitionArgs struct { // One or more `authorization` block defined below. Authorizations DefinitionAuthorizationArrayInput // Specifies the `createUiDefinition` json for the backing template with `Microsoft.Solutions/applications` resource. CreateUiDefinition pulumi.StringPtrInput // Specifies the managed application definition description. Description pulumi.StringPtrInput // Specifies the managed application definition display name. DisplayName pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the managed application lock level. Valid values include `CanNotDelete`, `None`, `ReadOnly`. Changing this forces a new resource to be created. LockLevel pulumi.StringInput // Specifies the inline main template json which has resources to be provisioned. MainTemplate pulumi.StringPtrInput // Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Is the package enabled? Defaults to `true`. PackageEnabled pulumi.BoolPtrInput // Specifies the managed application definition package file Uri. PackageFileUri pulumi.StringPtrInput // The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Definition resource.
func (DefinitionArgs) ElementType ¶
func (DefinitionArgs) ElementType() reflect.Type
type DefinitionAuthorization ¶
type DefinitionAuthorization struct { // Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. RoleDefinitionId string `pulumi:"roleDefinitionId"` // Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources. ServicePrincipalId string `pulumi:"servicePrincipalId"` }
type DefinitionAuthorizationArgs ¶
type DefinitionAuthorizationArgs struct { // Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. RoleDefinitionId pulumi.StringInput `pulumi:"roleDefinitionId"` // Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources. ServicePrincipalId pulumi.StringInput `pulumi:"servicePrincipalId"` }
func (DefinitionAuthorizationArgs) ElementType ¶
func (DefinitionAuthorizationArgs) ElementType() reflect.Type
func (DefinitionAuthorizationArgs) ToDefinitionAuthorizationOutput ¶
func (i DefinitionAuthorizationArgs) ToDefinitionAuthorizationOutput() DefinitionAuthorizationOutput
func (DefinitionAuthorizationArgs) ToDefinitionAuthorizationOutputWithContext ¶
func (i DefinitionAuthorizationArgs) ToDefinitionAuthorizationOutputWithContext(ctx context.Context) DefinitionAuthorizationOutput
type DefinitionAuthorizationArray ¶
type DefinitionAuthorizationArray []DefinitionAuthorizationInput
func (DefinitionAuthorizationArray) ElementType ¶
func (DefinitionAuthorizationArray) ElementType() reflect.Type
func (DefinitionAuthorizationArray) ToDefinitionAuthorizationArrayOutput ¶
func (i DefinitionAuthorizationArray) ToDefinitionAuthorizationArrayOutput() DefinitionAuthorizationArrayOutput
func (DefinitionAuthorizationArray) ToDefinitionAuthorizationArrayOutputWithContext ¶
func (i DefinitionAuthorizationArray) ToDefinitionAuthorizationArrayOutputWithContext(ctx context.Context) DefinitionAuthorizationArrayOutput
type DefinitionAuthorizationArrayInput ¶
type DefinitionAuthorizationArrayInput interface { pulumi.Input ToDefinitionAuthorizationArrayOutput() DefinitionAuthorizationArrayOutput ToDefinitionAuthorizationArrayOutputWithContext(context.Context) DefinitionAuthorizationArrayOutput }
DefinitionAuthorizationArrayInput is an input type that accepts DefinitionAuthorizationArray and DefinitionAuthorizationArrayOutput values. You can construct a concrete instance of `DefinitionAuthorizationArrayInput` via:
DefinitionAuthorizationArray{ DefinitionAuthorizationArgs{...} }
type DefinitionAuthorizationArrayOutput ¶
type DefinitionAuthorizationArrayOutput struct{ *pulumi.OutputState }
func (DefinitionAuthorizationArrayOutput) ElementType ¶
func (DefinitionAuthorizationArrayOutput) ElementType() reflect.Type
func (DefinitionAuthorizationArrayOutput) Index ¶
func (o DefinitionAuthorizationArrayOutput) Index(i pulumi.IntInput) DefinitionAuthorizationOutput
func (DefinitionAuthorizationArrayOutput) ToDefinitionAuthorizationArrayOutput ¶
func (o DefinitionAuthorizationArrayOutput) ToDefinitionAuthorizationArrayOutput() DefinitionAuthorizationArrayOutput
func (DefinitionAuthorizationArrayOutput) ToDefinitionAuthorizationArrayOutputWithContext ¶
func (o DefinitionAuthorizationArrayOutput) ToDefinitionAuthorizationArrayOutputWithContext(ctx context.Context) DefinitionAuthorizationArrayOutput
type DefinitionAuthorizationInput ¶
type DefinitionAuthorizationInput interface { pulumi.Input ToDefinitionAuthorizationOutput() DefinitionAuthorizationOutput ToDefinitionAuthorizationOutputWithContext(context.Context) DefinitionAuthorizationOutput }
DefinitionAuthorizationInput is an input type that accepts DefinitionAuthorizationArgs and DefinitionAuthorizationOutput values. You can construct a concrete instance of `DefinitionAuthorizationInput` via:
DefinitionAuthorizationArgs{...}
type DefinitionAuthorizationOutput ¶
type DefinitionAuthorizationOutput struct{ *pulumi.OutputState }
func (DefinitionAuthorizationOutput) ElementType ¶
func (DefinitionAuthorizationOutput) ElementType() reflect.Type
func (DefinitionAuthorizationOutput) RoleDefinitionId ¶
func (o DefinitionAuthorizationOutput) RoleDefinitionId() pulumi.StringOutput
Specifies a role definition identifier for the provider. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group.
func (DefinitionAuthorizationOutput) ServicePrincipalId ¶
func (o DefinitionAuthorizationOutput) ServicePrincipalId() pulumi.StringOutput
Specifies a service principal identifier for the provider. This is the identity that the provider will use to call ARM to manage the managed application resources.
func (DefinitionAuthorizationOutput) ToDefinitionAuthorizationOutput ¶
func (o DefinitionAuthorizationOutput) ToDefinitionAuthorizationOutput() DefinitionAuthorizationOutput
func (DefinitionAuthorizationOutput) ToDefinitionAuthorizationOutputWithContext ¶
func (o DefinitionAuthorizationOutput) ToDefinitionAuthorizationOutputWithContext(ctx context.Context) DefinitionAuthorizationOutput
type DefinitionInput ¶ added in v3.31.1
type DefinitionInput interface { pulumi.Input ToDefinitionOutput() DefinitionOutput ToDefinitionOutputWithContext(ctx context.Context) DefinitionOutput }
type DefinitionOutput ¶ added in v3.31.1
type DefinitionOutput struct {
*pulumi.OutputState
}
func (DefinitionOutput) ElementType ¶ added in v3.31.1
func (DefinitionOutput) ElementType() reflect.Type
func (DefinitionOutput) ToDefinitionOutput ¶ added in v3.31.1
func (o DefinitionOutput) ToDefinitionOutput() DefinitionOutput
func (DefinitionOutput) ToDefinitionOutputWithContext ¶ added in v3.31.1
func (o DefinitionOutput) ToDefinitionOutputWithContext(ctx context.Context) DefinitionOutput
type DefinitionState ¶
type DefinitionState struct { // One or more `authorization` block defined below. Authorizations DefinitionAuthorizationArrayInput // Specifies the `createUiDefinition` json for the backing template with `Microsoft.Solutions/applications` resource. CreateUiDefinition pulumi.StringPtrInput // Specifies the managed application definition description. Description pulumi.StringPtrInput // Specifies the managed application definition display name. DisplayName pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the managed application lock level. Valid values include `CanNotDelete`, `None`, `ReadOnly`. Changing this forces a new resource to be created. LockLevel pulumi.StringPtrInput // Specifies the inline main template json which has resources to be provisioned. MainTemplate pulumi.StringPtrInput // Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Is the package enabled? Defaults to `true`. PackageEnabled pulumi.BoolPtrInput // Specifies the managed application definition package file Uri. PackageFileUri pulumi.StringPtrInput // The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (DefinitionState) ElementType ¶
func (DefinitionState) ElementType() reflect.Type
type LookupDefinitionArgs ¶
type LookupDefinitionArgs struct { // Specifies the name of the Managed Application Definition. Name string `pulumi:"name"` // Specifies the name of the Resource Group where this Managed Application Definition exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getDefinition.
type LookupDefinitionResult ¶
type LookupDefinitionResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of values returned by getDefinition.
func LookupDefinition ¶
func LookupDefinition(ctx *pulumi.Context, args *LookupDefinitionArgs, opts ...pulumi.InvokeOption) (*LookupDefinitionResult, error)
Uses this data source to access information about an existing Managed Application Definition.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/managedapplication" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := managedapplication.LookupDefinition(ctx, &managedapplication.LookupDefinitionArgs{ Name: "example-managedappdef", ResourceGroupName: "example-resources", }, nil) if err != nil { return err } ctx.Export("id", example.Id) return nil }) }
```