UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

70 lines 3.38 kB
"use strict"; // *** 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.getRouteAggregationRuleOutput = exports.getRouteAggregationRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Fabric V4 API compatible data resource that allow user to fetch Equinix Fabric Route Aggregation Rule by UUID * Additional Documentation: * * API: https://developer.equinix.com/catalog/fabricv4#tag/Route-Aggregations * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const raRule = equinix.fabric.getRouteAggregationRule({ * routeAggregationId: "<route_aggregation_id>", * routeAggregationRuleId: "<route_aggregation_rule_id>", * }); * export const routeAggregationRuleName = raRule.then(raRule => raRule.name); * export const routeAggregationRuleDescription = raRule.then(raRule => raRule.description); * export const routeAggregationRuleType = raRule.then(raRule => raRule.type); * export const routeAggregationRulePrefix = raRule.then(raRule => raRule.prefix); * export const routeAggregationRuleState = raRule.then(raRule => raRule.state); * ``` */ function getRouteAggregationRule(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("equinix:fabric/getRouteAggregationRule:getRouteAggregationRule", { "description": args.description, "routeAggregationId": args.routeAggregationId, "routeAggregationRuleId": args.routeAggregationRuleId, }, opts); } exports.getRouteAggregationRule = getRouteAggregationRule; /** * Fabric V4 API compatible data resource that allow user to fetch Equinix Fabric Route Aggregation Rule by UUID * Additional Documentation: * * API: https://developer.equinix.com/catalog/fabricv4#tag/Route-Aggregations * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const raRule = equinix.fabric.getRouteAggregationRule({ * routeAggregationId: "<route_aggregation_id>", * routeAggregationRuleId: "<route_aggregation_rule_id>", * }); * export const routeAggregationRuleName = raRule.then(raRule => raRule.name); * export const routeAggregationRuleDescription = raRule.then(raRule => raRule.description); * export const routeAggregationRuleType = raRule.then(raRule => raRule.type); * export const routeAggregationRulePrefix = raRule.then(raRule => raRule.prefix); * export const routeAggregationRuleState = raRule.then(raRule => raRule.state); * ``` */ function getRouteAggregationRuleOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("equinix:fabric/getRouteAggregationRule:getRouteAggregationRule", { "description": args.description, "routeAggregationId": args.routeAggregationId, "routeAggregationRuleId": args.routeAggregationRuleId, }, opts); } exports.getRouteAggregationRuleOutput = getRouteAggregationRuleOutput; //# sourceMappingURL=getRouteAggregationRule.js.map