UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

140 lines (139 loc) 4.33 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * BgpRouteMap data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up bgp route map by its ID. * const scmBgpRouteMapDs = scm.getBgpRouteMap({ * id: "f2ffd626-e92d-4de6-8ac1-37742fe80fb9", * }); * export const bgpRouteMapDataSourceResults = { * id: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.id), * name: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.name), * routeMap: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.routeMaps), * folder: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.folder), * }; * ``` */ export declare function getBgpRouteMap(args: GetBgpRouteMapArgs, opts?: pulumi.InvokeOptions): Promise<GetBgpRouteMapResult>; /** * A collection of arguments for invoking getBgpRouteMap. */ export interface GetBgpRouteMapArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: string; /** * UUID of the resource */ id: string; /** * Name */ name?: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: string; } /** * A collection of values returned by getBgpRouteMap. */ export interface GetBgpRouteMapResult { /** * Description */ readonly description: string; /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly device: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: string; /** * UUID of the resource */ readonly id: string; /** * Name */ readonly name: string; /** * Route map */ readonly routeMaps: outputs.GetBgpRouteMapRouteMap[]; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: string; readonly tfid: string; } /** * BgpRouteMap data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up bgp route map by its ID. * const scmBgpRouteMapDs = scm.getBgpRouteMap({ * id: "f2ffd626-e92d-4de6-8ac1-37742fe80fb9", * }); * export const bgpRouteMapDataSourceResults = { * id: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.id), * name: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.name), * routeMap: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.routeMaps), * folder: scmBgpRouteMapDs.then(scmBgpRouteMapDs => scmBgpRouteMapDs.folder), * }; * ``` */ export declare function getBgpRouteMapOutput(args: GetBgpRouteMapOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBgpRouteMapResult>; /** * A collection of arguments for invoking getBgpRouteMap. */ export interface GetBgpRouteMapOutputArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * UUID of the resource */ id: pulumi.Input<string>; /** * Name */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; }