import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The API Gateway supports cluster registration based on container services (VKE) and container service clusters. Import clusters into the API Gateway instance to use them as Upstream sources, allowing the gateway to retrieve the Service list from the cluster * * ## Import * * ```sh * $ pulumi import volcenginecc:apig/upstreamSource:UpstreamSource example "upstream_source_id" * ``` */ export declare class UpstreamSource extends pulumi.CustomResource { /** * Get an existing UpstreamSource resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: UpstreamSourceState, opts?: pulumi.CustomResourceOptions): UpstreamSource; /** * Returns true if the given object is an instance of UpstreamSource. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is UpstreamSource; /** * Remarks, length limit: 0–253 characters */ readonly comments: pulumi.Output; /** * Creation time */ readonly createdTime: pulumi.Output; /** * Gateway instance ID */ readonly gatewayId: pulumi.Output; /** * Route synchronization. When enabled, the API Gateway automatically monitors changes to Ingress resources and converts them into services, domains, Upstream, and other resources, merging them into the current gateway. Resources converted from Ingress cannot be managed in the console. Only supported for container cluster source type */ readonly ingressSettings: pulumi.Output; /** * Upstream source configuration */ readonly sourceSpec: pulumi.Output; /** * Upstream source type. Options: K8S: Container cluster. Nacos: Registry */ readonly sourceType: pulumi.Output; /** * Import status. Options: Syncing: Importing. SyncedSucceed: Import successful. SyncedFailed: Import failed */ readonly status: pulumi.Output; /** * Import status information. Options: ConnectionFailed: Unable to connect to Nacos cluster. AuthenticationFailed: Authentication failed. PermissionFailed: Unable to connect to Nacos cluster */ readonly statusMessage: pulumi.Output; /** * Update time */ readonly updatedTime: pulumi.Output; /** * Upstream source ID */ readonly upstreamSourceId: pulumi.Output; /** * Specify namespace */ readonly watchNamespaces: pulumi.Output; /** * Create a UpstreamSource resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: UpstreamSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UpstreamSource resources. */ export interface UpstreamSourceState { /** * Remarks, length limit: 0–253 characters */ comments?: pulumi.Input; /** * Creation time */ createdTime?: pulumi.Input; /** * Gateway instance ID */ gatewayId?: pulumi.Input; /** * Route synchronization. When enabled, the API Gateway automatically monitors changes to Ingress resources and converts them into services, domains, Upstream, and other resources, merging them into the current gateway. Resources converted from Ingress cannot be managed in the console. Only supported for container cluster source type */ ingressSettings?: pulumi.Input; /** * Upstream source configuration */ sourceSpec?: pulumi.Input; /** * Upstream source type. Options: K8S: Container cluster. Nacos: Registry */ sourceType?: pulumi.Input; /** * Import status. Options: Syncing: Importing. SyncedSucceed: Import successful. SyncedFailed: Import failed */ status?: pulumi.Input; /** * Import status information. Options: ConnectionFailed: Unable to connect to Nacos cluster. AuthenticationFailed: Authentication failed. PermissionFailed: Unable to connect to Nacos cluster */ statusMessage?: pulumi.Input; /** * Update time */ updatedTime?: pulumi.Input; /** * Upstream source ID */ upstreamSourceId?: pulumi.Input; /** * Specify namespace */ watchNamespaces?: pulumi.Input[]>; } /** * The set of arguments for constructing a UpstreamSource resource. */ export interface UpstreamSourceArgs { /** * Remarks, length limit: 0–253 characters */ comments?: pulumi.Input; /** * Gateway instance ID */ gatewayId: pulumi.Input; /** * Route synchronization. When enabled, the API Gateway automatically monitors changes to Ingress resources and converts them into services, domains, Upstream, and other resources, merging them into the current gateway. Resources converted from Ingress cannot be managed in the console. Only supported for container cluster source type */ ingressSettings?: pulumi.Input; /** * Upstream source configuration */ sourceSpec: pulumi.Input; /** * Upstream source type. Options: K8S: Container cluster. Nacos: Registry */ sourceType: pulumi.Input; /** * Specify namespace */ watchNamespaces?: pulumi.Input[]>; }