ApiKeyConfig
import type { ApiKeyConfig } from "https://googleapis.deno.dev/v1/ces:v1.ts";Configurations for authentication with API key.
interface ApiKeyConfig {
apiKeySecretVersion?: string;
keyName?: string;
requestLocation?: "REQUEST_LOCATION_UNSPECIFIED" | "HEADER" | "QUERY_STRING";
}§Properties
§
apiKeySecretVersion?: string
[src]Required. The name of the SecretManager secret version resource storing
the API key. Format:
projects/{project}/secrets/{secret}/versions/{version} Note: You should
grant roles/secretmanager.secretAccessor role to the CES service agent
service-@gcp-sa-ces.iam.gserviceaccount.com.
§
keyName?: string
[src]Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name.