All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.solutions.ApplicationDefinition Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.solutions;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.solutions.ApplicationDefinitionArgs;
import com.pulumi.azurenative.solutions.outputs.ApplicationAuthorizationResponse;
import com.pulumi.azurenative.solutions.outputs.ApplicationDefinitionArtifactResponse;
import com.pulumi.azurenative.solutions.outputs.ApplicationDeploymentPolicyResponse;
import com.pulumi.azurenative.solutions.outputs.ApplicationManagementPolicyResponse;
import com.pulumi.azurenative.solutions.outputs.ApplicationNotificationPolicyResponse;
import com.pulumi.azurenative.solutions.outputs.ApplicationPackageLockingPolicyDefinitionResponse;
import com.pulumi.azurenative.solutions.outputs.ApplicationPolicyResponse;
import com.pulumi.azurenative.solutions.outputs.SkuResponse;
import com.pulumi.azurenative.solutions.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Information about managed application definition.
 * Azure REST API version: 2021-07-01. Prior API version in Azure Native 1.x: 2019-07-01.
 * 
 * Other available API versions: 2017-12-01, 2023-12-01-preview.
 * 
 * ## Example Usage
 * ### Create or update managed application definition
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.solutions.ApplicationDefinition;
 * import com.pulumi.azurenative.solutions.ApplicationDefinitionArgs;
 * import com.pulumi.azurenative.solutions.inputs.ApplicationAuthorizationArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var applicationDefinition = new ApplicationDefinition("applicationDefinition", ApplicationDefinitionArgs.builder()
 *             .applicationDefinitionName("myManagedApplicationDef")
 *             .authorizations(ApplicationAuthorizationArgs.builder()
 *                 .principalId("validprincipalguid")
 *                 .roleDefinitionId("validroleguid")
 *                 .build())
 *             .description("myManagedApplicationDef description")
 *             .displayName("myManagedApplicationDef")
 *             .lockLevel("None")
 *             .packageFileUri("https://path/to/packagezipfile")
 *             .resourceGroupName("rg")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:solutions:ApplicationDefinition myManagedApplicationDef /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName} * ``` * */ @ResourceType(type="azure-native:solutions:ApplicationDefinition") public class ApplicationDefinition extends com.pulumi.resources.CustomResource { /** * The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. * */ @Export(name="artifacts", refs={List.class,ApplicationDefinitionArtifactResponse.class}, tree="[0,1]") private Output> artifacts; /** * @return The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. * */ public Output>> artifacts() { return Codegen.optional(this.artifacts); } /** * The managed application provider authorizations. * */ @Export(name="authorizations", refs={List.class,ApplicationAuthorizationResponse.class}, tree="[0,1]") private Output> authorizations; /** * @return The managed application provider authorizations. * */ public Output>> authorizations() { return Codegen.optional(this.authorizations); } /** * The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. * */ @Export(name="createUiDefinition", refs={Object.class}, tree="[0]") private Output createUiDefinition; /** * @return The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. * */ public Output> createUiDefinition() { return Codegen.optional(this.createUiDefinition); } /** * The managed application deployment policy. * */ @Export(name="deploymentPolicy", refs={ApplicationDeploymentPolicyResponse.class}, tree="[0]") private Output deploymentPolicy; /** * @return The managed application deployment policy. * */ public Output> deploymentPolicy() { return Codegen.optional(this.deploymentPolicy); } /** * The managed application definition description. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return The managed application definition description. * */ public Output> description() { return Codegen.optional(this.description); } /** * The managed application definition display name. * */ @Export(name="displayName", refs={String.class}, tree="[0]") private Output displayName; /** * @return The managed application definition display name. * */ public Output> displayName() { return Codegen.optional(this.displayName); } /** * A value indicating whether the package is enabled or not. * */ @Export(name="isEnabled", refs={Boolean.class}, tree="[0]") private Output isEnabled; /** * @return A value indicating whether the package is enabled or not. * */ public Output> isEnabled() { return Codegen.optional(this.isEnabled); } /** * Resource location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location * */ public Output> location() { return Codegen.optional(this.location); } /** * The managed application lock level. * */ @Export(name="lockLevel", refs={String.class}, tree="[0]") private Output lockLevel; /** * @return The managed application lock level. * */ public Output lockLevel() { return this.lockLevel; } /** * The managed application locking policy. * */ @Export(name="lockingPolicy", refs={ApplicationPackageLockingPolicyDefinitionResponse.class}, tree="[0]") private Output lockingPolicy; /** * @return The managed application locking policy. * */ public Output> lockingPolicy() { return Codegen.optional(this.lockingPolicy); } /** * The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. * */ @Export(name="mainTemplate", refs={Object.class}, tree="[0]") private Output mainTemplate; /** * @return The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. * */ public Output> mainTemplate() { return Codegen.optional(this.mainTemplate); } /** * ID of the resource that manages this resource. * */ @Export(name="managedBy", refs={String.class}, tree="[0]") private Output managedBy; /** * @return ID of the resource that manages this resource. * */ public Output> managedBy() { return Codegen.optional(this.managedBy); } /** * The managed application management policy that determines publisher's access to the managed resource group. * */ @Export(name="managementPolicy", refs={ApplicationManagementPolicyResponse.class}, tree="[0]") private Output managementPolicy; /** * @return The managed application management policy that determines publisher's access to the managed resource group. * */ public Output> managementPolicy() { return Codegen.optional(this.managementPolicy); } /** * Resource name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name * */ public Output name() { return this.name; } /** * The managed application notification policy. * */ @Export(name="notificationPolicy", refs={ApplicationNotificationPolicyResponse.class}, tree="[0]") private Output notificationPolicy; /** * @return The managed application notification policy. * */ public Output> notificationPolicy() { return Codegen.optional(this.notificationPolicy); } /** * The managed application definition package file Uri. Use this element * */ @Export(name="packageFileUri", refs={String.class}, tree="[0]") private Output packageFileUri; /** * @return The managed application definition package file Uri. Use this element * */ public Output> packageFileUri() { return Codegen.optional(this.packageFileUri); } /** * The managed application provider policies. * */ @Export(name="policies", refs={List.class,ApplicationPolicyResponse.class}, tree="[0,1]") private Output> policies; /** * @return The managed application provider policies. * */ public Output>> policies() { return Codegen.optional(this.policies); } /** * The SKU of the resource. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return The SKU of the resource. * */ public Output> sku() { return Codegen.optional(this.sku); } /** * The storage account id for bring your own storage scenario. * */ @Export(name="storageAccountId", refs={String.class}, tree="[0]") private Output storageAccountId; /** * @return The storage account id for bring your own storage scenario. * */ public Output> storageAccountId() { return Codegen.optional(this.storageAccountId); } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * Resource tags * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Resource type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ApplicationDefinition(java.lang.String name) { this(name, ApplicationDefinitionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ApplicationDefinition(java.lang.String name, ApplicationDefinitionArgs 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 ApplicationDefinition(java.lang.String name, ApplicationDefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:solutions:ApplicationDefinition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ApplicationDefinition(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:solutions:ApplicationDefinition", name, null, makeResourceOptions(options, id), false); } private static ApplicationDefinitionArgs makeArgs(ApplicationDefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ApplicationDefinitionArgs.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()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:solutions/v20160901preview:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20170901:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20171201:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20180201:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20180301:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20180601:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20180901preview:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20190701:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20200821preview:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20210201preview:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20210701:ApplicationDefinition").build()), Output.of(Alias.builder().type("azure-native:solutions/v20231201preview:ApplicationDefinition").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static ApplicationDefinition get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ApplicationDefinition(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy