UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

83 lines 3.92 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.TemDomainValidation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.tem.Domain("main", { * acceptTos: true, * name: "example.com", * }); * const example = new scaleway.tem.DomainValidation("example", { * domainId: main.id, * region: "fr-par", * timeout: 300, * }); * ``` * * @deprecated scaleway.index/temdomainvalidation.TemDomainValidation has been deprecated in favor of scaleway.tem/domainvalidation.DomainValidation */ class TemDomainValidation extends pulumi.CustomResource { /** * Get an existing TemDomainValidation 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) { pulumi.log.warn("TemDomainValidation is deprecated: scaleway.index/temdomainvalidation.TemDomainValidation has been deprecated in favor of scaleway.tem/domainvalidation.DomainValidation"); return new TemDomainValidation(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of TemDomainValidation. 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'] === TemDomainValidation.__pulumiType; } /** @deprecated scaleway.index/temdomainvalidation.TemDomainValidation has been deprecated in favor of scaleway.tem/domainvalidation.DomainValidation */ constructor(name, argsOrState, opts) { pulumi.log.warn("TemDomainValidation is deprecated: scaleway.index/temdomainvalidation.TemDomainValidation has been deprecated in favor of scaleway.tem/domainvalidation.DomainValidation"); let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["domainId"] = state ? state.domainId : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["timeout"] = state ? state.timeout : undefined; resourceInputs["validated"] = state ? state.validated : undefined; } else { const args = argsOrState; if ((!args || args.domainId === undefined) && !opts.urn) { throw new Error("Missing required property 'domainId'"); } resourceInputs["domainId"] = args ? args.domainId : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["timeout"] = args ? args.timeout : undefined; resourceInputs["validated"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TemDomainValidation.__pulumiType, name, resourceInputs, opts); } } exports.TemDomainValidation = TemDomainValidation; /** @internal */ TemDomainValidation.__pulumiType = 'scaleway:index/temDomainValidation:TemDomainValidation'; //# sourceMappingURL=temDomainValidation.js.map