@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
31 lines • 1.42 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.getMetalPrecreatedIPBlockOutput = exports.getMetalPrecreatedIPBlock = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get CIDR expression for precreated IPv6 and IPv4 blocks in Equinix Metal.
* You can then use the cidrsubnet TF builtin function to derive subnets.
*/
function getMetalPrecreatedIPBlock(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("equinix:index/getMetalPrecreatedIPBlock:GetMetalPrecreatedIPBlock", {
"addressFamily": args.addressFamily,
"facility": args.facility,
"global": args.global,
"metro": args.metro,
"projectId": args.projectId,
"public": args.public,
}, opts);
}
exports.getMetalPrecreatedIPBlock = getMetalPrecreatedIPBlock;
function getMetalPrecreatedIPBlockOutput(args, opts) {
return pulumi.output(args).apply(a => getMetalPrecreatedIPBlock(a, opts));
}
exports.getMetalPrecreatedIPBlockOutput = getMetalPrecreatedIPBlockOutput;
//# sourceMappingURL=getMetalPrecreatedIPBlock.js.map