@aws-sdk/client-docdb 3.131.0 → 3.135.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.135.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.134.0...v3.135.0) (2022-07-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-docdb:** Enable copy-on-write restore type ([9173056](https://github.com/aws/aws-sdk-js-v3/commit/91730562c1fe693c0270b088e5bd0c02d50372d4))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-docdb
@@ -3873,6 +3873,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
3873
3873
  if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
3874
3874
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
3875
3875
  }
3876
+ if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
3877
+ entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
3878
+ }
3876
3879
  if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
3877
3880
  entries["PromotionTier"] = input.PromotionTier;
3878
3881
  }
@@ -4600,6 +4603,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
4600
4603
  if (input.CACertificateIdentifier !== undefined && input.CACertificateIdentifier !== null) {
4601
4604
  entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
4602
4605
  }
4606
+ if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
4607
+ entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
4608
+ }
4603
4609
  if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
4604
4610
  entries["PromotionTier"] = input.PromotionTier;
4605
4611
  }
@@ -4835,6 +4841,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
4835
4841
  if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4836
4842
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4837
4843
  }
4844
+ if (input.RestoreType !== undefined && input.RestoreType !== null) {
4845
+ entries["RestoreType"] = input.RestoreType;
4846
+ }
4838
4847
  if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
4839
4848
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
4840
4849
  }
@@ -5195,6 +5204,7 @@ const deserializeAws_queryDBCluster = (output, context) => {
5195
5204
  DbClusterResourceId: undefined,
5196
5205
  DBClusterArn: undefined,
5197
5206
  AssociatedRoles: undefined,
5207
+ CloneGroupId: undefined,
5198
5208
  ClusterCreateTime: undefined,
5199
5209
  EnabledCloudwatchLogsExports: undefined,
5200
5210
  DeletionProtection: undefined,
@@ -5301,6 +5311,9 @@ const deserializeAws_queryDBCluster = (output, context) => {
5301
5311
  else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) {
5302
5312
  contents.AssociatedRoles = deserializeAws_queryDBClusterRoles((0, smithy_client_1.getArrayIfSingleItem)(output["AssociatedRoles"]["DBClusterRole"]), context);
5303
5313
  }
5314
+ if (output["CloneGroupId"] !== undefined) {
5315
+ contents.CloneGroupId = (0, smithy_client_1.expectString)(output["CloneGroupId"]);
5316
+ }
5304
5317
  if (output["ClusterCreateTime"] !== undefined) {
5305
5318
  contents.ClusterCreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["ClusterCreateTime"]));
5306
5319
  }
@@ -5765,6 +5778,7 @@ const deserializeAws_queryDBInstance = (output, context) => {
5765
5778
  KmsKeyId: undefined,
5766
5779
  DbiResourceId: undefined,
5767
5780
  CACertificateIdentifier: undefined,
5781
+ CopyTagsToSnapshot: undefined,
5768
5782
  PromotionTier: undefined,
5769
5783
  DBInstanceArn: undefined,
5770
5784
  EnabledCloudwatchLogsExports: undefined,
@@ -5845,6 +5859,9 @@ const deserializeAws_queryDBInstance = (output, context) => {
5845
5859
  if (output["CACertificateIdentifier"] !== undefined) {
5846
5860
  contents.CACertificateIdentifier = (0, smithy_client_1.expectString)(output["CACertificateIdentifier"]);
5847
5861
  }
5862
+ if (output["CopyTagsToSnapshot"] !== undefined) {
5863
+ contents.CopyTagsToSnapshot = (0, smithy_client_1.parseBoolean)(output["CopyTagsToSnapshot"]);
5864
+ }
5848
5865
  if (output["PromotionTier"] !== undefined) {
5849
5866
  contents.PromotionTier = (0, smithy_client_1.strictParseInt32)(output["PromotionTier"]);
5850
5867
  }
@@ -4639,6 +4639,9 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
4639
4639
  if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4640
4640
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4641
4641
  }
4642
+ if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
4643
+ entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
4644
+ }
4642
4645
  if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
4643
4646
  entries["PromotionTier"] = input.PromotionTier;
4644
4647
  }
@@ -5450,6 +5453,9 @@ var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
5450
5453
  if (input.CACertificateIdentifier !== undefined && input.CACertificateIdentifier !== null) {
5451
5454
  entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
5452
5455
  }
