@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
68 lines • 3.06 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.ConfigstoreEntries = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Import
*
* Fastly Config Stores entries can be imported using the corresponding Config Store ID with the `/entries` suffix, e.g.
*
* ```sh
* $ pulumi import fastly:index/configstoreEntries:ConfigstoreEntries example xxxxxxxxxxxxxxxxxxxx/entries
* ```
*/
class ConfigstoreEntries extends pulumi.CustomResource {
/**
* Get an existing ConfigstoreEntries 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 ConfigstoreEntries(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ConfigstoreEntries. 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'] === ConfigstoreEntries.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["entries"] = state ? state.entries : undefined;
resourceInputs["manageEntries"] = state ? state.manageEntries : undefined;
resourceInputs["storeId"] = state ? state.storeId : undefined;
}
else {
const args = argsOrState;
if ((!args || args.entries === undefined) && !opts.urn) {
throw new Error("Missing required property 'entries'");
}
if ((!args || args.storeId === undefined) && !opts.urn) {
throw new Error("Missing required property 'storeId'");
}
resourceInputs["entries"] = args ? args.entries : undefined;
resourceInputs["manageEntries"] = args ? args.manageEntries : undefined;
resourceInputs["storeId"] = args ? args.storeId : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ConfigstoreEntries.__pulumiType, name, resourceInputs, opts);
}
}
exports.ConfigstoreEntries = ConfigstoreEntries;
/** @internal */
ConfigstoreEntries.__pulumiType = 'fastly:index/configstoreEntries:ConfigstoreEntries';
//# sourceMappingURL=configstoreEntries.js.map