From 3d2c2fa67704c2f5bc8ec885b359256f8ba781b0 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 4 Sep 2024 18:18:00 +0000 Subject: [PATCH] feat(client-appsync): Adds new logging levels (INFO and DEBUG) for additional log output control --- .../src/commands/CreateGraphqlApiCommand.ts | 4 +- .../src/commands/GetGraphqlApiCommand.ts | 2 +- .../src/commands/ListGraphqlApisCommand.ts | 2 +- .../src/commands/UpdateGraphqlApiCommand.ts | 4 +- clients/client-appsync/src/models/models_0.ts | 48 +++++++++++++++++-- 5 files changed, 50 insertions(+), 10 deletions(-) diff --git a/clients/client-appsync/src/commands/CreateGraphqlApiCommand.ts b/clients/client-appsync/src/commands/CreateGraphqlApiCommand.ts index 8be6abb5b2cb5..e8580b6398b39 100644 --- a/clients/client-appsync/src/commands/CreateGraphqlApiCommand.ts +++ b/clients/client-appsync/src/commands/CreateGraphqlApiCommand.ts @@ -38,7 +38,7 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse, * const input = { // CreateGraphqlApiRequest * name: "STRING_VALUE", // required * logConfig: { // LogConfig - * fieldLogLevel: "NONE" || "ERROR" || "ALL", // required + * fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required * cloudWatchLogsRoleArn: "STRING_VALUE", // required * excludeVerboseContent: true || false, * }, @@ -106,7 +106,7 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse, * // apiId: "STRING_VALUE", * // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", * // logConfig: { // LogConfig - * // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required + * // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required * // cloudWatchLogsRoleArn: "STRING_VALUE", // required * // excludeVerboseContent: true || false, * // }, diff --git a/clients/client-appsync/src/commands/GetGraphqlApiCommand.ts b/clients/client-appsync/src/commands/GetGraphqlApiCommand.ts index a126a95d2597d..4913d7b7a4477 100644 --- a/clients/client-appsync/src/commands/GetGraphqlApiCommand.ts +++ b/clients/client-appsync/src/commands/GetGraphqlApiCommand.ts @@ -46,7 +46,7 @@ export interface GetGraphqlApiCommandOutput extends GetGraphqlApiResponse, __Met * // apiId: "STRING_VALUE", * // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", * // logConfig: { // LogConfig - * // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required + * // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required * // cloudWatchLogsRoleArn: "STRING_VALUE", // required * // excludeVerboseContent: true || false, * // }, diff --git a/clients/client-appsync/src/commands/ListGraphqlApisCommand.ts b/clients/client-appsync/src/commands/ListGraphqlApisCommand.ts index 6f08e3765c21a..6c10b9144cfaf 100644 --- a/clients/client-appsync/src/commands/ListGraphqlApisCommand.ts +++ b/clients/client-appsync/src/commands/ListGraphqlApisCommand.ts @@ -50,7 +50,7 @@ export interface ListGraphqlApisCommandOutput extends ListGraphqlApisResponse, _ * // apiId: "STRING_VALUE", * // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", * // logConfig: { // LogConfig - * // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required + * // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required * // cloudWatchLogsRoleArn: "STRING_VALUE", // required * // excludeVerboseContent: true || false, * // }, diff --git a/clients/client-appsync/src/commands/UpdateGraphqlApiCommand.ts b/clients/client-appsync/src/commands/UpdateGraphqlApiCommand.ts index 96d13526982bf..8a7381dc7e0ea 100644 --- a/clients/client-appsync/src/commands/UpdateGraphqlApiCommand.ts +++ b/clients/client-appsync/src/commands/UpdateGraphqlApiCommand.ts @@ -39,7 +39,7 @@ export interface UpdateGraphqlApiCommandOutput extends UpdateGraphqlApiResponse, * apiId: "STRING_VALUE", // required * name: "STRING_VALUE", // required * logConfig: { // LogConfig - * fieldLogLevel: "NONE" || "ERROR" || "ALL", // required + * fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required * cloudWatchLogsRoleArn: "STRING_VALUE", // required * excludeVerboseContent: true || false, * }, @@ -102,7 +102,7 @@ export interface UpdateGraphqlApiCommandOutput extends UpdateGraphqlApiResponse, * // apiId: "STRING_VALUE", * // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", * // logConfig: { // LogConfig - * // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required + * // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required * // cloudWatchLogsRoleArn: "STRING_VALUE", // required * // excludeVerboseContent: true || false, * // }, diff --git a/clients/client-appsync/src/models/models_0.ts b/clients/client-appsync/src/models/models_0.ts index 860ab0403fb75..199747a5b97a8 100644 --- a/clients/client-appsync/src/models/models_0.ts +++ b/clients/client-appsync/src/models/models_0.ts @@ -2465,7 +2465,9 @@ export type GraphQLApiIntrospectionConfig = */ export const FieldLogLevel = { ALL: "ALL", + DEBUG: "DEBUG", ERROR: "ERROR", + INFO: "INFO", NONE: "NONE", } as const; @@ -2480,7 +2482,7 @@ export type FieldLogLevel = (typeof FieldLogLevel)[keyof typeof FieldLogLevel]; */ export interface LogConfig { /** - *

The field logging level. Values can be NONE, ERROR, or ALL.

+ *

The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.

*