UNPKG

@pulumi/scm

Version:

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

85 lines (84 loc) 2.54 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * BandwidthAllocation data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up an existing Bandwidth Allocation by name * const example = scm.getBandwidthAllocation({ * name: "taiwan", * }); * export const allocatedBandwidth = example.then(example => example.allocatedBandwidth); * export const spnNameList = example.then(example => example.spnNameLists); * export const qosProfile = example.then(example => example.qos?.profile); * ``` */ export declare function getBandwidthAllocation(args?: GetBandwidthAllocationArgs, opts?: pulumi.InvokeOptions): Promise<GetBandwidthAllocationResult>; /** * A collection of arguments for invoking getBandwidthAllocation. */ export interface GetBandwidthAllocationArgs { /** * name of the aggregated bandwidth region */ name?: string; } /** * A collection of values returned by getBandwidthAllocation. */ export interface GetBandwidthAllocationResult { /** * bandwidth to allocate in Mbps */ readonly allocatedBandwidth: number; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * name of the aggregated bandwidth region */ readonly name: string; /** * Qos */ readonly qos: outputs.GetBandwidthAllocationQos; /** * Spn name list */ readonly spnNameLists: string[]; readonly tfid: string; } /** * BandwidthAllocation data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up an existing Bandwidth Allocation by name * const example = scm.getBandwidthAllocation({ * name: "taiwan", * }); * export const allocatedBandwidth = example.then(example => example.allocatedBandwidth); * export const spnNameList = example.then(example => example.spnNameLists); * export const qosProfile = example.then(example => example.qos?.profile); * ``` */ export declare function getBandwidthAllocationOutput(args?: GetBandwidthAllocationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBandwidthAllocationResult>; /** * A collection of arguments for invoking getBandwidthAllocation. */ export interface GetBandwidthAllocationOutputArgs { /** * name of the aggregated bandwidth region */ name?: pulumi.Input<string>; }