Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* <!--End PulumiCodeChooser -->
*
* ## 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
* ```
*
*/
@ResourceType(type="azure:managedapplication/definition:Definition")
public class Definition extends com.pulumi.resources.CustomResource {
/**
* One or more `authorization` block defined below.
*
*/
@Export(name="authorizations", refs={List.class,DefinitionAuthorization.class}, tree="[0,1]")
private Output* @Nullable */ List> authorizations;
/**
* @return One or more `authorization` block defined below.
*
*/
public Output>> authorizations() {
return Codegen.optional(this.authorizations);
}
/**
* Specifies the `createUiDefinition` JSON for the backing template with `Microsoft.Solutions/applications` resource.
*
*/
@Export(name="createUiDefinition", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> createUiDefinition;
/**
* @return Specifies the `createUiDefinition` JSON for the backing template with `Microsoft.Solutions/applications` resource.
*
*/
public Output> createUiDefinition() {
return Codegen.optional(this.createUiDefinition);
}
/**
* Specifies the managed application definition description.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Specifies the managed application definition description.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Specifies the managed application definition display name.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output displayName;
/**
* @return Specifies the managed application definition display name.
*
*/
public Output displayName() {
return this.displayName;
}
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* Specifies the managed application lock level. Valid values include `CanNotDelete`, `None`, `ReadOnly`. Changing this forces a new resource to be created.
*
*/
@Export(name="lockLevel", refs={String.class}, tree="[0]")
private Output lockLevel;
/**
* @return Specifies the managed application lock level. Valid values include `CanNotDelete`, `None`, `ReadOnly`. Changing this forces a new resource to be created.
*
*/
public Output lockLevel() {
return this.lockLevel;
}
/**
* Specifies the inline main template JSON which has resources to be provisioned.
*
*/
@Export(name="mainTemplate", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> mainTemplate;
/**
* @return Specifies the inline main template JSON which has resources to be provisioned.
*
*/
public Output> mainTemplate() {
return Codegen.optional(this.mainTemplate);
}
/**
* Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Specifies the name of the Managed Application Definition. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* Is the package enabled? Defaults to `true`.
*
*/
@Export(name="packageEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> packageEnabled;
/**
* @return Is the package enabled? Defaults to `true`.
*
*/
public Output> packageEnabled() {
return Codegen.optional(this.packageEnabled);
}
/**
* Specifies the managed application definition package file Uri.
*
*/
@Export(name="packageFileUri", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> packageFileUri;
/**
* @return Specifies the managed application definition package file Uri.
*
*/
public Output> packageFileUri() {
return Codegen.optional(this.packageFileUri);
}
/**
* The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the Resource Group where the Managed Application Definition should exist. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* A mapping of tags to assign to the resource.
*
* > **NOTE:** If either `create_ui_definition` or `main_template` is set they both must be set.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags to assign to the resource.
*
* > **NOTE:** If either `create_ui_definition` or `main_template` is set they both must be set.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Definition(java.lang.String name) {
this(name, DefinitionArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Definition(java.lang.String name, DefinitionArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Definition(java.lang.String name, DefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:managedapplication/definition:Definition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Definition(java.lang.String name, Output id, @Nullable DefinitionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:managedapplication/definition:Definition", name, state, makeResourceOptions(options, id), false);
}
private static DefinitionArgs makeArgs(DefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? DefinitionArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Definition get(java.lang.String name, Output id, @Nullable DefinitionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Definition(name, id, state, options);
}
}