UNPKG

@pulumi/fastly

Version:

A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4

63 lines 2.86 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.DomainV1ServiceLink = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Domain service links are for managing versionless domains for services. The link associates an existing service * with an existing domain, but doesn't create or delete either resource. * * If you are managing your versionless domain with a service link, you may not also use a `resourceFastlyDomainV1` block as well. */ class DomainV1ServiceLink extends pulumi.CustomResource { /** * Get an existing DomainV1ServiceLink 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 DomainV1ServiceLink(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of DomainV1ServiceLink. 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'] === DomainV1ServiceLink.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["domainId"] = state?.domainId; resourceInputs["serviceId"] = state?.serviceId; } else { const args = argsOrState; if (args?.domainId === undefined && !opts.urn) { throw new Error("Missing required property 'domainId'"); } if (args?.serviceId === undefined && !opts.urn) { throw new Error("Missing required property 'serviceId'"); } resourceInputs["domainId"] = args?.domainId; resourceInputs["serviceId"] = args?.serviceId; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DomainV1ServiceLink.__pulumiType, name, resourceInputs, opts); } } exports.DomainV1ServiceLink = DomainV1ServiceLink; /** @internal */ DomainV1ServiceLink.__pulumiType = 'fastly:index/domainV1ServiceLink:DomainV1ServiceLink'; //# sourceMappingURL=domainV1ServiceLink.js.map