import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates a new ApiConfig in a given project and location. */ export declare class ApiConfig extends pulumi.CustomResource { /** * Get an existing ApiConfig 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): ApiConfig; /** * Returns true if the given object is an instance of ApiConfig. 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 ApiConfig; /** * Created time. */ readonly createTime: pulumi.Output; /** * Optional. Display name. */ readonly displayName: pulumi.Output; /** * Immutable. Gateway specific configuration. */ readonly gatewayConfig: pulumi.Output; /** * Immutable. The Google Cloud IAM Service Account that Gateways serving this config should use to authenticate to other services. This may either be the Service Account's email (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used when the service is a GCP resource such as a Cloud Run Service or an IAP-secured service. */ readonly gatewayServiceAccount: pulumi.Output; /** * Optional. gRPC service definition files. If specified, openapi_documents must not be included. */ readonly grpcServices: pulumi.Output; /** * Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using "last one wins" semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields. */ readonly managedServiceConfigs: pulumi.Output; /** * Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} */ readonly name: pulumi.Output; /** * Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included. */ readonly openapiDocuments: pulumi.Output; /** * The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config). */ readonly serviceConfigId: pulumi.Output; /** * State of the API Config. */ readonly state: pulumi.Output; /** * Updated time. */ readonly updateTime: pulumi.Output; /** * Create a ApiConfig 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: ApiConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a ApiConfig resource. */ export interface ApiConfigArgs { readonly apisId: pulumi.Input; readonly configsId: pulumi.Input; /** * Optional. Display name. */ readonly displayName?: pulumi.Input; /** * Immutable. Gateway specific configuration. */ readonly gatewayConfig?: pulumi.Input; /** * Immutable. The Google Cloud IAM Service Account that Gateways serving this config should use to authenticate to other services. This may either be the Service Account's email (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used when the service is a GCP resource such as a Cloud Run Service or an IAP-secured service. */ readonly gatewayServiceAccount?: pulumi.Input; /** * Optional. gRPC service definition files. If specified, openapi_documents must not be included. */ readonly grpcServices?: pulumi.Input[]>; /** * Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources */ readonly labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; readonly locationsId: pulumi.Input; /** * Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using "last one wins" semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields. */ readonly managedServiceConfigs?: pulumi.Input[]>; /** * Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included. */ readonly openapiDocuments?: pulumi.Input[]>; readonly projectsId: pulumi.Input; }