5456
+ if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
5457
+ entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
5458
+ }
5453
5459
  if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
5454
5460
  entries["PromotionTier"] = input.PromotionTier;
5455
5461
  }
@@ -5705,6 +5711,9 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
5705
5711
  if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5706
5712
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5707
5713
  }
5714
+ if (input.RestoreType !== undefined && input.RestoreType !== null) {
5715
+ entries["RestoreType"] = input.RestoreType;
5716
+ }
5708
5717
  if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
5709
5718
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
5710
5719
  }
@@ -6113,6 +6122,7 @@ var deserializeAws_queryDBCluster = function (output, context) {
6113
6122
  DbClusterResourceId: undefined,
6114
6123
  DBClusterArn: undefined,
6115
6124
  AssociatedRoles: undefined,
6125
+ CloneGroupId: undefined,
6116
6126
  ClusterCreateTime: undefined,
6117
6127
  EnabledCloudwatchLogsExports: undefined,
6118
6128
  DeletionProtection: undefined,
@@ -6219,6 +6229,9 @@ var deserializeAws_queryDBCluster = function (output, context) {
6219
6229
  else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) {
6220
6230
  contents.AssociatedRoles = deserializeAws_queryDBClusterRoles(__getArrayIfSingleItem(output["AssociatedRoles"]["DBClusterRole"]), context);
6221
6231
  }
6232
+ if (output["CloneGroupId"] !== undefined) {
6233
+ contents.CloneGroupId = __expectString(output["CloneGroupId"]);
6234
+ }
6222
6235
  if (output["ClusterCreateTime"] !== undefined) {
6223
6236
  contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTime(output["ClusterCreateTime"]));
6224
6237
  }
@@ -6683,6 +6696,7 @@ var deserializeAws_queryDBInstance = function (output, context) {
6683
6696
  KmsKeyId: undefined,
6684
6697
  DbiResourceId: undefined,
6685
6698
  CACertificateIdentifier: undefined,
6699
+ CopyTagsToSnapshot: undefined,
6686
6700
  PromotionTier: undefined,
6687
6701
  DBInstanceArn: undefined,
6688
6702
  EnabledCloudwatchLogsExports: undefined,
@@ -6763,6 +6777,9 @@ var deserializeAws_queryDBInstance = function (output, context) {
6763
6777
  if (output["CACertificateIdentifier"] !== undefined) {
6764
6778
  contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]);
6765
6779
  }
6780
+ if (output["CopyTagsToSnapshot"] !== undefined) {
6781
+ contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]);
6782
+ }
6766
6783
  if (output["PromotionTier"] !== undefined) {
6767
6784
  contents.PromotionTier = __strictParseInt32(output["PromotionTier"]);
6768
6785
  }
