UNPKG

@cloudtoolkit/aws

Version:

The Cloud Toolkit AWS provider for Pulumi provision well-architected solutions in [AWS](https://aws.amazon.com/). With Cloud Toolkit AWS you can use your preferred programming language to manage your platform with Infrastructure as Code.

58 lines 2.6 kB
"use strict"; // *** WARNING: this file was generated by Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Certificate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Certificate is a component that manages an ACM Certificate with the DNS validation. */ class Certificate extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of Certificate. 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'] === Certificate.__pulumiType; } /** * Create a Certificate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { if ((!args || args.domain === undefined) && !opts.urn) { throw new Error("Missing required property 'domain'"); } if ((!args || args.zoneId === undefined) && !opts.urn) { throw new Error("Missing required property 'zoneId'"); } resourceInputs["additionalDomains"] = args ? args.additionalDomains : undefined; resourceInputs["domain"] = args ? args.domain : undefined; resourceInputs["zoneId"] = args ? args.zoneId : undefined; resourceInputs["certificate"] = undefined /*out*/; resourceInputs["dnsRecords"] = undefined /*out*/; resourceInputs["provider"] = undefined /*out*/; } else { resourceInputs["certificate"] = undefined /*out*/; resourceInputs["dnsRecords"] = undefined /*out*/; resourceInputs["provider"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Certificate.__pulumiType, name, resourceInputs, opts, true /*remote*/); } } exports.Certificate = Certificate; /** @internal */ Certificate.__pulumiType = 'cloud-toolkit-aws:commons:Certificate'; //# sourceMappingURL=certificate.js.map