UNPKG

@pulumi/fastly

Version:

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

193 lines • 13.3 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.ServiceVcl = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * Fastly Services can be imported using their service ID, e.g. * * ```sh * $ pulumi import fastly:index/serviceVcl:ServiceVcl demo xxxxxxxxxxxxxxxxxxxx * ``` * * By default, either the active version will be imported, or the latest version if no version is active. * * Alternatively, a specific version of the service can be selected by appending an `@` followed by the version number to the service ID, e.g. * * ```sh * $ pulumi import fastly:index/serviceVcl:ServiceVcl demo xxxxxxxxxxxxxxxxxxxx@2 * ``` */ class ServiceVcl extends pulumi.CustomResource { /** * Get an existing ServiceVcl 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 ServiceVcl(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ServiceVcl. 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'] === ServiceVcl.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acls"] = state ? state.acls : undefined; resourceInputs["activate"] = state ? state.activate : undefined; resourceInputs["activeVersion"] = state ? state.activeVersion : undefined; resourceInputs["backends"] = state ? state.backends : undefined; resourceInputs["cacheSettings"] = state ? state.cacheSettings : undefined; resourceInputs["clonedVersion"] = state ? state.clonedVersion : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["conditions"] = state ? state.conditions : undefined; resourceInputs["defaultHost"] = state ? state.defaultHost : undefined; resourceInputs["defaultTtl"] = state ? state.defaultTtl : undefined; resourceInputs["dictionaries"] = state ? state.dictionaries : undefined; resourceInputs["directors"] = state ? state.directors : undefined; resourceInputs["domains"] = state ? state.domains : undefined; resourceInputs["dynamicsnippets"] = state ? state.dynamicsnippets : undefined; resourceInputs["forceDestroy"] = state ? state.forceDestroy : undefined; resourceInputs["forceRefresh"] = state ? state.forceRefresh : undefined; resourceInputs["gzips"] = state ? state.gzips : undefined; resourceInputs["headers"] = state ? state.headers : undefined; resourceInputs["healthchecks"] = state ? state.healthchecks : undefined; resourceInputs["http3"] = state ? state.http3 : undefined; resourceInputs["imageOptimizerDefaultSettings"] = state ? state.imageOptimizerDefaultSettings : undefined; resourceInputs["imported"] = state ? state.imported : undefined; resourceInputs["loggingBigqueries"] = state ? state.loggingBigqueries : undefined; resourceInputs["loggingBlobstorages"] = state ? state.loggingBlobstorages : undefined; resourceInputs["loggingCloudfiles"] = state ? state.loggingCloudfiles : undefined; resourceInputs["loggingDatadogs"] = state ? state.loggingDatadogs : undefined; resourceInputs["loggingDigitaloceans"] = state ? state.loggingDigitaloceans : undefined; resourceInputs["loggingElasticsearches"] = state ? state.loggingElasticsearches : undefined; resourceInputs["loggingFtps"] = state ? state.loggingFtps : undefined; resourceInputs["loggingGcs"] = state ? state.loggingGcs : undefined; resourceInputs["loggingGooglepubsubs"] = state ? state.loggingGooglepubsubs : undefined; resourceInputs["loggingGrafanacloudlogs"] = state ? state.loggingGrafanacloudlogs : undefined; resourceInputs["loggingHerokus"] = state ? state.loggingHerokus : undefined; resourceInputs["loggingHoneycombs"] = state ? state.loggingHoneycombs : undefined; resourceInputs["loggingHttps"] = state ? state.loggingHttps : undefined; resourceInputs["loggingKafkas"] = state ? state.loggingKafkas : undefined; resourceInputs["loggingKineses"] = state ? state.loggingKineses : undefined; resourceInputs["loggingLogentries"] = state ? state.loggingLogentries : undefined; resourceInputs["loggingLogglies"] = state ? state.loggingLogglies : undefined; resourceInputs["loggingLogshuttles"] = state ? state.loggingLogshuttles : undefined; resourceInputs["loggingNewrelicotlps"] = state ? state.loggingNewrelicotlps : undefined; resourceInputs["loggingNewrelics"] = state ? state.loggingNewrelics : undefined; resourceInputs["loggingOpenstacks"] = state ? state.loggingOpenstacks : undefined; resourceInputs["loggingPapertrails"] = state ? state.loggingPapertrails : undefined; resourceInputs["loggingS3s"] = state ? state.loggingS3s : undefined; resourceInputs["loggingScalyrs"] = state ? state.loggingScalyrs : undefined; resourceInputs["loggingSftps"] = state ? state.loggingSftps : undefined; resourceInputs["loggingSplunks"] = state ? state.loggingSplunks : undefined; resourceInputs["loggingSumologics"] = state ? state.loggingSumologics : undefined; resourceInputs["loggingSyslogs"] = state ? state.loggingSyslogs : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["productEnablement"] = state ? state.productEnablement : undefined; resourceInputs["rateLimiters"] = state ? state.rateLimiters : undefined; resourceInputs["requestSettings"] = state ? state.requestSettings : undefined; resourceInputs["responseObjects"] = state ? state.responseObjects : undefined; resourceInputs["reuse"] = state ? state.reuse : undefined; resourceInputs["snippets"] = state ? state.snippets : undefined; resourceInputs["stage"] = state ? state.stage : undefined; resourceInputs["stagedVersion"] = state ? state.stagedVersion : undefined; resourceInputs["staleIfError"] = state ? state.staleIfError : undefined; resourceInputs["staleIfErrorTtl"] = state ? state.staleIfErrorTtl : undefined; resourceInputs["vcls"] = state ? state.vcls : undefined; resourceInputs["versionComment"] = state ? state.versionComment : undefined; } else { const args = argsOrState; if ((!args || args.domains === undefined) && !opts.urn) { throw new Error("Missing required property 'domains'"); } resourceInputs["acls"] = args ? args.acls : undefined; resourceInputs["activate"] = args ? args.activate : undefined; resourceInputs["backends"] = args ? args.backends : undefined; resourceInputs["cacheSettings"] = args ? args.cacheSettings : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["conditions"] = args ? args.conditions : undefined; resourceInputs["defaultHost"] = args ? args.defaultHost : undefined; resourceInputs["defaultTtl"] = args ? args.defaultTtl : undefined; resourceInputs["dictionaries"] = args ? args.dictionaries : undefined; resourceInputs["directors"] = args ? args.directors : undefined; resourceInputs["domains"] = args ? args.domains : undefined; resourceInputs["dynamicsnippets"] = args ? args.dynamicsnippets : undefined; resourceInputs["forceDestroy"] = args ? args.forceDestroy : undefined; resourceInputs["gzips"] = args ? args.gzips : undefined; resourceInputs["headers"] = args ? args.headers : undefined; resourceInputs["healthchecks"] = args ? args.healthchecks : undefined; resourceInputs["http3"] = args ? args.http3 : undefined; resourceInputs["imageOptimizerDefaultSettings"] = args ? args.imageOptimizerDefaultSettings : undefined; resourceInputs["loggingBigqueries"] = args ? args.loggingBigqueries : undefined; resourceInputs["loggingBlobstorages"] = args ? args.loggingBlobstorages : undefined; resourceInputs["loggingCloudfiles"] = args ? args.loggingCloudfiles : undefined; resourceInputs["loggingDatadogs"] = args ? args.loggingDatadogs : undefined; resourceInputs["loggingDigitaloceans"] = args ? args.loggingDigitaloceans : undefined; resourceInputs["loggingElasticsearches"] = args ? args.loggingElasticsearches : undefined; resourceInputs["loggingFtps"] = args ? args.loggingFtps : undefined; resourceInputs["loggingGcs"] = args ? args.loggingGcs : undefined; resourceInputs["loggingGooglepubsubs"] = args ? args.loggingGooglepubsubs : undefined; resourceInputs["loggingGrafanacloudlogs"] = args ? args.loggingGrafanacloudlogs : undefined; resourceInputs["loggingHerokus"] = args ? args.loggingHerokus : undefined; resourceInputs["loggingHoneycombs"] = args ? args.loggingHoneycombs : undefined; resourceInputs["loggingHttps"] = args ? args.loggingHttps : undefined; resourceInputs["loggingKafkas"] = args ? args.loggingKafkas : undefined; resourceInputs["loggingKineses"] = args ? args.loggingKineses : undefined; resourceInputs["loggingLogentries"] = args ? args.loggingLogentries : undefined; resourceInputs["loggingLogglies"] = args ? args.loggingLogglies : undefined; resourceInputs["loggingLogshuttles"] = args ? args.loggingLogshuttles : undefined; resourceInputs["loggingNewrelicotlps"] = args ? args.loggingNewrelicotlps : undefined; resourceInputs["loggingNewrelics"] = args ? args.loggingNewrelics : undefined; resourceInputs["loggingOpenstacks"] = args ? args.loggingOpenstacks : undefined; resourceInputs["loggingPapertrails"] = args ? args.loggingPapertrails : undefined; resourceInputs["loggingS3s"] = args ? args.loggingS3s : undefined; resourceInputs["loggingScalyrs"] = args ? args.loggingScalyrs : undefined; resourceInputs["loggingSftps"] = args ? args.loggingSftps : undefined; resourceInputs["loggingSplunks"] = args ? args.loggingSplunks : undefined; resourceInputs["loggingSumologics"] = args ? args.loggingSumologics : undefined; resourceInputs["loggingSyslogs"] = args ? args.loggingSyslogs : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["productEnablement"] = args ? args.productEnablement : undefined; resourceInputs["rateLimiters"] = args ? args.rateLimiters : undefined; resourceInputs["requestSettings"] = args ? args.requestSettings : undefined; resourceInputs["responseObjects"] = args ? args.responseObjects : undefined; resourceInputs["reuse"] = args ? args.reuse : undefined; resourceInputs["snippets"] = args ? args.snippets : undefined; resourceInputs["stage"] = args ? args.stage : undefined; resourceInputs["staleIfError"] = args ? args.staleIfError : undefined; resourceInputs["staleIfErrorTtl"] = args ? args.staleIfErrorTtl : undefined; resourceInputs["vcls"] = args ? args.vcls : undefined; resourceInputs["versionComment"] = args ? args.versionComment : undefined; resourceInputs["activeVersion"] = undefined /*out*/; resourceInputs["clonedVersion"] = undefined /*out*/; resourceInputs["forceRefresh"] = undefined /*out*/; resourceInputs["imported"] = undefined /*out*/; resourceInputs["stagedVersion"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ServiceVcl.__pulumiType, name, resourceInputs, opts); } } exports.ServiceVcl = ServiceVcl; /** @internal */ ServiceVcl.__pulumiType = 'fastly:index/serviceVcl:ServiceVcl'; //# sourceMappingURL=serviceVcl.js.map