From 044806b1bc1cec4d1c98dd116caa3c8831b8fba0 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 2 May 2024 18:33:37 +0000 Subject: [PATCH] feat(client-redshift-serverless): Update Redshift Serverless List Scheduled Actions Output Response to include Namespace Name. --- .../commands/ListScheduledActionsCommand.ts | 5 ++- .../src/models/models_0.ts | 33 +++++++++++++----- .../src/protocols/Aws_json1_1.ts | 2 ++ .../aws-models/redshift-serverless.json | 34 +++++++++++++++---- 4 files changed, 58 insertions(+), 16 deletions(-) diff --git a/clients/client-redshift-serverless/src/commands/ListScheduledActionsCommand.ts b/clients/client-redshift-serverless/src/commands/ListScheduledActionsCommand.ts index df4e27755790..948cebd1c436 100644 --- a/clients/client-redshift-serverless/src/commands/ListScheduledActionsCommand.ts +++ b/clients/client-redshift-serverless/src/commands/ListScheduledActionsCommand.ts @@ -48,7 +48,10 @@ export interface ListScheduledActionsCommandOutput extends ListScheduledActionsR * // { // ListScheduledActionsResponse * // nextToken: "STRING_VALUE", * // scheduledActions: [ // ScheduledActionsList - * // "STRING_VALUE", + * // { // ScheduledActionAssociation + * // namespaceName: "STRING_VALUE", + * // scheduledActionName: "STRING_VALUE", + * // }, * // ], * // }; * diff --git a/clients/client-redshift-serverless/src/models/models_0.ts b/clients/client-redshift-serverless/src/models/models_0.ts index 5f661a9c281b..3de0feb7935f 100644 --- a/clients/client-redshift-serverless/src/models/models_0.ts +++ b/clients/client-redshift-serverless/src/models/models_0.ts @@ -63,7 +63,7 @@ export interface ConfigParameter { /** *

The key of the parameter. The * options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, - * query_group, search_path, require_ssl, and query monitoring metrics that let + * query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let * you define performance boundaries. For more information about query monitoring rules and available metrics, see * Query monitoring metrics for Amazon Redshift Serverless.

