UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

106 lines (105 loc) 3.79 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Using this data source to query the list of available resource quotas within HuaweiCloud. * * > Using an invalid ID to filter the results will not report an error or return an empty list, but will return a quota * list with all usage equal to 0. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = pulumi.output(huaweicloud.Er.getQuotas()); * ``` */ export declare function getQuotas(args?: GetQuotasArgs, opts?: pulumi.InvokeOptions): Promise<GetQuotasResult>; /** * A collection of arguments for invoking getQuotas. */ export interface GetQuotasArgs { /** * The instance ID. */ instanceId?: string; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; /** * The route table ID. */ routeTableId?: string; /** * The quota type to be queried. * The valid values are as follows: * + **er_instance**: Quotas and usage for enterprise router instances. * + **dc_attachment**: Quotas and usage for DC attachment. * + **vpc_attachment**: Quotas and usage for VPC attachment. * + **vpn_attachment**: Quotas and usage for VPN attachment. * + **peering_attachment**: Quotas and usage for peering attachment. * + **can_attachment**: Quotas and usage for can attachment. * + **route_table**: Quotas and usage for route table. * + **static_route**: Quotas and usage for static route. * + **vpc_er**: The number of enterprise routers that each VPC can access and the current usage. * + **flow_log**: The number of flow logs that can be created per attachment. */ type?: string; } /** * A collection of values returned by getQuotas. */ export interface GetQuotasResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId?: string; /** * All quotas that match the filter parameters. */ readonly quotas: outputs.Er.GetQuotasQuota[]; readonly region: string; readonly routeTableId?: string; /** * The quota type. */ readonly type?: string; } export declare function getQuotasOutput(args?: GetQuotasOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetQuotasResult>; /** * A collection of arguments for invoking getQuotas. */ export interface GetQuotasOutputArgs { /** * The instance ID. */ instanceId?: pulumi.Input<string>; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; /** * The route table ID. */ routeTableId?: pulumi.Input<string>; /** * The quota type to be queried. * The valid values are as follows: * + **er_instance**: Quotas and usage for enterprise router instances. * + **dc_attachment**: Quotas and usage for DC attachment. * + **vpc_attachment**: Quotas and usage for VPC attachment. * + **vpn_attachment**: Quotas and usage for VPN attachment. * + **peering_attachment**: Quotas and usage for peering attachment. * + **can_attachment**: Quotas and usage for can attachment. * + **route_table**: Quotas and usage for route table. * + **static_route**: Quotas and usage for static route. * + **vpc_er**: The number of enterprise routers that each VPC can access and the current usage. * + **flow_log**: The number of flow logs that can be created per attachment. */ type?: pulumi.Input<string>; }