@@ -1176,6 +1176,10 @@ export interface DBCluster {
1176
1176
  * <p>Provides a list of the Identity and Access Management (IAM) roles that are associated with the cluster. (IAM) roles that are associated with a cluster grant permission for the cluster to access other Amazon Web Services services on your behalf.</p>
1177
1177
  */
1178
1178
  AssociatedRoles?: DBClusterRole[];
1179
+ /**
1180
+ * <p>Identifies the clone group to which the DB cluster is associated.</p>
1181
+ */
1182
+ CloneGroupId?: string;
1179
1183
  /**
1180
1184
  * <p>Specifies the time when the cluster was created, in Universal Coordinated Time
1181
1185
  * (UTC).</p>
@@ -1537,6 +1541,10 @@ export interface CreateDBInstanceMessage {
1537
1541
  * <p>The identifier of the cluster that the instance will belong to.</p>
1538
1542
  */
1539
1543
  DBClusterIdentifier: string | undefined;
1544
+ /**
1545
+ * <p>A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
1546
+ */
1547
+ CopyTagsToSnapshot?: boolean;
1540
1548
  /**
1541
1549
  * <p>A value that specifies the order in which an Amazon DocumentDB replica is promoted to the
1542
1550
  * primary instance after a failure of the existing primary instance.</p>
@@ -1902,6 +1910,10 @@ export interface DBInstance {
1902
1910
  * <p>The identifier of the CA certificate for this DB instance.</p>
1903
1911
  */
1904
1912
  CACertificateIdentifier?: string;
1913
+ /**
1914
+ * <p>A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
1915
+ */
1916
+ CopyTagsToSnapshot?: boolean;
1905
1917
  /**
1906
1918
  * <p>A value that specifies the order in which an Amazon DocumentDB replica is promoted to the
1907
1919
  * primary instance after a failure of the existing primary instance.</p>
@@ -4476,6 +4488,10 @@ export interface ModifyDBInstanceMessage {
4476
4488
  * <p>Indicates the certificate that needs to be associated with the instance.</p>
4477
4489
  */
4478
4490
  CACertificateIdentifier?: string;
4491
+ /**
4492
+ * <p>A value that indicates whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
4493
+ */
4494
+ CopyTagsToSnapshot?: boolean;
4479
4495
  /**
4480
4496
  * <p>A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after a failure of the existing primary instance.</p>
4481
4497
  * <p>Default: 1</p>
@@ -4986,6 +5002,25 @@ export interface RestoreDBClusterToPointInTimeMessage {
4986
5002
  * </ul>
4987
5003
  */
4988
5004
  DBClusterIdentifier: string | undefined;
5005
+ /**
5006
+ * <p>The type of restore to be performed. You can specify one of the following values:</p>
5007
+ * <ul>
5008
+ * <li>
5009
+ * <p>
5010
+ * <code>full-copy</code> - The new DB cluster is restored as a full copy of the
5011
+ * source DB cluster.</p>
5012
+ * </li>
5013
+ * <li>
5014
+ * <p>
5015
+ * <code>copy-on-write</code> - The new DB cluster is restored as a clone of the
5016
+ * source DB cluster.</p>
5017
+ * </li>
5018
+ * </ul>
5019
+ * <p>Constraints: You can't specify <code>copy-on-write</code> if the engine version of the source DB cluster is earlier than 1.11.</p>
5020
+ * <p>If you don't specify a <code>RestoreType</code> value, then the new DB cluster is
5021
+ * restored as a full copy of the source DB cluster.</p>
5022
+ */
5023
+ RestoreType?: string;
4989
5024
  /**
4990
5025
  * <p>The identifier of the source cluster from which to restore.</p>
4991
5026
  * <p>Constraints:</p>
@@ -480,6 +480,8 @@ export interface DBCluster {
480
480
 
481
481
  AssociatedRoles?: DBClusterRole[];
482
482
 
483
+ CloneGroupId?: string;
484
+
483
485
  ClusterCreateTime?: Date;
484
486
 
485
487
  EnabledCloudwatchLogsExports?: string[];
@@ -652,6 +654,8 @@ export interface CreateDBInstanceMessage {
652
654
 
653
655
  DBClusterIdentifier: string | undefined;
654
656
 
657
+ CopyTagsToSnapshot?: boolean;
658
+
655
659
  PromotionTier?: number;
656
660
 
657
661
  EnablePerformanceInsights?: boolean;
@@ -826,6 +830,8 @@ export interface DBInstance {
826
830
 
827
831
  CACertificateIdentifier?: string;
828
832
 
833
+ CopyTagsToSnapshot?: boolean;
834
+
829
835
  PromotionTier?: number;
830
836
 
831
837
  DBInstanceArn?: string;
@@ -2006,6 +2012,8 @@ export interface ModifyDBInstanceMessage {
2006
2012
 
2007
2013
  CACertificateIdentifier?: string;
2008
2014
 
2015
+ CopyTagsToSnapshot?: boolean;
2016
+
2009
2017
  PromotionTier?: number;
2010
2018
 
2011
2019
  EnablePerformanceInsights?: boolean;
@@ -2244,6 +2252,8 @@ export interface RestoreDBClusterToPointInTimeMessage {
2244
2252
 
2245
2253
  DBClusterIdentifier: string | undefined;
2246
2254
 
2255
+ RestoreType?: string;
2256
+
2247
2257
  SourceDBClusterIdentifier: string | undefined;
2248
2258
 
2249
2259
  RestoreToTime?: Date;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-docdb",
3
3
  "description": "AWS SDK for JavaScript Docdb Client for Node.js, Browser and React Native",
4
- "version": "3.131.0",
4
+ "version": "3.135.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",