UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

126 lines (125 loc) 3.58 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of apig upstream sources * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.apig.getUpstreamSources({ * gatewayId: "gd13d8c6eq1emkiunq6p0", * }); * ``` */ /** @deprecated volcengine.apig.UpstreamSources has been deprecated in favor of volcengine.apig.getUpstreamSources */ export declare function upstreamSources(args?: UpstreamSourcesArgs, opts?: pulumi.InvokeOptions): Promise<UpstreamSourcesResult>; /** * A collection of arguments for invoking UpstreamSources. */ export interface UpstreamSourcesArgs { /** * The enable ingress of apig upstream source. */ enableIngress?: boolean; /** * The id of api gateway. */ gatewayId?: string; /** * The name of nacos source. */ name?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The source type of apig upstream source. Valid values: `K8S`, `Nacos`. */ sourceType?: string; /** * The status of apig upstream source. Valid values: `Syncing`, `SyncedSucceed`, `SyncedFailed`. */ status?: string; } /** * A collection of values returned by UpstreamSources. */ export interface UpstreamSourcesResult { /** * Whether to enable ingress. */ readonly enableIngress?: boolean; /** * The id of api gateway. */ readonly gatewayId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; readonly outputFile?: string; /** * The source type of apig upstream source. */ readonly sourceType?: string; /** * The status of apig upstream source. */ readonly status?: string; /** * The total count of query. */ readonly totalCount: number; /** * The collection of query. */ readonly upstreamSources: outputs.apig.UpstreamSourcesUpstreamSource[]; } /** * Use this data source to query detailed information of apig upstream sources * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.apig.getUpstreamSources({ * gatewayId: "gd13d8c6eq1emkiunq6p0", * }); * ``` */ /** @deprecated volcengine.apig.UpstreamSources has been deprecated in favor of volcengine.apig.getUpstreamSources */ export declare function upstreamSourcesOutput(args?: UpstreamSourcesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<UpstreamSourcesResult>; /** * A collection of arguments for invoking UpstreamSources. */ export interface UpstreamSourcesOutputArgs { /** * The enable ingress of apig upstream source. */ enableIngress?: pulumi.Input<boolean>; /** * The id of api gateway. */ gatewayId?: pulumi.Input<string>; /** * The name of nacos source. */ name?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The source type of apig upstream source. Valid values: `K8S`, `Nacos`. */ sourceType?: pulumi.Input<string>; /** * The status of apig upstream source. Valid values: `Syncing`, `SyncedSucceed`, `SyncedFailed`. */ status?: pulumi.Input<string>; }