From c35b7218f429afc977952724aacd4b20c65e56b5 Mon Sep 17 00:00:00 2001
From: awstools Lists all tags on an Amazon RDS resource. For an overview on tagging an Amazon RDS resource,
- * see Tagging Amazon RDS Resources
- * in the Amazon RDS User Guide.
Removes metadata tags from an Amazon RDS resource.
*For an overview on tagging an Amazon RDS resource, - * see Tagging Amazon RDS Resources - * in the Amazon RDS User Guide. - *
+ * see Tagging Amazon RDS Resources in the Amazon RDS User Guide + * or Tagging Amazon Aurora and Amazon RDS Resources in the Amazon Aurora User Guide. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-rds/src/commands/SwitchoverGlobalClusterCommand.ts b/clients/client-rds/src/commands/SwitchoverGlobalClusterCommand.ts index be502241462a..592bf045429d 100644 --- a/clients/client-rds/src/commands/SwitchoverGlobalClusterCommand.ts +++ b/clients/client-rds/src/commands/SwitchoverGlobalClusterCommand.ts @@ -80,6 +80,12 @@ export interface SwitchoverGlobalClusterCommandOutput extends SwitchoverGlobalCl * // ToDbClusterArn: "STRING_VALUE", * // IsDataLossAllowed: true || false, * // }, + * // TagList: [ // TagList + * // { // Tag + * // Key: "STRING_VALUE", + * // Value: "STRING_VALUE", + * // }, + * // ], * // }, * // }; * diff --git a/clients/client-rds/src/models/models_0.ts b/clients/client-rds/src/models/models_0.ts index 851941cad241..3140a30f72e6 100644 --- a/clients/client-rds/src/models/models_0.ts +++ b/clients/client-rds/src/models/models_0.ts @@ -771,37 +771,9 @@ export interface ApplyPendingMaintenanceActionMessage { /** *The pending maintenance action to apply to this resource.
- *Valid Values:
- *
- * ca-certificate-rotation
- *
- * db-upgrade
- *
- * hardware-maintenance
- *
- * os-upgrade
- *
- * system-update
- *
For more information about these actions, see - * Maintenance actions for Amazon Aurora or - * Maintenance actions for Amazon RDS.
+ *Valid Values: system-update
, db-upgrade
,
+ * hardware-maintenance
, ca-certificate-rotation
+ *
The type of pending maintenance action that is available for the resource.
*For more information about maintenance actions, see Maintaining a DB instance.
- *Valid Values:
- *
- * ca-certificate-rotation
- *
- * db-upgrade
- *
- * hardware-maintenance
- *
- * os-upgrade
- *
- * system-update
- *
For more information about these actions, see - * Maintenance actions for Amazon Aurora or - * Maintenance actions for Amazon RDS.
+ *Valid Values: system-update | db-upgrade | hardware-maintenance | ca-certificate-rotation
+ *
Tags to assign to the global cluster.
+ * @public + */ + Tags?: Tag[]; } /** @@ -12442,6 +12391,16 @@ export interface GlobalCluster { * @public */ FailoverState?: FailoverState; + + /** + *A list of tags.
+ *For more information, see + * Tagging Amazon RDS resources in the Amazon RDS User Guide or + * Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide. + *
+ * @public + */ + TagList?: Tag[]; } /** diff --git a/clients/client-rds/src/protocols/Aws_query.ts b/clients/client-rds/src/protocols/Aws_query.ts index b9e5baaa3485..f24cca9ee451 100644 --- a/clients/client-rds/src/protocols/Aws_query.ts +++ b/clients/client-rds/src/protocols/Aws_query.ts @@ -11385,6 +11385,16 @@ const se_CreateGlobalClusterMessage = (input: CreateGlobalClusterMessage, contex if (input[_SE] != null) { entries[_SE] = input[_SE]; } + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } return entries; }; @@ -21289,6 +21299,11 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = if (output[_FSa] != null) { contents[_FSa] = de_FailoverState(output[_FSa], context); } + if (output.TagList === "") { + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); + } return contents; }; diff --git a/codegen/sdk-codegen/aws-models/rds.json b/codegen/sdk-codegen/aws-models/rds.json index 880572f2c822..b81993c16284 100644 --- a/codegen/sdk-codegen/aws-models/rds.json +++ b/codegen/sdk-codegen/aws-models/rds.json @@ -2075,7 +2075,7 @@ "target": "com.amazonaws.rds#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "The pending maintenance action to apply to this resource.
\nValid Values:
\n\n ca-certificate-rotation
\n
\n db-upgrade
\n
\n hardware-maintenance
\n
\n os-upgrade
\n
\n system-update
\n
For more information about these actions, see \n Maintenance actions for Amazon Aurora or \n Maintenance actions for Amazon RDS.
", + "smithy.api#documentation": "The pending maintenance action to apply to this resource.
\nValid Values: system-update
, db-upgrade
, \n hardware-maintenance
, ca-certificate-rotation
\n
Specifies whether to enable storage encryption for the new global database cluster.
\nConstraints:
\nCan't be specified if SourceDBClusterIdentifier
is specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
Tags to assign to the global cluster.
" + } } }, "traits": { @@ -19376,6 +19382,9 @@ "traits": { "smithy.api#documentation": "A data object containing all properties for the current state of an in-process or pending switchover or failover process for this global cluster (Aurora global database).\n This object is empty unless the SwitchoverGlobalCluster
or FailoverGlobalCluster
operation was called on this global cluster.
Lists all tags on an Amazon RDS resource.
\nFor an overview on tagging an Amazon RDS resource, \n see Tagging Amazon RDS Resources \n in the Amazon RDS User Guide.
", + "smithy.api#documentation": "Lists all tags on an Amazon RDS resource.
\nFor an overview on tagging an Amazon RDS resource, \n see Tagging Amazon RDS Resources in the Amazon RDS User Guide\n or Tagging Amazon Aurora and Amazon RDS Resources in the Amazon Aurora User Guide.
", "smithy.api#examples": [ { "title": "To list tags on an Amazon RDS resource", @@ -24594,7 +24603,7 @@ "Action": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "The type of pending maintenance action that is available for the resource.
\nFor more information about maintenance actions, see Maintaining a DB instance.
\nValid Values:
\n\n ca-certificate-rotation
\n
\n db-upgrade
\n
\n hardware-maintenance
\n
\n os-upgrade
\n
\n system-update
\n
For more information about these actions, see \n Maintenance actions for Amazon Aurora or \n Maintenance actions for Amazon RDS.
" + "smithy.api#documentation": "The type of pending maintenance action that is available for the resource.
\nFor more information about maintenance actions, see Maintaining a DB instance.
\nValid Values: system-update | db-upgrade | hardware-maintenance | ca-certificate-rotation
\n
Removes metadata tags from an Amazon RDS resource.
\nFor an overview on tagging an Amazon RDS resource, \n see Tagging Amazon RDS Resources \n in the Amazon RDS User Guide.\n
", + "smithy.api#documentation": "Removes metadata tags from an Amazon RDS resource.
\nFor an overview on tagging an Amazon RDS resource, \n see Tagging Amazon RDS Resources in the Amazon RDS User Guide\n or Tagging Amazon Aurora and Amazon RDS Resources in the Amazon Aurora User Guide.
", "smithy.api#examples": [ { "title": "To remove tags from a resource",