Skip to content

Commit

Permalink
feat(client-redshift-serverless): Update Redshift Serverless List Sch…
Browse files Browse the repository at this point in the history
…eduled Actions Output Response to include Namespace Name.
  • Loading branch information
awstools committed May 2, 2024
1 parent 7a4330d commit 044806b
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export interface ListScheduledActionsCommandOutput extends ListScheduledActionsR
* // { // ListScheduledActionsResponse
* // nextToken: "STRING_VALUE",
* // scheduledActions: [ // ScheduledActionsList
* // "STRING_VALUE",
* // { // ScheduledActionAssociation
* // namespaceName: "STRING_VALUE",
* // scheduledActionName: "STRING_VALUE",
* // },
* // ],
* // };
*
Expand Down
33 changes: 25 additions & 8 deletions clients/client-redshift-serverless/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface ConfigParameter {
/**
* <p>The key of the parameter. The
* options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let
* you define performance boundaries. For more information about query monitoring rules and available metrics, see
* <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless">Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
* @public
Expand Down Expand Up @@ -1514,7 +1514,7 @@ export interface CreateWorkgroupRequest {
/**
* <p>An array of parameters to set for advanced control over a database. The
* options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see
* <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless">
* Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
* @public
Expand Down Expand Up @@ -1643,7 +1643,7 @@ export interface Workgroup {
/**
* <p>An array of parameters to set for advanced control over a database. The
* options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let you define performance boundaries.
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let you define performance boundaries.
* For more information about query monitoring rules and available metrics, see <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless"> Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
* @public
*/
Expand Down Expand Up @@ -1674,8 +1674,7 @@ export interface Workgroup {
endpoint?: Endpoint;

/**
* <p>A value that specifies whether the workgroup
* can be accessible from a public network</p>
* <p>A value that specifies whether the workgroup can be accessible from a public network.</p>
* @public
*/
publiclyAccessible?: boolean;
Expand Down Expand Up @@ -2760,6 +2759,24 @@ export interface ListScheduledActionsRequest {
namespaceName?: string;
}

/**
* <p>Contains names of objects associated with a scheduled action.</p>
* @public
*/
export interface ScheduledActionAssociation {
/**
* <p>Name of associated Amazon Redshift Serverless namespace.</p>
* @public
*/
namespaceName?: string;

/**
* <p>Name of associated scheduled action.</p>
* @public
*/
scheduledActionName?: string;
}

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

/**
* <p>All of the returned scheduled action objects.</p>
* <p>All of the returned scheduled action association objects.</p>
* @public
*/
scheduledActions?: string[];
scheduledActions?: ScheduledActionAssociation[];
}

/**
Expand Down Expand Up @@ -3734,7 +3751,7 @@ export interface UpdateWorkgroupRequest {
/**
* <p>An array of parameters to set for advanced control over a database. The
* options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let you
* <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let you
* define performance boundaries. For more information about query monitoring rules and available metrics, see
* <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless">
* Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3021,6 +3021,8 @@ const de_Schedule = (output: any, context: __SerdeContext): Schedule => {
return { $unknown: Object.entries(output)[0] };
};

// de_ScheduledActionAssociation omitted.

/**
* deserializeAws_json1_1ScheduledActionResponse
*/
Expand Down
34 changes: 27 additions & 7 deletions codegen/sdk-codegen/aws-models/redshift-serverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"parameterKey": {
"target": "com.amazonaws.redshiftserverless#ParameterKey",
"traits": {
"smithy.api#documentation": "<p>The key of the parameter. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let \n you define performance boundaries. For more information about query monitoring rules and available metrics, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\">Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
"smithy.api#documentation": "<p>The key of the parameter. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let \n you define performance boundaries. For more information about query monitoring rules and available metrics, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\">Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
}
},
"parameterValue": {
Expand Down Expand Up @@ -951,7 +951,7 @@
"configParameters": {
"target": "com.amazonaws.redshiftserverless#ConfigParameterList",
"traits": {
"smithy.api#documentation": "<p>An array of parameters to set for advanced control over a database. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\">\n Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
"smithy.api#documentation": "<p>An array of parameters to set for advanced control over a database. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\">\n Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
}
},
"securityGroupIds": {
Expand Down Expand Up @@ -2855,7 +2855,7 @@
"scheduledActions": {
"target": "com.amazonaws.redshiftserverless#ScheduledActionsList",
"traits": {
"smithy.api#documentation": "<p>All of the returned scheduled action objects.</p>"
"smithy.api#documentation": "<p>All of the returned scheduled action association objects.</p>"
}
}
},
Expand Down Expand Up @@ -5081,6 +5081,26 @@
"smithy.api#documentation": "<p>The schedule of when Amazon Redshift Serverless should run the scheduled action.</p>"
}
},
"com.amazonaws.redshiftserverless#ScheduledActionAssociation": {
"type": "structure",
"members": {
"namespaceName": {
"target": "com.amazonaws.redshiftserverless#NamespaceName",
"traits": {
"smithy.api#documentation": "<p>Name of associated Amazon Redshift Serverless namespace.</p>"
}
},
"scheduledActionName": {
"target": "com.amazonaws.redshiftserverless#ScheduledActionName",
"traits": {
"smithy.api#documentation": "<p>Name of associated scheduled action.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains names of objects associated with a scheduled action.</p>"
}
},
"com.amazonaws.redshiftserverless#ScheduledActionName": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -6463,7 +6483,7 @@
"configParameters": {
"target": "com.amazonaws.redshiftserverless#ConfigParameterList",
"traits": {
"smithy.api#documentation": "<p>An array of parameters to set for advanced control over a database. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let you \n define performance boundaries. For more information about query monitoring rules and available metrics, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\"> \n Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
"smithy.api#documentation": "<p>An array of parameters to set for advanced control over a database. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let you \n define performance boundaries. For more information about query monitoring rules and available metrics, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\"> \n Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
}
},
"publiclyAccessible": {
Expand Down Expand Up @@ -6782,7 +6802,7 @@
"configParameters": {
"target": "com.amazonaws.redshiftserverless#ConfigParameterList",
"traits": {
"smithy.api#documentation": "<p>An array of parameters to set for advanced control over a database. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, and query monitoring metrics that let you define performance boundaries. \n For more information about query monitoring rules and available metrics, see <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\"> Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
"smithy.api#documentation": "<p>An array of parameters to set for advanced control over a database. The\n options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_user_activity_logging</code>,\n <code>query_group</code>, <code>search_path</code>, <code>require_ssl</code>, <code>use_fips_ssl</code>, and query monitoring metrics that let you define performance boundaries. \n For more information about query monitoring rules and available metrics, see <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless\"> Query monitoring metrics for Amazon Redshift Serverless</a>.</p>"
}
},
"securityGroupIds": {
Expand Down Expand Up @@ -6812,7 +6832,7 @@
"publiclyAccessible": {
"target": "smithy.api#Boolean",
"traits": {
"smithy.api#documentation": "<p>A value that specifies whether the workgroup \n can be accessible from a public network</p>"
"smithy.api#documentation": "<p>A value that specifies whether the workgroup can be accessible from a public network.</p>"
}
},
"creationDate": {
Expand Down

0 comments on commit 044806b

Please sign in to comment.