@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
159 lines • 10.6 kB
JavaScript
;
// *** 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.ServiceCompute = 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/serviceCompute:ServiceCompute 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/serviceCompute:ServiceCompute demo xxxxxxxxxxxxxxxxxxxx@2
* ```
*/
class ServiceCompute extends pulumi.CustomResource {
/**
* Get an existing ServiceCompute 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 ServiceCompute(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ServiceCompute. 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'] === ServiceCompute.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["activate"] = state ? state.activate : undefined;
resourceInputs["activeVersion"] = state ? state.activeVersion : undefined;
resourceInputs["backends"] = state ? state.backends : undefined;
resourceInputs["clonedVersion"] = state ? state.clonedVersion : undefined;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["dictionaries"] = state ? state.dictionaries : undefined;
resourceInputs["domains"] = state ? state.domains : undefined;
resourceInputs["forceDestroy"] = state ? state.forceDestroy : undefined;
resourceInputs["forceRefresh"] = state ? state.forceRefresh : 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["loggingHeroku"] = state ? state.loggingHeroku : 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["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["package"] = state ? state.package : undefined;
resourceInputs["productEnablement"] = state ? state.productEnablement : undefined;
resourceInputs["resourceLinks"] = state ? state.resourceLinks : undefined;
resourceInputs["reuse"] = state ? state.reuse : undefined;
resourceInputs["stage"] = state ? state.stage : undefined;
resourceInputs["stagedVersion"] = state ? state.stagedVersion : 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["activate"] = args ? args.activate : undefined;
resourceInputs["backends"] = args ? args.backends : undefined;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["dictionaries"] = args ? args.dictionaries : undefined;
resourceInputs["domains"] = args ? args.domains : undefined;
resourceInputs["forceDestroy"] = args ? args.forceDestroy : 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["loggingHeroku"] = args ? args.loggingHeroku : 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["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["package"] = args ? args.package : undefined;
resourceInputs["productEnablement"] = args ? args.productEnablement : undefined;
resourceInputs["resourceLinks"] = args ? args.resourceLinks : undefined;
resourceInputs["reuse"] = args ? args.reuse : undefined;
resourceInputs["stage"] = args ? args.stage : 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(ServiceCompute.__pulumiType, name, resourceInputs, opts);
}
}
exports.ServiceCompute = ServiceCompute;
/** @internal */
ServiceCompute.__pulumiType = 'fastly:index/serviceCompute:ServiceCompute';
//# sourceMappingURL=serviceCompute.js.map