UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

143 lines (142 loc) 3.93 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of apig upstreams * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.apig.getUpstreams({ * gatewayId: "gd13d8c6eq1emkiunq6p0", * ids: [ * "ud18p5krj5ce3htvrd0v0", * "ud18ouitrjp6fhvu61n7g", * ], * }); * ``` */ /** @deprecated volcengine.apig.Upstreams has been deprecated in favor of volcengine.apig.getUpstreams */ export declare function upstreams(args?: UpstreamsArgs, opts?: pulumi.InvokeOptions): Promise<UpstreamsResult>; /** * A collection of arguments for invoking Upstreams. */ export interface UpstreamsArgs { /** * The id of api gateway. */ gatewayId?: string; /** * A list of apig upstream IDs. */ ids?: string[]; /** * The name of apig upstream. This field support fuzzy query. */ name?: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The resource type of apig upstream. Valid values: `Console`, `Ingress`. */ resourceType?: string; /** * The source type of apig upstream. Valid values: `VeFaas`, `ECS`, `FixedIP`, `K8S`, `Nacos`, `Domain`, `AIProvider`, `VeMLP`. */ sourceType?: string; } /** * A collection of values returned by Upstreams. */ export interface UpstreamsResult { /** * The id of api gateway. */ readonly gatewayId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; /** * The name of apig upstream version. */ readonly name?: string; readonly nameRegex?: string; readonly outputFile?: string; /** * The resource type of apig upstream. */ readonly resourceType?: string; /** * The source type of apig upstream. */ readonly sourceType?: string; /** * The total count of query. */ readonly totalCount: number; /** * The collection of query. */ readonly upstreams: outputs.apig.UpstreamsUpstream[]; } /** * Use this data source to query detailed information of apig upstreams * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.apig.getUpstreams({ * gatewayId: "gd13d8c6eq1emkiunq6p0", * ids: [ * "ud18p5krj5ce3htvrd0v0", * "ud18ouitrjp6fhvu61n7g", * ], * }); * ``` */ /** @deprecated volcengine.apig.Upstreams has been deprecated in favor of volcengine.apig.getUpstreams */ export declare function upstreamsOutput(args?: UpstreamsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<UpstreamsResult>; /** * A collection of arguments for invoking Upstreams. */ export interface UpstreamsOutputArgs { /** * The id of api gateway. */ gatewayId?: pulumi.Input<string>; /** * A list of apig upstream IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of apig upstream. This field support fuzzy query. */ name?: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The resource type of apig upstream. Valid values: `Console`, `Ingress`. */ resourceType?: pulumi.Input<string>; /** * The source type of apig upstream. Valid values: `VeFaas`, `ECS`, `FixedIP`, `K8S`, `Nacos`, `Domain`, `AIProvider`, `VeMLP`. */ sourceType?: pulumi.Input<string>; }