UNPKG

@pulumi/aws

Version:

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

109 lines 5.07 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.ProvisioningArtifact = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Manages a Service Catalog Provisioning Artifact for a specified product. * * > A "provisioning artifact" is also referred to as a "version." * * > **NOTE:** You cannot create a provisioning artifact for a product that was shared with you. * * > **NOTE:** The user or role that use this resource must have the `cloudformation:GetTemplate` IAM policy permission. This policy permission is required when using the `templatePhysicalId` argument. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.servicecatalog.ProvisioningArtifact("example", { * name: "example", * productId: exampleAwsServicecatalogProduct.id, * type: "CLOUD_FORMATION_TEMPLATE", * templateUrl: `https://${exampleAwsS3Bucket.bucketRegionalDomainName}/${exampleAwsS3Object.key}`, * }); * ``` * * ## Import * * Using `pulumi import`, import `aws_servicecatalog_provisioning_artifact` using the provisioning artifact ID and product ID separated by a colon. For example: * * ```sh * $ pulumi import aws:servicecatalog/provisioningArtifact:ProvisioningArtifact example pa-ij2b6lusy6dec:prod-el3an0rma3 * ``` */ class ProvisioningArtifact extends pulumi.CustomResource { /** * Get an existing ProvisioningArtifact 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 ProvisioningArtifact(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ProvisioningArtifact. 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'] === ProvisioningArtifact.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acceptLanguage"] = state?.acceptLanguage; resourceInputs["active"] = state?.active; resourceInputs["createdTime"] = state?.createdTime; resourceInputs["description"] = state?.description; resourceInputs["disableTemplateValidation"] = state?.disableTemplateValidation; resourceInputs["guidance"] = state?.guidance; resourceInputs["name"] = state?.name; resourceInputs["productId"] = state?.productId; resourceInputs["provisioningArtifactId"] = state?.provisioningArtifactId; resourceInputs["region"] = state?.region; resourceInputs["templatePhysicalId"] = state?.templatePhysicalId; resourceInputs["templateUrl"] = state?.templateUrl; resourceInputs["type"] = state?.type; } else { const args = argsOrState; if (args?.productId === undefined && !opts.urn) { throw new Error("Missing required property 'productId'"); } resourceInputs["acceptLanguage"] = args?.acceptLanguage; resourceInputs["active"] = args?.active; resourceInputs["description"] = args?.description; resourceInputs["disableTemplateValidation"] = args?.disableTemplateValidation; resourceInputs["guidance"] = args?.guidance; resourceInputs["name"] = args?.name; resourceInputs["productId"] = args?.productId; resourceInputs["region"] = args?.region; resourceInputs["templatePhysicalId"] = args?.templatePhysicalId; resourceInputs["templateUrl"] = args?.templateUrl; resourceInputs["type"] = args?.type; resourceInputs["createdTime"] = undefined /*out*/; resourceInputs["provisioningArtifactId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProvisioningArtifact.__pulumiType, name, resourceInputs, opts); } } exports.ProvisioningArtifact = ProvisioningArtifact; /** @internal */ ProvisioningArtifact.__pulumiType = 'aws:servicecatalog/provisioningArtifact:ProvisioningArtifact'; //# sourceMappingURL=provisioningArtifact.js.map