diff --git a/packages/client-config/src/client-config-contributor/client_config_contributor_v1.ts b/packages/client-config/src/client-config-contributor/client_config_contributor_v1.ts index 4f4c2e8eec..653127fe33 100644 --- a/packages/client-config/src/client-config-contributor/client_config_contributor_v1.ts +++ b/packages/client-config/src/client-config-contributor/client_config_contributor_v1.ts @@ -220,6 +220,7 @@ export class DataClientConfigContributor implements ClientConfigContributor { config.data = { url: graphqlOutput.payload.awsAppsyncApiEndpoint, aws_region: graphqlOutput.payload.awsAppsyncRegion, + api_id: graphqlOutput.payload.awsAppsyncApiId, api_key: graphqlOutput.payload.awsAppsyncApiKey, default_authorization_type: graphqlOutput.payload.awsAppsyncAuthenticationType, diff --git a/packages/client-config/src/client-config-schema/client_config_v1.1.ts b/packages/client-config/src/client-config-schema/client_config_v1.1.ts index 0bce94d1a4..9cbd8cd1f4 100644 --- a/packages/client-config/src/client-config-schema/client_config_v1.1.ts +++ b/packages/client-config/src/client-config-schema/client_config_v1.1.ts @@ -163,6 +163,7 @@ export interface AWSAmplifyBackendOutputs { model_introspection?: { [k: string]: unknown; }; + api_id?: string; api_key?: string; default_authorization_type: AwsAppsyncAuthorizationType; authorization_types: AwsAppsyncAuthorizationType[];