@pulumiverse/cpln
Version:
A Pulumi package for creating and managing Control Plane (cpln) resources.
120 lines • 4.24 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.IpSet = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Manages an org's IpSet.
*
* ## Declaration
*
* ### Required
*
* - **name** (String) Name of the IpSet.
*
* ### Optional
*
* - **description** - (String) Description of the IpSet.
* - **tags** (Map of String) Key-value map of resource tags.
* - **link** (String) The self link of a workload or a GVC.
* - **location** (Block List) (see below).
*
* <a id="nestedblock--location"></a>
*
* ### `location`
*
* Required:
*
* - **name** (String) The self link of a location.
* - **retention_policy** (String) Exactly one of: `keep` and `free`.
*
* ## Outputs
*
* The following attributes are exported:
*
* - **cpln_id** (String) The ID, in GUID format, of the IpSet.
* - **self_link** (String) Full link to this resource. Can be referenced by other resources.
* - **status** (Block List, Max: 1) (see below).
*
* <a id="nestedblock--status"></a>
*
* ### `status`
*
* Status of the IpSet.
*
* Read-Only:
*
* - **ip_address** (Block List) (see below)
* - **error** (String)
* - **warning** (String)
*
* <a id="nestedblock--status--ip_address"></a>
*
* ### `status.ip_address`
*
* - **name** (String)
* - **ip** (String)
* - **id** (String)
* - **state** (String)
* - **created** (String)
*
* ## Example Usage
*/
class IpSet extends pulumi.CustomResource {
/**
* Get an existing IpSet 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 IpSet(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of IpSet. 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'] === IpSet.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["cplnId"] = state ? state.cplnId : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["link"] = state ? state.link : undefined;
resourceInputs["locations"] = state ? state.locations : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["selfLink"] = state ? state.selfLink : undefined;
resourceInputs["statuses"] = state ? state.statuses : undefined;
resourceInputs["tags"] = state ? state.tags : undefined;
}
else {
const args = argsOrState;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["link"] = args ? args.link : undefined;
resourceInputs["locations"] = args ? args.locations : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["cplnId"] = undefined /*out*/;
resourceInputs["selfLink"] = undefined /*out*/;
resourceInputs["statuses"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IpSet.__pulumiType, name, resourceInputs, opts);
}
}
exports.IpSet = IpSet;
/** @internal */
IpSet.__pulumiType = 'cpln:index/ipSet:IpSet';
//# sourceMappingURL=ipSet.js.map