UNPKG

@pulumi/fastly

Version:

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

190 lines • 10.9 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, { ...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?.acls; resourceInputs["activate"] = state?.activate; resourceInputs["activeVersion"] = state?.activeVersion; resourceInputs["backends"] = state?.backends; resourceInputs["cacheSettings"] = state?.cacheSettings; resourceInputs["clonedVersion"] = state?.clonedVersion; resourceInputs["comment"] = state?.comment; resourceInputs["conditions"] = state?.conditions; resourceInputs["defaultHost"] = state?.defaultHost; resourceInputs["defaultTtl"] = state?.defaultTtl; resourceInputs["dictionaries"] = state?.dictionaries; resourceInputs["directors"] = state?.directors; resourceInputs["domains"] = state?.domains; resourceInputs["dynamicsnippets"] = state?.dynamicsnippets; resourceInputs["forceDestroy"] = state?.forceDestroy; resourceInputs["forceRefresh"] = state?.forceRefresh; resourceInputs["gzips"] = state?.gzips; resourceInputs["headers"] = state?.headers; resourceInputs["healthchecks"] = state?.healthchecks; resourceInputs["http3"] = state?.http3; resourceInputs["imageOptimizerDefaultSettings"] = state?.imageOptimizerDefaultSettings; resourceInputs["imported"] = state?.imported; resourceInputs["loggingBigqueries"] = state?.loggingBigqueries; resourceInputs["loggingBlobstorages"] = state?.loggingBlobstorages; resourceInputs["loggingCloudfiles"] = state?.loggingCloudfiles; resourceInputs["loggingDatadogs"] = state?.loggingDatadogs; resourceInputs["loggingDigitaloceans"] = state?.loggingDigitaloceans; resourceInputs["loggingElasticsearches"] = state?.loggingElasticsearches; resourceInputs["loggingFtps"] = state?.loggingFtps; resourceInputs["loggingGcs"] = state?.loggingGcs; resourceInputs["loggingGooglepubsubs"] = state?.loggingGooglepubsubs; resourceInputs["loggingGrafanacloudlogs"] = state?.loggingGrafanacloudlogs; resourceInputs["loggingHerokus"] = state?.loggingHerokus; resourceInputs["loggingHoneycombs"] = state?.loggingHoneycombs; resourceInputs["loggingHttps"] = state?.loggingHttps; resourceInputs["loggingKafkas"] = state?.loggingKafkas; resourceInputs["loggingKineses"] = state?.loggingKineses; resourceInputs["loggingLogentries"] = state?.loggingLogentries; resourceInputs["loggingLogglies"] = state?.loggingLogglies; resourceInputs["loggingLogshuttles"] = state?.loggingLogshuttles; resourceInputs["loggingNewrelicotlps"] = state?.loggingNewrelicotlps; resourceInputs["loggingNewrelics"] = state?.loggingNewrelics; resourceInputs["loggingOpenstacks"] = state?.loggingOpenstacks; resourceInputs["loggingPapertrails"] = state?.loggingPapertrails; resourceInputs["loggingS3s"] = state?.loggingS3s; resourceInputs["loggingScalyrs"] = state?.loggingScalyrs; resourceInputs["loggingSftps"] = state?.loggingSftps; resourceInputs["loggingSplunks"] = state?.loggingSplunks; resourceInputs["loggingSumologics"] = state?.loggingSumologics; resourceInputs["loggingSyslogs"] = state?.loggingSyslogs; resourceInputs["name"] = state?.name; resourceInputs["productEnablement"] = state?.productEnablement; resourceInputs["rateLimiters"] = state?.rateLimiters; resourceInputs["requestSettings"] = state?.requestSettings; resourceInputs["responseObjects"] = state?.responseObjects; resourceInputs["reuse"] = state?.reuse; resourceInputs["snippets"] = state?.snippets; resourceInputs["stage"] = state?.stage; resourceInputs["stagedVersion"] = state?.stagedVersion; resourceInputs["staleIfError"] = state?.staleIfError; resourceInputs["staleIfErrorTtl"] = state?.staleIfErrorTtl; resourceInputs["vcls"] = state?.vcls; resourceInputs["versionComment"] = state?.versionComment; } else { const args = argsOrState; resourceInputs["acls"] = args?.acls; resourceInputs["activate"] = args?.activate; resourceInputs["backends"] = args?.backends; resourceInputs["cacheSettings"] = args?.cacheSettings; resourceInputs["comment"] = args?.comment; resourceInputs["conditions"] = args?.conditions; resourceInputs["defaultHost"] = args?.defaultHost; resourceInputs["defaultTtl"] = args?.defaultTtl; resourceInputs["dictionaries"] = args?.dictionaries; resourceInputs["directors"] = args?.directors; resourceInputs["domains"] = args?.domains; resourceInputs["dynamicsnippets"] = args?.dynamicsnippets; resourceInputs["forceDestroy"] = args?.forceDestroy; resourceInputs["gzips"] = args?.gzips; resourceInputs["headers"] = args?.headers; resourceInputs["healthchecks"] = args?.healthchecks; resourceInputs["http3"] = args?.http3; resourceInputs["imageOptimizerDefaultSettings"] = args?.imageOptimizerDefaultSettings; resourceInputs["loggingBigqueries"] = args?.loggingBigqueries; resourceInputs["loggingBlobstorages"] = args?.loggingBlobstorages; resourceInputs["loggingCloudfiles"] = args?.loggingCloudfiles; resourceInputs["loggingDatadogs"] = args?.loggingDatadogs; resourceInputs["loggingDigitaloceans"] = args?.loggingDigitaloceans; resourceInputs["loggingElasticsearches"] = args?.loggingElasticsearches; resourceInputs["loggingFtps"] = args?.loggingFtps; resourceInputs["loggingGcs"] = args?.loggingGcs; resourceInputs["loggingGooglepubsubs"] = args?.loggingGooglepubsubs; resourceInputs["loggingGrafanacloudlogs"] = args?.loggingGrafanacloudlogs; resourceInputs["loggingHerokus"] = args?.loggingHerokus; resourceInputs["loggingHoneycombs"] = args?.loggingHoneycombs; resourceInputs["loggingHttps"] = args?.loggingHttps; resourceInputs["loggingKafkas"] = args?.loggingKafkas; resourceInputs["loggingKineses"] = args?.loggingKineses; resourceInputs["loggingLogentries"] = args?.loggingLogentries; resourceInputs["loggingLogglies"] = args?.loggingLogglies; resourceInputs["loggingLogshuttles"] = args?.loggingLogshuttles; resourceInputs["loggingNewrelicotlps"] = args?.loggingNewrelicotlps; resourceInputs["loggingNewrelics"] = args?.loggingNewrelics; resourceInputs["loggingOpenstacks"] = args?.loggingOpenstacks; resourceInputs["loggingPapertrails"] = args?.loggingPapertrails; resourceInputs["loggingS3s"] = args?.loggingS3s; resourceInputs["loggingScalyrs"] = args?.loggingScalyrs; resourceInputs["loggingSftps"] = args?.loggingSftps; resourceInputs["loggingSplunks"] = args?.loggingSplunks; resourceInputs["loggingSumologics"] = args?.loggingSumologics; resourceInputs["loggingSyslogs"] = args?.loggingSyslogs; resourceInputs["name"] = args?.name; resourceInputs["productEnablement"] = args?.productEnablement; resourceInputs["rateLimiters"] = args?.rateLimiters; resourceInputs["requestSettings"] = args?.requestSettings; resourceInputs["responseObjects"] = args?.responseObjects; resourceInputs["reuse"] = args?.reuse; resourceInputs["snippets"] = args?.snippets; resourceInputs["stage"] = args?.stage; resourceInputs["staleIfError"] = args?.staleIfError; resourceInputs["staleIfErrorTtl"] = args?.staleIfErrorTtl; resourceInputs["vcls"] = args?.vcls; resourceInputs["versionComment"] = args?.versionComment; 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