UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

142 lines 8.14 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.ProvisionedProduct = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource provisions and manages a Service Catalog provisioned product. * * A provisioned product is a resourced instance of a product. For example, provisioning a product based on a CloudFormation template launches a CloudFormation stack and its underlying resources. * * Like this resource, the `awsServicecatalogRecord` data source also provides information about a provisioned product. Although a Service Catalog record provides some overlapping information with this resource, a record is tied to a provisioned product event, such as provisioning, termination, and updating. * * > **Tip:** If you include conflicted keys as tags, AWS will report an error, "Parameter validation failed: Missing required parameter in Tags[N]:Value". * * > **Tip:** A "provisioning artifact" is also referred to as a "version." A "distributor" is also referred to as a "vendor." * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.servicecatalog.ProvisionedProduct("example", { * name: "example", * productName: "Example product", * provisioningArtifactName: "Example version", * provisioningParameters: [{ * key: "foo", * value: "bar", * }], * tags: { * foo: "bar", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import `aws_servicecatalog_provisioned_product` using the provisioned product ID. For example: * * ```sh * $ pulumi import aws:servicecatalog/provisionedProduct:ProvisionedProduct example pp-dnigbtea24ste * ``` */ class ProvisionedProduct extends pulumi.CustomResource { /** * Get an existing ProvisionedProduct 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new ProvisionedProduct(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProvisionedProduct. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === ProvisionedProduct.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acceptLanguage"] = state ? state.acceptLanguage : undefined; resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["cloudwatchDashboardNames"] = state ? state.cloudwatchDashboardNames : undefined; resourceInputs["createdTime"] = state ? state.createdTime : undefined; resourceInputs["ignoreErrors"] = state ? state.ignoreErrors : undefined; resourceInputs["lastProvisioningRecordId"] = state ? state.lastProvisioningRecordId : undefined; resourceInputs["lastRecordId"] = state ? state.lastRecordId : undefined; resourceInputs["lastSuccessfulProvisioningRecordId"] = state ? state.lastSuccessfulProvisioningRecordId : undefined; resourceInputs["launchRoleArn"] = state ? state.launchRoleArn : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["notificationArns"] = state ? state.notificationArns : undefined; resourceInputs["outputs"] = state ? state.outputs : undefined; resourceInputs["pathId"] = state ? state.pathId : undefined; resourceInputs["pathName"] = state ? state.pathName : undefined; resourceInputs["productId"] = state ? state.productId : undefined; resourceInputs["productName"] = state ? state.productName : undefined; resourceInputs["provisioningArtifactId"] = state ? state.provisioningArtifactId : undefined; resourceInputs["provisioningArtifactName"] = state ? state.provisioningArtifactName : undefined; resourceInputs["provisioningParameters"] = state ? state.provisioningParameters : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["retainPhysicalResources"] = state ? state.retainPhysicalResources : undefined; resourceInputs["stackSetProvisioningPreferences"] = state ? state.stackSetProvisioningPreferences : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["statusMessage"] = state ? state.statusMessage : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; resourceInputs["acceptLanguage"] = args ? args.acceptLanguage : undefined; resourceInputs["ignoreErrors"] = args ? args.ignoreErrors : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["notificationArns"] = args ? args.notificationArns : undefined; resourceInputs["pathId"] = args ? args.pathId : undefined; resourceInputs["pathName"] = args ? args.pathName : undefined; resourceInputs["productId"] = args ? args.productId : undefined; resourceInputs["productName"] = args ? args.productName : undefined; resourceInputs["provisioningArtifactId"] = args ? args.provisioningArtifactId : undefined; resourceInputs["provisioningArtifactName"] = args ? args.provisioningArtifactName : undefined; resourceInputs["provisioningParameters"] = args ? args.provisioningParameters : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["retainPhysicalResources"] = args ? args.retainPhysicalResources : undefined; resourceInputs["stackSetProvisioningPreferences"] = args ? args.stackSetProvisioningPreferences : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["cloudwatchDashboardNames"] = undefined /*out*/; resourceInputs["createdTime"] = undefined /*out*/; resourceInputs["lastProvisioningRecordId"] = undefined /*out*/; resourceInputs["lastRecordId"] = undefined /*out*/; resourceInputs["lastSuccessfulProvisioningRecordId"] = undefined /*out*/; resourceInputs["launchRoleArn"] = undefined /*out*/; resourceInputs["outputs"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["statusMessage"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["type"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProvisionedProduct.__pulumiType, name, resourceInputs, opts); } } exports.ProvisionedProduct = ProvisionedProduct; /** @internal */ ProvisionedProduct.__pulumiType = 'aws:servicecatalog/provisionedProduct:ProvisionedProduct'; //# sourceMappingURL=provisionedProduct.js.map