import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a new ApiConfig in a given project and location. * Auto-naming is currently not supported for this resource. */ export declare class Config extends pulumi.CustomResource { /** * Get an existing Config 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): Config; /** * Returns true if the given object is an instance of Config. 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 Config; /** * Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource. */ readonly apiConfigId: pulumi.Output; readonly apiId: pulumi.Output; /** * Created time. */ readonly createTime: pulumi.Output; /** * Optional. Display name. */ readonly displayName: 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; }>; readonly location: pulumi.Output; /** * 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; readonly project: 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 Config 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: ConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Config resource. */ export interface ConfigArgs { /** * Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource. */ apiConfigId: pulumi.Input; apiId: pulumi.Input; /** * Optional. Display name. */ displayName?: 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. */ gatewayServiceAccount?: pulumi.Input; /** * Optional. gRPC service definition files. If specified, openapi_documents must not be included. */ 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 */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: 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. */ managedServiceConfigs?: pulumi.Input[]>; /** * Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included. */ openapiDocuments?: pulumi.Input[]>; project?: pulumi.Input; }