* @public @@ -1514,7 +1514,7 @@ export interface CreateWorkgroupRequest { /** *

An array of parameters to set for advanced control over a database. The * options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, - * query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see + * query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see * * Query monitoring metrics for Amazon Redshift Serverless.

* @public @@ -1643,7 +1643,7 @@ export interface Workgroup { /** *

An array of parameters to set for advanced control over a database. The * options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, - * query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. + * query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. * For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

* @public */ @@ -1674,8 +1674,7 @@ export interface Workgroup { endpoint?: Endpoint; /** - *

A value that specifies whether the workgroup - * can be accessible from a public network

+ *

A value that specifies whether the workgroup can be accessible from a public network.

* @public */ publiclyAccessible?: boolean; @@ -2760,6 +2759,24 @@ export interface ListScheduledActionsRequest { namespaceName?: string; } +/** + *

Contains names of objects associated with a scheduled action.

+ * @public + */ +export interface ScheduledActionAssociation { + /** + *

Name of associated Amazon Redshift Serverless namespace.

+ * @public + */ + namespaceName?: string; + + /** + *

Name of associated scheduled action.

+ * @public + */ + scheduledActionName?: string; +} + /** * @public */ @@ -2771,10 +2788,10 @@ export interface ListScheduledActionsResponse { nextToken?: string; /** - *

All of the returned scheduled action objects.

+ *

All of the returned scheduled action association objects.

* @public */ - scheduledActions?: string[]; + scheduledActions?: ScheduledActionAssociation[]; } /** @@ -3734,7 +3751,7 @@ export interface UpdateWorkgroupRequest { /** *

An array of parameters to set for advanced control over a database. The * options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, - * query_group, search_path, require_ssl, and query monitoring metrics that let you + * query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you * define performance boundaries. For more information about query monitoring rules and available metrics, see * * Query monitoring metrics for Amazon Redshift Serverless.

diff --git a/clients/client-redshift-serverless/src/protocols/Aws_json1_1.ts b/clients/client-redshift-serverless/src/protocols/Aws_json1_1.ts index 6dc29c389106..e72b77d968e3 100644 --- a/clients/client-redshift-serverless/src/protocols/Aws_json1_1.ts +++ b/clients/client-redshift-serverless/src/protocols/Aws_json1_1.ts @@ -3021,6 +3021,8 @@ const de_Schedule = (output: any, context: __SerdeContext): Schedule => { return { $unknown: Object.entries(output)[0] }; }; +// de_ScheduledActionAssociation omitted. + /** * deserializeAws_json1_1ScheduledActionResponse */ diff --git a/codegen/sdk-codegen/aws-models/redshift-serverless.json b/codegen/sdk-codegen/aws-models/redshift-serverless.json index 2542a79e4b99..15a2bb6006fc 100644 --- a/codegen/sdk-codegen/aws-models/redshift-serverless.json +++ b/codegen/sdk-codegen/aws-models/redshift-serverless.json @@ -77,7 +77,7 @@ "parameterKey": { "target": "com.amazonaws.redshiftserverless#ParameterKey", "traits": { - "smithy.api#documentation": "

The key of the parameter. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, and query monitoring metrics that let \n you define performance boundaries. For more information about query monitoring rules and available metrics, see \n Query monitoring metrics for Amazon Redshift Serverless.

" + "smithy.api#documentation": "

The key of the parameter. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let \n you define performance boundaries. For more information about query monitoring rules and available metrics, see \n Query monitoring metrics for Amazon Redshift Serverless.

" } }, "parameterValue": { @@ -951,7 +951,7 @@ "configParameters": { "target": "com.amazonaws.redshiftserverless#ConfigParameterList", "traits": { - "smithy.api#documentation": "

An array of parameters to set for advanced control over a database. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.

" + "smithy.api#documentation": "

An array of parameters to set for advanced control over a database. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.

" } }, "securityGroupIds": { @@ -2855,7 +2855,7 @@ "scheduledActions": { "target": "com.amazonaws.redshiftserverless#ScheduledActionsList", "traits": { - "smithy.api#documentation": "

All of the returned scheduled action objects.

" + "smithy.api#documentation": "

All of the returned scheduled action association objects.

" } } }, @@ -5081,6 +5081,26 @@ "smithy.api#documentation": "

The schedule of when Amazon Redshift Serverless should run the scheduled action.

" } }, + "com.amazonaws.redshiftserverless#ScheduledActionAssociation": { + "type": "structure", + "members": { + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", + "traits": { + "smithy.api#documentation": "

Name of associated Amazon Redshift Serverless namespace.

" + } + }, + "scheduledActionName": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionName", + "traits": { + "smithy.api#documentation": "

Name of associated scheduled action.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains names of objects associated with a scheduled action.

" + } + }, "com.amazonaws.redshiftserverless#ScheduledActionName": { "type": "string", "traits": { @@ -5185,7 +5205,7 @@ "com.amazonaws.redshiftserverless#ScheduledActionsList": { "type": "list", "member": { - "target": "com.amazonaws.redshiftserverless#ScheduledActionName" + "target": "com.amazonaws.redshiftserverless#ScheduledActionAssociation" } }, "com.amazonaws.redshiftserverless#SecurityGroupId": { @@ -6463,7 +6483,7 @@ "configParameters": { "target": "com.amazonaws.redshiftserverless#ConfigParameterList", "traits": { - "smithy.api#documentation": "

An array of parameters to set for advanced control over a database. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, and query monitoring metrics that let you \n define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.

" + "smithy.api#documentation": "

An array of parameters to set for advanced control over a database. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you \n define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.

" } }, "publiclyAccessible": { @@ -6782,7 +6802,7 @@ "configParameters": { "target": "com.amazonaws.redshiftserverless#ConfigParameterList", "traits": { - "smithy.api#documentation": "

An array of parameters to set for advanced control over a database. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, and query monitoring metrics that let you define performance boundaries. \n For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

" + "smithy.api#documentation": "

An array of parameters to set for advanced control over a database. The\n options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging,\n query_group, search_path, require_ssl, use_fips_ssl, and query monitoring metrics that let you define performance boundaries. \n For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.

" } }, "securityGroupIds": { @@ -6812,7 +6832,7 @@ "publiclyAccessible": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

A value that specifies whether the workgroup \n can be accessible from a public network

" + "smithy.api#documentation": "

A value that specifies whether the workgroup can be accessible from a public network.

" } }, "creationDate": {