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

com.pulumi.alicloud.servicecatalog.ProvisionedProduct Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.servicecatalog;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.servicecatalog.ProvisionedProductArgs;
import com.pulumi.alicloud.servicecatalog.inputs.ProvisionedProductState;
import com.pulumi.alicloud.servicecatalog.outputs.ProvisionedProductOutput;
import com.pulumi.alicloud.servicecatalog.outputs.ProvisionedProductParameter;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides a Service Catalog Provisioned Product resource.
 * 
 * For information about Service Catalog Provisioned Product and how to use it, see [What is Provisioned Product](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-launchproduct).
 * 
 * > **NOTE:** Available in v1.196.0+.
 * 
 * ## Example Usage
 * 
 * Basic Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.alicloud.servicecatalog.ProvisionedProduct;
 * import com.pulumi.alicloud.servicecatalog.ProvisionedProductArgs;
 * import com.pulumi.alicloud.servicecatalog.inputs.ProvisionedProductParameterArgs;
 * 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) {
 *         final var config = ctx.config();
 *         final var name = config.get("name").orElse("tf-testAccServiceCatalogProvisionedProduct");
 *         var default_ = new ProvisionedProduct("default", ProvisionedProductArgs.builder()
 *             .provisionedProductName(name)
 *             .stackRegionId("cn-hangzhou")
 *             .productVersionId("pv-bp1d7dxy2pcc1g")
 *             .productId("prod-bp1u3dkc282cwd")
 *             .portfolioId("port-bp119dvn27jccw")
 *             .tags(Map.of("v1", "tf-test"))
 *             .parameters(ProvisionedProductParameterArgs.builder()
 *                 .parameterKey("role_name")
 *                 .parameterValue(name)
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Service Catalog Provisioned Product can be imported using the id, e.g. * * ```sh * $ pulumi import alicloud:servicecatalog/provisionedProduct:ProvisionedProduct example <id> * ``` * */ @ResourceType(type="alicloud:servicecatalog/provisionedProduct:ProvisionedProduct") public class ProvisionedProduct extends com.pulumi.resources.CustomResource { /** * The creation time of the product instance * */ @Export(name="createTime", refs={String.class}, tree="[0]") private Output createTime; /** * @return The creation time of the product instance * */ public Output createTime() { return this.createTime; } /** * The ID of the last instance operation task * */ @Export(name="lastProvisioningTaskId", refs={String.class}, tree="[0]") private Output lastProvisioningTaskId; /** * @return The ID of the last instance operation task * */ public Output lastProvisioningTaskId() { return this.lastProvisioningTaskId; } /** * The ID of the last successful instance operation task * */ @Export(name="lastSuccessfulProvisioningTaskId", refs={String.class}, tree="[0]") private Output lastSuccessfulProvisioningTaskId; /** * @return The ID of the last successful instance operation task * */ public Output lastSuccessfulProvisioningTaskId() { return this.lastSuccessfulProvisioningTaskId; } /** * The ID of the last task * */ @Export(name="lastTaskId", refs={String.class}, tree="[0]") private Output lastTaskId; /** * @return The ID of the last task * */ public Output lastTaskId() { return this.lastTaskId; } /** * The output value of the template. * */ @Export(name="outputs", refs={List.class,ProvisionedProductOutput.class}, tree="[0,1]") private Output> outputs; /** * @return The output value of the template. * */ public Output> outputs() { return this.outputs; } /** * The RAM entity ID of the owner * */ @Export(name="ownerPrincipalId", refs={String.class}, tree="[0]") private Output ownerPrincipalId; /** * @return The RAM entity ID of the owner * */ public Output ownerPrincipalId() { return this.ownerPrincipalId; } /** * The RAM entity type of the owner * */ @Export(name="ownerPrincipalType", refs={String.class}, tree="[0]") private Output ownerPrincipalType; /** * @return The RAM entity type of the owner * */ public Output ownerPrincipalType() { return this.ownerPrincipalType; } /** * Template parameters entered by the user.The maximum value of N is 200.See the following `Block Parameters`. * */ @Export(name="parameters", refs={List.class,ProvisionedProductParameter.class}, tree="[0,1]") private Output> parameters; /** * @return Template parameters entered by the user.The maximum value of N is 200.See the following `Block Parameters`. * */ public Output>> parameters() { return Codegen.optional(this.parameters); } /** * Product mix ID.> When there is a default Startup option, there is no need to fill in the portfolio. When there is no default Startup option, you must fill in the portfolio. * */ @Export(name="portfolioId", refs={String.class}, tree="[0]") private Output portfolioId; /** * @return Product mix ID.> When there is a default Startup option, there is no need to fill in the portfolio. When there is no default Startup option, you must fill in the portfolio. * */ public Output> portfolioId() { return Codegen.optional(this.portfolioId); } /** * Product ID. * */ @Export(name="productId", refs={String.class}, tree="[0]") private Output productId; /** * @return Product ID. * */ public Output productId() { return this.productId; } /** * The name of the product * */ @Export(name="productName", refs={String.class}, tree="[0]") private Output productName; /** * @return The name of the product * */ public Output productName() { return this.productName; } /** * Product version ID. * */ @Export(name="productVersionId", refs={String.class}, tree="[0]") private Output productVersionId; /** * @return Product version ID. * */ public Output productVersionId() { return this.productVersionId; } /** * The name of the product version * */ @Export(name="productVersionName", refs={String.class}, tree="[0]") private Output productVersionName; /** * @return The name of the product version * */ public Output productVersionName() { return this.productVersionName; } /** * The ARN of the product instance * */ @Export(name="provisionedProductArn", refs={String.class}, tree="[0]") private Output provisionedProductArn; /** * @return The ARN of the product instance * */ public Output provisionedProductArn() { return this.provisionedProductArn; } /** * The ID of the instance. * */ @Export(name="provisionedProductId", refs={String.class}, tree="[0]") private Output provisionedProductId; /** * @return The ID of the instance. * */ public Output provisionedProductId() { return this.provisionedProductId; } /** * The name of the instance.The length is 1~128 characters. * */ @Export(name="provisionedProductName", refs={String.class}, tree="[0]") private Output provisionedProductName; /** * @return The name of the instance.The length is 1~128 characters. * */ public Output provisionedProductName() { return this.provisionedProductName; } /** * Instance type.The value is RosStack, which indicates the stack of Alibaba Cloud resource orchestration service (ROS). * */ @Export(name="provisionedProductType", refs={String.class}, tree="[0]") private Output provisionedProductType; /** * @return Instance type.The value is RosStack, which indicates the stack of Alibaba Cloud resource orchestration service (ROS). * */ public Output provisionedProductType() { return this.provisionedProductType; } /** * The ID of the ROS stack * */ @Export(name="stackId", refs={String.class}, tree="[0]") private Output stackId; /** * @return The ID of the ROS stack * */ public Output stackId() { return this.stackId; } /** * The ID of the region to which the resource stack of the Alibaba Cloud resource orchestration service (ROS) belongs. * */ @Export(name="stackRegionId", refs={String.class}, tree="[0]") private Output stackRegionId; /** * @return The ID of the region to which the resource stack of the Alibaba Cloud resource orchestration service (ROS) belongs. * */ public Output stackRegionId() { return this.stackRegionId; } /** * Instance status * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Instance status * */ public Output status() { return this.status; } /** * The status message of the product instance * */ @Export(name="statusMessage", refs={String.class}, tree="[0]") private Output statusMessage; /** * @return The status message of the product instance * */ public Output statusMessage() { return this.statusMessage; } /** * A mapping of tags to assign to the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags to assign to the resource. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * * @param name The _unique_ name of the resulting resource. */ public ProvisionedProduct(java.lang.String name) { this(name, ProvisionedProductArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ProvisionedProduct(java.lang.String name, ProvisionedProductArgs 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 ProvisionedProduct(java.lang.String name, ProvisionedProductArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("alicloud:servicecatalog/provisionedProduct:ProvisionedProduct", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ProvisionedProduct(java.lang.String name, Output id, @Nullable ProvisionedProductState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("alicloud:servicecatalog/provisionedProduct:ProvisionedProduct", name, state, makeResourceOptions(options, id), false); } private static ProvisionedProductArgs makeArgs(ProvisionedProductArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ProvisionedProductArgs.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 ProvisionedProduct get(java.lang.String name, Output id, @Nullable ProvisionedProductState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ProvisionedProduct(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy