Documentation
¶
Index ¶
- type Application
- type ApplicationArgs
- type ApplicationArray
- type ApplicationArrayInput
- type ApplicationArrayOutput
- func (ApplicationArrayOutput) ElementType() reflect.Type
- func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput
- func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput
- func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
- type ApplicationInput
- type ApplicationMap
- type ApplicationMapInput
- type ApplicationMapOutput
- func (ApplicationMapOutput) ElementType() reflect.Type
- func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput
- func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput
- func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
- type ApplicationOutput
- func (o ApplicationOutput) ApplicationDefinitionId() pulumi.StringPtrOutput
- func (ApplicationOutput) ElementType() reflect.Type
- func (o ApplicationOutput) Kind() pulumi.StringOutput
- func (o ApplicationOutput) Location() pulumi.StringOutput
- func (o ApplicationOutput) ManagedResourceGroupName() pulumi.StringOutput
- func (o ApplicationOutput) Name() pulumi.StringOutput
- func (o ApplicationOutput) Outputs() pulumi.StringMapOutput
- func (o ApplicationOutput) ParameterValues() pulumi.StringOutput
- func (o ApplicationOutput) Parameters() pulumi.StringMapOutput
- func (o ApplicationOutput) Plan() ApplicationPlanPtrOutput
- func (o ApplicationOutput) ResourceGroupName() pulumi.StringOutput
- func (o ApplicationOutput) Tags() pulumi.StringMapOutput
- func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
- func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) 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 DefinitionArray
- type DefinitionArrayInput
- type DefinitionArrayOutput
- func (DefinitionArrayOutput) ElementType() reflect.Type
- func (o DefinitionArrayOutput) Index(i pulumi.IntInput) DefinitionOutput
- func (o DefinitionArrayOutput) ToDefinitionArrayOutput() DefinitionArrayOutput
- func (o DefinitionArrayOutput) ToDefinitionArrayOutputWithContext(ctx context.Context) DefinitionArrayOutput
- 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 DefinitionMap
- type DefinitionMapInput
- type DefinitionMapOutput
- func (DefinitionMapOutput) ElementType() reflect.Type
- func (o DefinitionMapOutput) MapIndex(k pulumi.StringInput) DefinitionOutput
- func (o DefinitionMapOutput) ToDefinitionMapOutput() DefinitionMapOutput
- func (o DefinitionMapOutput) ToDefinitionMapOutputWithContext(ctx context.Context) DefinitionMapOutput
- type DefinitionOutput
- func (o DefinitionOutput) Authorizations() DefinitionAuthorizationArrayOutput
- func (o DefinitionOutput) CreateUiDefinition() pulumi.StringPtrOutput
- func (o DefinitionOutput) Description() pulumi.StringPtrOutput
- func (o DefinitionOutput) DisplayName() pulumi.StringOutput
- func (DefinitionOutput) ElementType() reflect.Type
- func (o DefinitionOutput) Location() pulumi.StringOutput
- func (o DefinitionOutput) LockLevel() pulumi.StringOutput
- func (o DefinitionOutput) MainTemplate() pulumi.StringPtrOutput
- func (o DefinitionOutput) Name() pulumi.StringOutput
- func (o DefinitionOutput) PackageEnabled() pulumi.BoolPtrOutput
- func (o DefinitionOutput) PackageFileUri() pulumi.StringPtrOutput
- func (o DefinitionOutput) ResourceGroupName() pulumi.StringOutput
- func (o DefinitionOutput) Tags() pulumi.StringMapOutput
- func (o DefinitionOutput) ToDefinitionOutput() DefinitionOutput
- func (o DefinitionOutput) ToDefinitionOutputWithContext(ctx context.Context) DefinitionOutput
- type DefinitionState
- type LookupDefinitionArgs
- type LookupDefinitionOutputArgs
- type LookupDefinitionResult
- type LookupDefinitionResultOutput
- func (LookupDefinitionResultOutput) ElementType() reflect.Type
- func (o LookupDefinitionResultOutput) Id() pulumi.StringOutput
- func (o LookupDefinitionResultOutput) Location() pulumi.StringOutput
- func (o LookupDefinitionResultOutput) Name() pulumi.StringOutput
- func (o LookupDefinitionResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupDefinitionResultOutput) ToLookupDefinitionResultOutput() LookupDefinitionResultOutput
- func (o LookupDefinitionResultOutput) ToLookupDefinitionResultOutputWithContext(ctx context.Context) LookupDefinitionResultOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
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"` // The parameter values to pass to the Managed Application. This field is a JSON object that allows you to assign parameters to this Managed Application. ParameterValues pulumi.StringOutput `pulumi:"parameterValues"` // 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.
## 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/managedapplication" "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 } builtin, err := authorization.LookupRoleDefinition(ctx, &authorization.LookupRoleDefinitionArgs{ Name: pulumi.StringRef("Contributor"), }, nil) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleDefinition, 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("TestManagedAppDefinition"), Description: pulumi.String("Test Managed App Definition"), Authorizations: managedapplication.DefinitionAuthorizationArray{ &managedapplication.DefinitionAuthorizationArgs{ ServicePrincipalId: *pulumi.String(current.ObjectId), RoleDefinitionId: "TODO: call split"[len("TODO: call split")-1], }, }, }) if err != nil { return err } _, err = managedapplication.NewApplication(ctx, "exampleApplication", &managedapplication.ApplicationArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Kind: pulumi.String("ServiceCatalog"), ManagedResourceGroupName: pulumi.String("infrastructureGroup"), ApplicationDefinitionId: exampleDefinition.ID(), Parameters: pulumi.StringMap{ "location": exampleResourceGroup.Location, "storageAccountNamePrefix": pulumi.String("storeNamePrefix"), "storageAccountType": pulumi.String("Standard_LRS"), }, }) if err != nil { return err } return nil }) }
```
## 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 ¶
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 ¶
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 ¶
func (*Application) ElementType() reflect.Type
func (*Application) ToApplicationOutput ¶
func (i *Application) ToApplicationOutput() ApplicationOutput
func (*Application) ToApplicationOutputWithContext ¶
func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
type ApplicationArgs ¶
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 // The parameter values to pass to the Managed Application. This field is a JSON object that allows you to assign parameters to this Managed Application. ParameterValues 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 ¶
func (ApplicationArgs) ElementType() reflect.Type
type ApplicationArray ¶
type ApplicationArray []ApplicationInput
func (ApplicationArray) ElementType ¶
func (ApplicationArray) ElementType() reflect.Type
func (ApplicationArray) ToApplicationArrayOutput ¶
func (i ApplicationArray) ToApplicationArrayOutput() ApplicationArrayOutput
func (ApplicationArray) ToApplicationArrayOutputWithContext ¶
func (i ApplicationArray) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
type ApplicationArrayInput ¶
type ApplicationArrayInput interface { pulumi.Input ToApplicationArrayOutput() ApplicationArrayOutput ToApplicationArrayOutputWithContext(context.Context) ApplicationArrayOutput }
ApplicationArrayInput is an input type that accepts ApplicationArray and ApplicationArrayOutput values. You can construct a concrete instance of `ApplicationArrayInput` via:
ApplicationArray{ ApplicationArgs{...} }
type ApplicationArrayOutput ¶
type ApplicationArrayOutput struct{ *pulumi.OutputState }
func (ApplicationArrayOutput) ElementType ¶
func (ApplicationArrayOutput) ElementType() reflect.Type
func (ApplicationArrayOutput) Index ¶
func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput
func (ApplicationArrayOutput) ToApplicationArrayOutput ¶
func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput
func (ApplicationArrayOutput) ToApplicationArrayOutputWithContext ¶
func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
type ApplicationInput ¶
type ApplicationInput interface { pulumi.Input ToApplicationOutput() ApplicationOutput ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput }
type ApplicationMap ¶
type ApplicationMap map[string]ApplicationInput
func (ApplicationMap) ElementType ¶
func (ApplicationMap) ElementType() reflect.Type
func (ApplicationMap) ToApplicationMapOutput ¶
func (i ApplicationMap) ToApplicationMapOutput() ApplicationMapOutput
func (ApplicationMap) ToApplicationMapOutputWithContext ¶
func (i ApplicationMap) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
type ApplicationMapInput ¶
type ApplicationMapInput interface { pulumi.Input ToApplicationMapOutput() ApplicationMapOutput ToApplicationMapOutputWithContext(context.Context) ApplicationMapOutput }
ApplicationMapInput is an input type that accepts ApplicationMap and ApplicationMapOutput values. You can construct a concrete instance of `ApplicationMapInput` via:
ApplicationMap{ "key": ApplicationArgs{...} }
type ApplicationMapOutput ¶
type ApplicationMapOutput struct{ *pulumi.OutputState }
func (ApplicationMapOutput) ElementType ¶
func (ApplicationMapOutput) ElementType() reflect.Type
func (ApplicationMapOutput) MapIndex ¶
func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput
func (ApplicationMapOutput) ToApplicationMapOutput ¶
func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput
func (ApplicationMapOutput) ToApplicationMapOutputWithContext ¶
func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
type ApplicationOutput ¶
type ApplicationOutput struct{ *pulumi.OutputState }
func (ApplicationOutput) ApplicationDefinitionId ¶ added in v5.5.0
func (o ApplicationOutput) ApplicationDefinitionId() pulumi.StringPtrOutput
The application definition ID to deploy.
func (ApplicationOutput) ElementType ¶
func (ApplicationOutput) ElementType() reflect.Type
func (ApplicationOutput) Kind ¶ added in v5.5.0
func (o ApplicationOutput) Kind() pulumi.StringOutput
The kind of the managed application to deploy. Possible values are `MarketPlace` and `ServiceCatalog`. Changing this forces a new resource to be created.
func (ApplicationOutput) Location ¶ added in v5.5.0
func (o ApplicationOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (ApplicationOutput) ManagedResourceGroupName ¶ added in v5.5.0
func (o ApplicationOutput) ManagedResourceGroupName() pulumi.StringOutput
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.
func (ApplicationOutput) Name ¶ added in v5.5.0
func (o ApplicationOutput) Name() pulumi.StringOutput
Specifies the name of the Managed Application. Changing this forces a new resource to be created.
func (ApplicationOutput) Outputs ¶ added in v5.5.0
func (o ApplicationOutput) Outputs() pulumi.StringMapOutput
The name and value pairs that define the managed application outputs.
func (ApplicationOutput) ParameterValues ¶ added in v5.5.0
func (o ApplicationOutput) ParameterValues() pulumi.StringOutput
The parameter values to pass to the Managed Application. This field is a JSON object that allows you to assign parameters to this Managed Application.
func (ApplicationOutput) Parameters ¶ added in v5.5.0
func (o ApplicationOutput) Parameters() pulumi.StringMapOutput
A mapping of name and value pairs to pass to the managed application as parameters.
func (ApplicationOutput) Plan ¶ added in v5.5.0
func (o ApplicationOutput) Plan() ApplicationPlanPtrOutput
One `plan` block as defined below.
func (ApplicationOutput) ResourceGroupName ¶ added in v5.5.0
func (o ApplicationOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Managed Application should exist. Changing this forces a new resource to be created.
func (ApplicationOutput) Tags ¶ added in v5.5.0
func (o ApplicationOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (ApplicationOutput) ToApplicationOutput ¶
func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
func (ApplicationOutput) ToApplicationOutputWithContext ¶
func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
type ApplicationPlan ¶
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. // // > **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `marketplace.Agreement` resource or AZ CLI tool can be used to do this. 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 ¶
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. // // > **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `marketplace.Agreement` resource or AZ CLI tool can be used to do this. 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 ¶
func (ApplicationPlanArgs) ElementType() reflect.Type
func (ApplicationPlanArgs) ToApplicationPlanOutput ¶
func (i ApplicationPlanArgs) ToApplicationPlanOutput() ApplicationPlanOutput
func (ApplicationPlanArgs) ToApplicationPlanOutputWithContext ¶
func (i ApplicationPlanArgs) ToApplicationPlanOutputWithContext(ctx context.Context) ApplicationPlanOutput
func (ApplicationPlanArgs) ToApplicationPlanPtrOutput ¶
func (i ApplicationPlanArgs) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
func (ApplicationPlanArgs) ToApplicationPlanPtrOutputWithContext ¶
func (i ApplicationPlanArgs) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
type ApplicationPlanInput ¶
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 ¶
type ApplicationPlanOutput struct{ *pulumi.OutputState }
func (ApplicationPlanOutput) ElementType ¶
func (ApplicationPlanOutput) ElementType() reflect.Type
func (ApplicationPlanOutput) Name ¶
func (o ApplicationPlanOutput) Name() pulumi.StringOutput
Specifies the name of the plan from the marketplace.
func (ApplicationPlanOutput) Product ¶
func (o ApplicationPlanOutput) Product() pulumi.StringOutput
Specifies the product of the plan from the marketplace.
func (ApplicationPlanOutput) PromotionCode ¶
func (o ApplicationPlanOutput) PromotionCode() pulumi.StringPtrOutput
Specifies the promotion code to use with the plan.
> **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `marketplace.Agreement` resource or AZ CLI tool can be used to do this.
func (ApplicationPlanOutput) Publisher ¶
func (o ApplicationPlanOutput) Publisher() pulumi.StringOutput
Specifies the publisher of the plan.
func (ApplicationPlanOutput) ToApplicationPlanOutput ¶
func (o ApplicationPlanOutput) ToApplicationPlanOutput() ApplicationPlanOutput
func (ApplicationPlanOutput) ToApplicationPlanOutputWithContext ¶
func (o ApplicationPlanOutput) ToApplicationPlanOutputWithContext(ctx context.Context) ApplicationPlanOutput
func (ApplicationPlanOutput) ToApplicationPlanPtrOutput ¶
func (o ApplicationPlanOutput) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
func (ApplicationPlanOutput) ToApplicationPlanPtrOutputWithContext ¶
func (o ApplicationPlanOutput) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
func (ApplicationPlanOutput) Version ¶
func (o ApplicationPlanOutput) Version() pulumi.StringOutput
Specifies the version of the plan from the marketplace.
type ApplicationPlanPtrInput ¶
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 ¶
func ApplicationPlanPtr(v *ApplicationPlanArgs) ApplicationPlanPtrInput
type ApplicationPlanPtrOutput ¶
type ApplicationPlanPtrOutput struct{ *pulumi.OutputState }
func (ApplicationPlanPtrOutput) Elem ¶
func (o ApplicationPlanPtrOutput) Elem() ApplicationPlanOutput
func (ApplicationPlanPtrOutput) ElementType ¶
func (ApplicationPlanPtrOutput) ElementType() reflect.Type
func (ApplicationPlanPtrOutput) Name ¶
func (o ApplicationPlanPtrOutput) Name() pulumi.StringPtrOutput
Specifies the name of the plan from the marketplace.
func (ApplicationPlanPtrOutput) Product ¶
func (o ApplicationPlanPtrOutput) Product() pulumi.StringPtrOutput
Specifies the product of the plan from the marketplace.
func (ApplicationPlanPtrOutput) PromotionCode ¶
func (o ApplicationPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
Specifies the promotion code to use with the plan.
> **NOTE:** When `plan` is specified, legal terms must be accepted for this item on this subscription before creating the Managed Application. The `marketplace.Agreement` resource or AZ CLI tool can be used to do this.
func (ApplicationPlanPtrOutput) Publisher ¶
func (o ApplicationPlanPtrOutput) Publisher() pulumi.StringPtrOutput
Specifies the publisher of the plan.
func (ApplicationPlanPtrOutput) ToApplicationPlanPtrOutput ¶
func (o ApplicationPlanPtrOutput) ToApplicationPlanPtrOutput() ApplicationPlanPtrOutput
func (ApplicationPlanPtrOutput) ToApplicationPlanPtrOutputWithContext ¶
func (o ApplicationPlanPtrOutput) ToApplicationPlanPtrOutputWithContext(ctx context.Context) ApplicationPlanPtrOutput
func (ApplicationPlanPtrOutput) Version ¶
func (o ApplicationPlanPtrOutput) Version() pulumi.StringPtrOutput
Specifies the version of the plan from the marketplace.
type ApplicationState ¶
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 // The parameter values to pass to the Managed Application. This field is a JSON object that allows you to assign parameters to this Managed Application. ParameterValues 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.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (ApplicationState) ElementType ¶
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. // // > **NOTE:** If either `createUiDefinition` or `mainTemplate` is set they both must be set. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Managed Application Definition.
## 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/managedapplication" "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 } 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 ¶
func (*Definition) ElementType() reflect.Type
func (*Definition) ToDefinitionOutput ¶
func (i *Definition) ToDefinitionOutput() DefinitionOutput
func (*Definition) ToDefinitionOutputWithContext ¶
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. // // > **NOTE:** If either `createUiDefinition` or `mainTemplate` is set they both must be set. Tags pulumi.StringMapInput }
The set of arguments for constructing a Definition resource.
func (DefinitionArgs) ElementType ¶
func (DefinitionArgs) ElementType() reflect.Type
type DefinitionArray ¶
type DefinitionArray []DefinitionInput
func (DefinitionArray) ElementType ¶
func (DefinitionArray) ElementType() reflect.Type
func (DefinitionArray) ToDefinitionArrayOutput ¶
func (i DefinitionArray) ToDefinitionArrayOutput() DefinitionArrayOutput
func (DefinitionArray) ToDefinitionArrayOutputWithContext ¶
func (i DefinitionArray) ToDefinitionArrayOutputWithContext(ctx context.Context) DefinitionArrayOutput
type DefinitionArrayInput ¶
type DefinitionArrayInput interface { pulumi.Input ToDefinitionArrayOutput() DefinitionArrayOutput ToDefinitionArrayOutputWithContext(context.Context) DefinitionArrayOutput }
DefinitionArrayInput is an input type that accepts DefinitionArray and DefinitionArrayOutput values. You can construct a concrete instance of `DefinitionArrayInput` via:
DefinitionArray{ DefinitionArgs{...} }
type DefinitionArrayOutput ¶
type DefinitionArrayOutput struct{ *pulumi.OutputState }
func (DefinitionArrayOutput) ElementType ¶
func (DefinitionArrayOutput) ElementType() reflect.Type
func (DefinitionArrayOutput) Index ¶
func (o DefinitionArrayOutput) Index(i pulumi.IntInput) DefinitionOutput
func (DefinitionArrayOutput) ToDefinitionArrayOutput ¶
func (o DefinitionArrayOutput) ToDefinitionArrayOutput() DefinitionArrayOutput
func (DefinitionArrayOutput) ToDefinitionArrayOutputWithContext ¶
func (o DefinitionArrayOutput) ToDefinitionArrayOutputWithContext(ctx context.Context) DefinitionArrayOutput
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 ¶
type DefinitionInput interface { pulumi.Input ToDefinitionOutput() DefinitionOutput ToDefinitionOutputWithContext(ctx context.Context) DefinitionOutput }
type DefinitionMap ¶
type DefinitionMap map[string]DefinitionInput
func (DefinitionMap) ElementType ¶
func (DefinitionMap) ElementType() reflect.Type
func (DefinitionMap) ToDefinitionMapOutput ¶
func (i DefinitionMap) ToDefinitionMapOutput() DefinitionMapOutput
func (DefinitionMap) ToDefinitionMapOutputWithContext ¶
func (i DefinitionMap) ToDefinitionMapOutputWithContext(ctx context.Context) DefinitionMapOutput
type DefinitionMapInput ¶
type DefinitionMapInput interface { pulumi.Input ToDefinitionMapOutput() DefinitionMapOutput ToDefinitionMapOutputWithContext(context.Context) DefinitionMapOutput }
DefinitionMapInput is an input type that accepts DefinitionMap and DefinitionMapOutput values. You can construct a concrete instance of `DefinitionMapInput` via:
DefinitionMap{ "key": DefinitionArgs{...} }
type DefinitionMapOutput ¶
type DefinitionMapOutput struct{ *pulumi.OutputState }
func (DefinitionMapOutput) ElementType ¶
func (DefinitionMapOutput) ElementType() reflect.Type
func (DefinitionMapOutput) MapIndex ¶
func (o DefinitionMapOutput) MapIndex(k pulumi.StringInput) DefinitionOutput
func (DefinitionMapOutput) ToDefinitionMapOutput ¶
func (o DefinitionMapOutput) ToDefinitionMapOutput() DefinitionMapOutput
func (DefinitionMapOutput) ToDefinitionMapOutputWithContext ¶
func (o DefinitionMapOutput) ToDefinitionMapOutputWithContext(ctx context.Context) DefinitionMapOutput
type DefinitionOutput ¶
type DefinitionOutput struct{ *pulumi.OutputState }
func (DefinitionOutput) Authorizations ¶ added in v5.5.0
func (o DefinitionOutput) Authorizations() DefinitionAuthorizationArrayOutput
One or more `authorization` block defined below.
func (DefinitionOutput) CreateUiDefinition ¶ added in v5.5.0
func (o DefinitionOutput) CreateUiDefinition() pulumi.StringPtrOutput
Specifies the `createUiDefinition` JSON for the backing template with `Microsoft.Solutions/applications` resource.
func (DefinitionOutput) Description ¶ added in v5.5.0
func (o DefinitionOutput) Description() pulumi.StringPtrOutput
Specifies the managed application definition description.
func (DefinitionOutput) DisplayName ¶ added in v5.5.0
func (o DefinitionOutput) DisplayName() pulumi.StringOutput
Specifies the managed application definition display name.
func (DefinitionOutput) ElementType ¶
func (DefinitionOutput) ElementType() reflect.Type
func (DefinitionOutput) Location ¶ added in v5.5.0
func (o DefinitionOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (DefinitionOutput) LockLevel ¶ added in v5.5.0
func (o DefinitionOutput) LockLevel() pulumi.StringOutput
Specifies the managed application lock level. Valid values include `CanNotDelete`, `None`, `ReadOnly`. Changing this forces a new resource to be created.
func (DefinitionOutput) MainTemplate ¶ added in v5.5.0
func (o DefinitionOutput) MainTemplate() pulumi.StringPtrOutput
Specifies the inline main template JSON which has resources to be provisioned.
func (DefinitionOutput) Name ¶ added in v5.5.0
func (o DefinitionOutput) Name() pulumi.StringOutput
Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
func (DefinitionOutput) PackageEnabled ¶ added in v5.5.0
func (o DefinitionOutput) PackageEnabled() pulumi.BoolPtrOutput
Is the package enabled? Defaults to `true`.
func (DefinitionOutput) PackageFileUri ¶ added in v5.5.0
func (o DefinitionOutput) PackageFileUri() pulumi.StringPtrOutput
Specifies the managed application definition package file Uri.
func (DefinitionOutput) ResourceGroupName ¶ added in v5.5.0
func (o DefinitionOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
func (DefinitionOutput) Tags ¶ added in v5.5.0
func (o DefinitionOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
> **NOTE:** If either `createUiDefinition` or `mainTemplate` is set they both must be set.
func (DefinitionOutput) ToDefinitionOutput ¶
func (o DefinitionOutput) ToDefinitionOutput() DefinitionOutput
func (DefinitionOutput) ToDefinitionOutputWithContext ¶
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. // // > **NOTE:** If either `createUiDefinition` or `mainTemplate` is set they both must be set. 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 LookupDefinitionOutputArgs ¶
type LookupDefinitionOutputArgs struct { // Specifies the name of the Managed Application Definition. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Resource Group where this Managed Application Definition exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getDefinition.
func (LookupDefinitionOutputArgs) ElementType ¶
func (LookupDefinitionOutputArgs) ElementType() reflect.Type
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/v5/go/azure/managedapplication" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := managedapplication.LookupDefinition(ctx, &managedapplication.LookupDefinitionArgs{ Name: "examplemanagedappdef", ResourceGroupName: "exampleresources", }, nil) if err != nil { return err } ctx.Export("id", example.Id) return nil }) }
```
type LookupDefinitionResultOutput ¶
type LookupDefinitionResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDefinition.
func LookupDefinitionOutput ¶
func LookupDefinitionOutput(ctx *pulumi.Context, args LookupDefinitionOutputArgs, opts ...pulumi.InvokeOption) LookupDefinitionResultOutput
func (LookupDefinitionResultOutput) ElementType ¶
func (LookupDefinitionResultOutput) ElementType() reflect.Type
func (LookupDefinitionResultOutput) Id ¶
func (o LookupDefinitionResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupDefinitionResultOutput) Location ¶
func (o LookupDefinitionResultOutput) Location() pulumi.StringOutput
func (LookupDefinitionResultOutput) Name ¶
func (o LookupDefinitionResultOutput) Name() pulumi.StringOutput
func (LookupDefinitionResultOutput) ResourceGroupName ¶
func (o LookupDefinitionResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupDefinitionResultOutput) ToLookupDefinitionResultOutput ¶
func (o LookupDefinitionResultOutput) ToLookupDefinitionResultOutput() LookupDefinitionResultOutput
func (LookupDefinitionResultOutput) ToLookupDefinitionResultOutputWithContext ¶
func (o LookupDefinitionResultOutput) ToLookupDefinitionResultOutputWithContext(ctx context.Context) LookupDefinitionResultOutput