import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * AgentGateway represents the agent gateway resource. * * > **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider. * See Provider Versions for more details on beta resources. * * To get more information about AgentGateway, see: * * * [API documentation](https://cloud.google.com/network-services/docs/reference/network-services/rest/v1beta1/projects.locations.agentGateways) * * ## Example Usage * * ### Network Services Agent Gateway Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.networkservices.AgentGateway("default", { * name: "my-full-agent-gateway", * location: "us-central1", * description: "A full configuration for Agent Gateway", * labels: { * env: "test", * tier: "gold", * }, * protocols: ["MCP"], * googleManaged: { * governedAccessPath: "AGENT_TO_ANYWHERE", * }, * registries: ["//agentregistry.googleapis.com/projects/my-project-name/locations/us-central1"], * networkConfig: { * egress: { * networkAttachment: "projects/my-project-name/regions/us-central1/networkAttachments/my-network-attachment", * }, * }, * }); * ``` * ### Network Services Agent Gateway Client To Agent * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.networkservices.AgentGateway("default", { * name: "my-client-to-agent-gateway", * location: "us-central1", * protocols: ["MCP"], * googleManaged: { * governedAccessPath: "CLIENT_TO_AGENT", * }, * registries: ["//agentregistry.googleapis.com/projects/my-project-name/locations/us-central1"], * }); * ``` * ### Network Services Agent Gateway Self Managed * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.networkservices.AgentGateway("default", { * name: "my-self-managed-agent-gateway", * location: "us-central1", * protocols: ["MCP"], * selfManaged: { * resourceUri: "projects/my-project-name/locations/us-central1/gateways/my-gateway", * }, * registries: ["//agentregistry.googleapis.com/projects/my-project-name/locations/us-central1"], * }); * ``` * * ## Import * * AgentGateway can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/agentGateways/{{name}}` * * `{{project}}/{{location}}/{{name}}` * * `{{location}}/{{name}}` * * When using the `pulumi import` command, AgentGateway can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:networkservices/agentGateway:AgentGateway default projects/{{project}}/locations/{{location}}/agentGateways/{{name}} * $ pulumi import gcp:networkservices/agentGateway:AgentGateway default {{project}}/{{location}}/{{name}} * $ pulumi import gcp:networkservices/agentGateway:AgentGateway default {{location}}/{{name}} * ``` */ export declare class AgentGateway extends pulumi.CustomResource { /** * Get an existing AgentGateway 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?: AgentGatewayState, opts?: pulumi.CustomResourceOptions): AgentGateway; /** * Returns true if the given object is an instance of AgentGateway. 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 AgentGateway; /** * AgentGatewayOutputCard contains informational output-only fields. * Structure is documented below. */ readonly agentGatewayCards: pulumi.Output; /** * The timestamp when the resource was created. */ readonly createTime: pulumi.Output; /** * A free-text description of the resource. Max length 1024 characters. */ readonly description: pulumi.Output; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * Etag of the resource. * If this is provided, it must match the server's etag. If the provided etag * does not match the server's etag, the request will fail with a 409 ABORTED * error. */ readonly etag: pulumi.Output; /** * Configuration for Google Managed deployment mode. * Proxy is orchestrated and managed by GoogleCloud in a tenant project. * Structure is documented below. */ readonly googleManaged: pulumi.Output; /** * Set of label tags associated with the AgentGateway resource. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The location of the agent gateway. */ readonly location: pulumi.Output; /** * Name of the AgentGateway resource. */ readonly name: pulumi.Output; /** * Network configuration for the AgentGateway. * Structure is documented below. */ readonly networkConfig: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * List of protocols supported by an Agent Gateway. * Each value may be one of: `MCP`. */ readonly protocols: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. * Note: Currently limited to project-scoped registries Must be of format * `//agentregistry.googleapis.com/{version}/projects/{{project}}/locations/{{location}}` */ readonly registries: pulumi.Output; /** * Configuration for Self Managed deployment mode. * Attach to existing Application Load Balancers or Secure Web Proxies. * Structure is documented below. */ readonly selfManaged: pulumi.Output; /** * The timestamp when the resource was updated. */ readonly updateTime: pulumi.Output; /** * Create a AgentGateway 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: AgentGatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AgentGateway resources. */ export interface AgentGatewayState { /** * AgentGatewayOutputCard contains informational output-only fields. * Structure is documented below. */ agentGatewayCards?: pulumi.Input[]>; /** * The timestamp when the resource was created. */ createTime?: pulumi.Input; /** * A free-text description of the resource. Max length 1024 characters. */ description?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Etag of the resource. * If this is provided, it must match the server's etag. If the provided etag * does not match the server's etag, the request will fail with a 409 ABORTED * error. */ etag?: pulumi.Input; /** * Configuration for Google Managed deployment mode. * Proxy is orchestrated and managed by GoogleCloud in a tenant project. * Structure is documented below. */ googleManaged?: pulumi.Input; /** * Set of label tags associated with the AgentGateway resource. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the agent gateway. */ location?: pulumi.Input; /** * Name of the AgentGateway resource. */ name?: pulumi.Input; /** * Network configuration for the AgentGateway. * Structure is documented below. */ networkConfig?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * List of protocols supported by an Agent Gateway. * Each value may be one of: `MCP`. */ protocols?: pulumi.Input[]>; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. * Note: Currently limited to project-scoped registries Must be of format * `//agentregistry.googleapis.com/{version}/projects/{{project}}/locations/{{location}}` */ registries?: pulumi.Input[]>; /** * Configuration for Self Managed deployment mode. * Attach to existing Application Load Balancers or Secure Web Proxies. * Structure is documented below. */ selfManaged?: pulumi.Input; /** * The timestamp when the resource was updated. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a AgentGateway resource. */ export interface AgentGatewayArgs { /** * A free-text description of the resource. Max length 1024 characters. */ description?: pulumi.Input; /** * Configuration for Google Managed deployment mode. * Proxy is orchestrated and managed by GoogleCloud in a tenant project. * Structure is documented below. */ googleManaged?: pulumi.Input; /** * Set of label tags associated with the AgentGateway resource. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the agent gateway. */ location: pulumi.Input; /** * Name of the AgentGateway resource. */ name?: pulumi.Input; /** * Network configuration for the AgentGateway. * Structure is documented below. */ networkConfig?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * List of protocols supported by an Agent Gateway. * Each value may be one of: `MCP`. */ protocols: pulumi.Input[]>; /** * A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. * Note: Currently limited to project-scoped registries Must be of format * `//agentregistry.googleapis.com/{version}/projects/{{project}}/locations/{{location}}` */ registries?: pulumi.Input[]>; /** * Configuration for Self Managed deployment mode. * Attach to existing Application Load Balancers or Secure Web Proxies. * Structure is documented below. */ selfManaged?: pulumi.Input; }