@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
85 lines • 3.71 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomizedCfg = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a resource to manage alb customized cfg
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.alb.CustomizedCfg("foo", {
* customizedCfgContent: "proxy_connect_timeout 4s;proxy_request_buffering on;",
* customizedCfgName: "acc-test-cfg1",
* description: "This is a test modify",
* projectName: "default",
* });
* ```
*
* ## Import
*
* AlbCustomizedCfg can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:alb/customizedCfg:CustomizedCfg default ccfg-3cj44nv0jhhxc6c6rrtet****
* ```
*/
class CustomizedCfg extends pulumi.CustomResource {
/**
* Get an existing CustomizedCfg 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 CustomizedCfg(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CustomizedCfg. 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'] === CustomizedCfg.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["customizedCfgContent"] = state ? state.customizedCfgContent : undefined;
resourceInputs["customizedCfgName"] = state ? state.customizedCfgName : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["projectName"] = state ? state.projectName : undefined;
}
else {
const args = argsOrState;
if ((!args || args.customizedCfgContent === undefined) && !opts.urn) {
throw new Error("Missing required property 'customizedCfgContent'");
}
if ((!args || args.customizedCfgName === undefined) && !opts.urn) {
throw new Error("Missing required property 'customizedCfgName'");
}
resourceInputs["customizedCfgContent"] = args ? args.customizedCfgContent : undefined;
resourceInputs["customizedCfgName"] = args ? args.customizedCfgName : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["projectName"] = args ? args.projectName : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CustomizedCfg.__pulumiType, name, resourceInputs, opts);
}
}
exports.CustomizedCfg = CustomizedCfg;
/** @internal */
CustomizedCfg.__pulumiType = 'volcengine:alb/customizedCfg:CustomizedCfg';
//# sourceMappingURL=customizedCfg.js.map