@aws-sdk/client-docdb 3.856.0 → 3.858.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/dist-cjs/index.js CHANGED
@@ -3561,6 +3561,13 @@ var se_CreateDBClusterMessage = /* @__PURE__ */ __name((input, context) => {
3561
3561
  if (input[_ST] != null) {
3562
3562
  entries[_ST] = input[_ST];
3563
3563
  }
3564
+ if (input[_SVSC] != null) {
3565
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
3566
+ Object.entries(memberEntries).forEach(([key, value]) => {
3567
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
3568
+ entries[loc] = value;
3569
+ });
3570
+ }
3564
3571
  if (input[_MMUP] != null) {
3565
3572
  entries[_MMUP] = input[_MMUP];
3566
3573
  }
@@ -4409,6 +4416,13 @@ var se_ModifyDBClusterMessage = /* @__PURE__ */ __name((input, context) => {
4409
4416
  if (input[_ST] != null) {
4410
4417
  entries[_ST] = input[_ST];
4411
4418
  }
4419
+ if (input[_SVSC] != null) {
4420
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
4421
+ Object.entries(memberEntries).forEach(([key, value]) => {
4422
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
4423
+ entries[loc] = value;
4424
+ });
4425
+ }
4412
4426
  if (input[_MMUP] != null) {
4413
4427
  entries[_MMUP] = input[_MMUP];
4414
4428
  }
@@ -4751,6 +4765,13 @@ var se_RestoreDBClusterFromSnapshotMessage = /* @__PURE__ */ __name((input, cont
4751
4765
  if (input[_DBCPGN] != null) {
4752
4766
  entries[_DBCPGN] = input[_DBCPGN];
4753
4767
  }
4768
+ if (input[_SVSC] != null) {
4769
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
4770
+ Object.entries(memberEntries).forEach(([key, value]) => {
4771
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
4772
+ entries[loc] = value;
4773
+ });
4774
+ }
4754
4775
  if (input[_ST] != null) {
4755
4776
  entries[_ST] = input[_ST];
4756
4777
  }
@@ -4815,11 +4836,28 @@ var se_RestoreDBClusterToPointInTimeMessage = /* @__PURE__ */ __name((input, con
4815
4836
  if (input[_DP] != null) {
4816
4837
  entries[_DP] = input[_DP];
4817
4838
  }
4839
+ if (input[_SVSC] != null) {
4840
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
4841
+ Object.entries(memberEntries).forEach(([key, value]) => {
4842
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
4843
+ entries[loc] = value;
4844
+ });
4845
+ }
4818
4846
  if (input[_ST] != null) {
4819
4847
  entries[_ST] = input[_ST];
4820
4848
  }
4821
4849
  return entries;
4822
4850
  }, "se_RestoreDBClusterToPointInTimeMessage");
4851
+ var se_ServerlessV2ScalingConfiguration = /* @__PURE__ */ __name((input, context) => {
4852
+ const entries = {};
4853
+ if (input[_MC] != null) {
4854
+ entries[_MC] = (0, import_smithy_client.serializeFloat)(input[_MC]);
4855
+ }
4856
+ if (input[_MCa] != null) {
4857
+ entries[_MCa] = (0, import_smithy_client.serializeFloat)(input[_MCa]);
4858
+ }
4859
+ return entries;
4860
+ }, "se_ServerlessV2ScalingConfiguration");
4823
4861
  var se_SourceIdsList = /* @__PURE__ */ __name((input, context) => {
4824
4862
  const entries = {};
4825
4863
  let counter = 1;
@@ -5198,6 +5236,9 @@ var de_DBCluster = /* @__PURE__ */ __name((output, context) => {
5198
5236
  if (output[_ST] != null) {
5199
5237
  contents[_ST] = (0, import_smithy_client.expectString)(output[_ST]);
5200
5238
  }
5239
+ if (output[_SVSC] != null) {
5240
+ contents[_SVSC] = de_ServerlessV2ScalingConfigurationInfo(output[_SVSC], context);
5241
+ }
5201
5242
  if (output[_MUS] != null) {
5202
5243
  contents[_MUS] = de_ClusterMasterUserSecret(output[_MUS], context);
5203
5244
  }
@@ -5494,6 +5535,9 @@ var de_DBEngineVersion = /* @__PURE__ */ __name((output, context) => {
5494
5535
  if (output[_SCRWR] != null) {
5495
5536
  contents[_SCRWR] = (0, import_smithy_client.parseBoolean)(output[_SCRWR]);
5496
5537
  }
5538
+ if (output[_SVFS] != null) {
5539
+ contents[_SVFS] = de_ServerlessV2FeaturesSupport(output[_SVFS], context);
5540
+ }
5497
5541
  return contents;
5498
5542
  }, "de_DBEngineVersion");
5499
5543
  var de_DBEngineVersionList = /* @__PURE__ */ __name((output, context) => {
@@ -6533,6 +6577,26 @@ var de_RestoreDBClusterToPointInTimeResult = /* @__PURE__ */ __name((output, con
6533
6577
  }
6534
6578
  return contents;
6535
6579
  }, "de_RestoreDBClusterToPointInTimeResult");
6580
+ var de_ServerlessV2FeaturesSupport = /* @__PURE__ */ __name((output, context) => {
6581
+ const contents = {};
6582
+ if (output[_MC] != null) {
6583
+ contents[_MC] = (0, import_smithy_client.strictParseFloat)(output[_MC]);
6584
+ }
6585
+ if (output[_MCa] != null) {
6586
+ contents[_MCa] = (0, import_smithy_client.strictParseFloat)(output[_MCa]);
6587
+ }
6588
+ return contents;
6589
+ }, "de_ServerlessV2FeaturesSupport");
6590
+ var de_ServerlessV2ScalingConfigurationInfo = /* @__PURE__ */ __name((output, context) => {
6591
+ const contents = {};
6592
+ if (output[_MC] != null) {
6593
+ contents[_MC] = (0, import_smithy_client.strictParseFloat)(output[_MC]);
6594
+ }
6595
+ if (output[_MCa] != null) {
6596
+ contents[_MCa] = (0, import_smithy_client.strictParseFloat)(output[_MCa]);
6597
+ }
6598
+ return contents;
6599
+ }, "de_ServerlessV2ScalingConfigurationInfo");
6536
6600
  var de_SharedSnapshotQuotaExceededFault = /* @__PURE__ */ __name((output, context) => {
6537
6601
  const contents = {};
6538
6602
  if (output[_m] != null) {
@@ -6927,6 +6991,8 @@ var _LTTD = "LogTypesToDisable";
6927
6991
  var _LTTE = "LogTypesToEnable";
6928
6992
  var _M = "Marker";
6929
6993
  var _MAZ = "MultiAZ";
6994
+ var _MC = "MinCapacity";
6995
+ var _MCa = "MaxCapacity";
6930
6996
  var _MDBC = "ModifyDBCluster";
6931
6997
  var _MDBCPG = "ModifyDBClusterParameterGroup";
6932
6998
  var _MDBCSA = "ModifyDBClusterSnapshotAttribute";
@@ -7025,6 +7091,8 @@ var _STn = "SnapshotType";
7025
7091
  var _STo = "SourceType";
7026
7092
  var _STt = "StartTime";
7027
7093
  var _STta = "StatusType";
7094
+ var _SVFS = "ServerlessV2FeaturesSupport";
7095
+ var _SVSC = "ServerlessV2ScalingConfiguration";
7028
7096
  var _St = "Status";
7029
7097
  var _Su = "Subnets";
7030
7098
  var _Sub = "Subnet";
@@ -1,6 +1,6 @@
1
1
  import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
3
+ import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
4
4
  import { DocDBServiceException as __BaseException } from "../models/DocDBServiceException";
5
5
  import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, EventSubscriptionQuotaExceededFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidGlobalClusterStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
6
6
  export const se_AddSourceIdentifierToSubscriptionCommand = async (input, context) => {
@@ -2189,6 +2189,13 @@ const se_CreateDBClusterMessage = (input, context) => {
2189
2189
  if (input[_ST] != null) {
2190
2190
  entries[_ST] = input[_ST];
2191
2191
  }
2192
+ if (input[_SVSC] != null) {
2193
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
2194
+ Object.entries(memberEntries).forEach(([key, value]) => {
2195
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
2196
+ entries[loc] = value;
2197
+ });
2198
+ }
2192
2199
  if (input[_MMUP] != null) {
2193
2200
  entries[_MMUP] = input[_MMUP];
2194
2201
  }
@@ -3037,6 +3044,13 @@ const se_ModifyDBClusterMessage = (input, context) => {
3037
3044
  if (input[_ST] != null) {
3038
3045
  entries[_ST] = input[_ST];
3039
3046
  }
3047
+ if (input[_SVSC] != null) {
3048
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
3049
+ Object.entries(memberEntries).forEach(([key, value]) => {
3050
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
3051
+ entries[loc] = value;
3052
+ });
3053
+ }
3040
3054
  if (input[_MMUP] != null) {
3041
3055
  entries[_MMUP] = input[_MMUP];
3042
3056
  }
@@ -3379,6 +3393,13 @@ const se_RestoreDBClusterFromSnapshotMessage = (input, context) => {
3379
3393
  if (input[_DBCPGN] != null) {
3380
3394
  entries[_DBCPGN] = input[_DBCPGN];
3381
3395
  }
3396
+ if (input[_SVSC] != null) {
3397
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
3398
+ Object.entries(memberEntries).forEach(([key, value]) => {
3399
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
3400
+ entries[loc] = value;
3401
+ });
3402
+ }
3382
3403
  if (input[_ST] != null) {
3383
3404
  entries[_ST] = input[_ST];
3384
3405
  }
@@ -3443,11 +3464,28 @@ const se_RestoreDBClusterToPointInTimeMessage = (input, context) => {
3443
3464
  if (input[_DP] != null) {
3444
3465
  entries[_DP] = input[_DP];
3445
3466
  }
3467
+ if (input[_SVSC] != null) {
3468
+ const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context);
3469
+ Object.entries(memberEntries).forEach(([key, value]) => {
3470
+ const loc = `ServerlessV2ScalingConfiguration.${key}`;
3471
+ entries[loc] = value;
3472
+ });
3473
+ }
3446
3474
  if (input[_ST] != null) {
3447
3475
  entries[_ST] = input[_ST];
3448
3476
  }
3449
3477
  return entries;
3450
3478
  };
3479
+ const se_ServerlessV2ScalingConfiguration = (input, context) => {
3480
+ const entries = {};
3481
+ if (input[_MC] != null) {
3482
+ entries[_MC] = __serializeFloat(input[_MC]);
3483
+ }
3484
+ if (input[_MCa] != null) {
3485
+ entries[_MCa] = __serializeFloat(input[_MCa]);
3486
+ }
3487
+ return entries;
3488
+ };
3451
3489
  const se_SourceIdsList = (input, context) => {
3452
3490
  const entries = {};
3453
3491
  let counter = 1;
@@ -3843,6 +3881,9 @@ const de_DBCluster = (output, context) => {
3843
3881
  if (output[_ST] != null) {
3844
3882
  contents[_ST] = __expectString(output[_ST]);
3845
3883
  }
3884
+ if (output[_SVSC] != null) {
3885
+ contents[_SVSC] = de_ServerlessV2ScalingConfigurationInfo(output[_SVSC], context);
3886
+ }
3846
3887
  if (output[_MUS] != null) {
3847
3888
  contents[_MUS] = de_ClusterMasterUserSecret(output[_MUS], context);
3848
3889
  }
@@ -4161,6 +4202,9 @@ const de_DBEngineVersion = (output, context) => {
4161
4202
  if (output[_SCRWR] != null) {
4162
4203
  contents[_SCRWR] = __parseBoolean(output[_SCRWR]);
4163
4204
  }
4205
+ if (output[_SVFS] != null) {
4206
+ contents[_SVFS] = de_ServerlessV2FeaturesSupport(output[_SVFS], context);
4207
+ }
4164
4208
  return contents;
4165
4209
  };
4166
4210
  const de_DBEngineVersionList = (output, context) => {
@@ -5258,6 +5302,26 @@ const de_RestoreDBClusterToPointInTimeResult = (output, context) => {
5258
5302
  }
5259
5303
  return contents;
5260
5304
  };
5305
+ const de_ServerlessV2FeaturesSupport = (output, context) => {
5306
+ const contents = {};
5307
+ if (output[_MC] != null) {
5308
+ contents[_MC] = __strictParseFloat(output[_MC]);
5309
+ }
5310
+ if (output[_MCa] != null) {
5311
+ contents[_MCa] = __strictParseFloat(output[_MCa]);
5312
+ }
5313
+ return contents;
5314
+ };
5315
+ const de_ServerlessV2ScalingConfigurationInfo = (output, context) => {
5316
+ const contents = {};
5317
+ if (output[_MC] != null) {
5318
+ contents[_MC] = __strictParseFloat(output[_MC]);
5319
+ }
5320
+ if (output[_MCa] != null) {
5321
+ contents[_MCa] = __strictParseFloat(output[_MCa]);
5322
+ }
5323
+ return contents;
5324
+ };
5261
5325
  const de_SharedSnapshotQuotaExceededFault = (output, context) => {
5262
5326
  const contents = {};
5263
5327
  if (output[_m] != null) {
@@ -5664,6 +5728,8 @@ const _LTTD = "LogTypesToDisable";
5664
5728
  const _LTTE = "LogTypesToEnable";
5665
5729
  const _M = "Marker";
5666
5730
  const _MAZ = "MultiAZ";
5731
+ const _MC = "MinCapacity";
5732
+ const _MCa = "MaxCapacity";
5667
5733
  const _MDBC = "ModifyDBCluster";
5668
5734
  const _MDBCPG = "ModifyDBClusterParameterGroup";
5669
5735
  const _MDBCSA = "ModifyDBClusterSnapshotAttribute";
@@ -5762,6 +5828,8 @@ const _STn = "SnapshotType";
5762
5828
  const _STo = "SourceType";
5763
5829
  const _STt = "StartTime";
5764
5830
  const _STta = "StatusType";
5831
+ const _SVFS = "ServerlessV2FeaturesSupport";
5832
+ const _SVSC = "ServerlessV2ScalingConfiguration";
5765
5833
  const _St = "Status";
5766
5834
  const _Su = "Subnets";
5767
5835
  const _Sub = "Subnet";
@@ -67,6 +67,10 @@ declare const CreateDBClusterCommand_base: {
67
67
  * DeletionProtection: true || false,
68
68
  * GlobalClusterIdentifier: "STRING_VALUE",
69
69
  * StorageType: "STRING_VALUE",
70
+ * ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
71
+ * MinCapacity: Number("double"),
72
+ * MaxCapacity: Number("double"),
73
+ * },
70
74
  * ManageMasterUserPassword: true || false,
71
75
  * MasterUserSecretKmsKeyId: "STRING_VALUE",
72
76
  * };
@@ -130,6 +134,10 @@ declare const CreateDBClusterCommand_base: {
130
134
  * // ],
131
135
  * // DeletionProtection: true || false,
132
136
  * // StorageType: "STRING_VALUE",
137
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
138
+ * // MinCapacity: Number("double"),
139
+ * // MaxCapacity: Number("double"),
140
+ * // },
133
141
  * // MasterUserSecret: { // ClusterMasterUserSecret
134
142
  * // SecretArn: "STRING_VALUE",
135
143
  * // SecretStatus: "STRING_VALUE",
@@ -100,6 +100,10 @@ declare const DeleteDBClusterCommand_base: {
100
100
  * // ],
101
101
  * // DeletionProtection: true || false,
102
102
  * // StorageType: "STRING_VALUE",
103
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
104
+ * // MinCapacity: Number("double"),
105
+ * // MaxCapacity: Number("double"),
106
+ * // },
103
107
  * // MasterUserSecret: { // ClusterMasterUserSecret
104
108
  * // SecretArn: "STRING_VALUE",
105
109
  * // SecretStatus: "STRING_VALUE",
@@ -114,6 +114,10 @@ declare const DescribeDBClustersCommand_base: {
114
114
  * // ],
115
115
  * // DeletionProtection: true || false,
116
116
  * // StorageType: "STRING_VALUE",
117
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
118
+ * // MinCapacity: Number("double"),
119
+ * // MaxCapacity: Number("double"),
120
+ * // },
117
121
  * // MasterUserSecret: { // ClusterMasterUserSecret
118
122
  * // SecretArn: "STRING_VALUE",
119
123
  * // SecretStatus: "STRING_VALUE",
@@ -80,6 +80,10 @@ declare const DescribeDBEngineVersionsCommand_base: {
80
80
  * // "STRING_VALUE",
81
81
  * // ],
82
82
  * // SupportsCertificateRotationWithoutRestart: true || false,
83
+ * // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
84
+ * // MinCapacity: Number("double"),
85
+ * // MaxCapacity: Number("double"),
86
+ * // },
83
87
  * // },
84
88
  * // ],
85
89
  * // };
@@ -100,6 +100,10 @@ declare const FailoverDBClusterCommand_base: {
100
100
  * // ],
101
101
  * // DeletionProtection: true || false,
102
102
  * // StorageType: "STRING_VALUE",
103
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
104
+ * // MinCapacity: Number("double"),
105
+ * // MaxCapacity: Number("double"),
106
+ * // },
103
107
  * // MasterUserSecret: { // ClusterMasterUserSecret
104
108
  * // SecretArn: "STRING_VALUE",
105
109
  * // SecretStatus: "STRING_VALUE",
@@ -61,6 +61,10 @@ declare const ModifyDBClusterCommand_base: {
61
61
  * AllowMajorVersionUpgrade: true || false,
62
62
  * DeletionProtection: true || false,
63
63
  * StorageType: "STRING_VALUE",
64
+ * ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
65
+ * MinCapacity: Number("double"),
66
+ * MaxCapacity: Number("double"),
67
+ * },
64
68
  * ManageMasterUserPassword: true || false,
65
69
  * MasterUserSecretKmsKeyId: "STRING_VALUE",
66
70
  * RotateMasterUserPassword: true || false,
@@ -125,6 +129,10 @@ declare const ModifyDBClusterCommand_base: {
125
129
  * // ],
126
130
  * // DeletionProtection: true || false,
127
131
  * // StorageType: "STRING_VALUE",
132
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
133
+ * // MinCapacity: Number("double"),
134
+ * // MaxCapacity: Number("double"),
135
+ * // },
128
136
  * // MasterUserSecret: { // ClusterMasterUserSecret
129
137
  * // SecretArn: "STRING_VALUE",
130
138
  * // SecretStatus: "STRING_VALUE",
@@ -61,6 +61,10 @@ declare const RestoreDBClusterFromSnapshotCommand_base: {
61
61
  * ],
62
62
  * DeletionProtection: true || false,
63
63
  * DBClusterParameterGroupName: "STRING_VALUE",
64
+ * ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
65
+ * MinCapacity: Number("double"),
66
+ * MaxCapacity: Number("double"),
67
+ * },
64
68
  * StorageType: "STRING_VALUE",
65
69
  * };
66
70
  * const command = new RestoreDBClusterFromSnapshotCommand(input);
@@ -123,6 +127,10 @@ declare const RestoreDBClusterFromSnapshotCommand_base: {
123
127
  * // ],
124
128
  * // DeletionProtection: true || false,
125
129
  * // StorageType: "STRING_VALUE",
130
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
131
+ * // MinCapacity: Number("double"),
132
+ * // MaxCapacity: Number("double"),
133
+ * // },
126
134
  * // MasterUserSecret: { // ClusterMasterUserSecret
127
135
  * // SecretArn: "STRING_VALUE",
128
136
  * // SecretStatus: "STRING_VALUE",
@@ -60,6 +60,10 @@ declare const RestoreDBClusterToPointInTimeCommand_base: {
60
60
  * "STRING_VALUE",
61
61
  * ],
62
62
  * DeletionProtection: true || false,
63
+ * ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
64
+ * MinCapacity: Number("double"),
65
+ * MaxCapacity: Number("double"),
66
+ * },
63
67
  * StorageType: "STRING_VALUE",
64
68
  * };
65
69
  * const command = new RestoreDBClusterToPointInTimeCommand(input);
@@ -122,6 +126,10 @@ declare const RestoreDBClusterToPointInTimeCommand_base: {
122
126
  * // ],
123
127
  * // DeletionProtection: true || false,
124
128
  * // StorageType: "STRING_VALUE",
129
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
130
+ * // MinCapacity: Number("double"),
131
+ * // MaxCapacity: Number("double"),
132
+ * // },
125
133
  * // MasterUserSecret: { // ClusterMasterUserSecret
126
134
  * // SecretArn: "STRING_VALUE",
127
135
  * // SecretStatus: "STRING_VALUE",
@@ -99,6 +99,10 @@ declare const StartDBClusterCommand_base: {
99
99
  * // ],
100
100
  * // DeletionProtection: true || false,
101
101
  * // StorageType: "STRING_VALUE",
102
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
103
+ * // MinCapacity: Number("double"),
104
+ * // MaxCapacity: Number("double"),
105
+ * // },
102
106
  * // MasterUserSecret: { // ClusterMasterUserSecret
103
107
  * // SecretArn: "STRING_VALUE",
104
108
  * // SecretStatus: "STRING_VALUE",
@@ -100,6 +100,10 @@ declare const StopDBClusterCommand_base: {
100
100
  * // ],
101
101
  * // DeletionProtection: true || false,
102
102
  * // StorageType: "STRING_VALUE",
103
+ * // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
104
+ * // MinCapacity: Number("double"),
105
+ * // MaxCapacity: Number("double"),
106
+ * // },
103
107
  * // MasterUserSecret: { // ClusterMasterUserSecret
104
108
  * // SecretArn: "STRING_VALUE",
105
109
  * // SecretStatus: "STRING_VALUE",
@@ -708,7 +708,7 @@ export interface DBClusterSnapshot {
708
708
  */
709
709
  SourceDBClusterSnapshotArn?: string | undefined;
710
710
  /**
711
- * <p>Storage type associated with your cluster snapshot </p>
711
+ * <p>Storage type associated with your cluster snapshot</p>
712
712
  * <p>For information on storage types for Amazon DocumentDB clusters, see
713
713
  * Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
714
714
  * <p>Valid values for storage type - <code>standard | iopt1</code>
@@ -790,6 +790,24 @@ export declare class SnapshotQuotaExceededFault extends __BaseException {
790
790
  */
791
791
  constructor(opts: __ExceptionOptionType<SnapshotQuotaExceededFault, __BaseException>);
792
792
  }
793
+ /**
794
+ * <p>Sets the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>
795
+ * @public
796
+ */
797
+ export interface ServerlessV2ScalingConfiguration {
798
+ /**
799
+ * <p>The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.
800
+ * You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.</p>
801
+ * @public
802
+ */
803
+ MinCapacity?: number | undefined;
804
+ /**
805
+ * <p>The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.
806
+ * You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on.</p>
807
+ * @public
808
+ */
809
+ MaxCapacity?: number | undefined;
810
+ }
793
811
  /**
794
812
  * <p>Represents the input to <a>CreateDBCluster</a>.
795
813
  * </p>
@@ -1008,6 +1026,11 @@ export interface CreateDBClusterMessage {
1008
1026
  * @public
1009
1027
  */
1010
1028
  StorageType?: string | undefined;
1029
+ /**
1030
+ * <p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>
1031
+ * @public
1032
+ */
1033
+ ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration | undefined;
1011
1034
  /**
1012
1035
  * <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1013
1036
  * <p>Constraint: You can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p>
@@ -1127,6 +1150,24 @@ export interface ClusterMasterUserSecret {
1127
1150
  */
1128
1151
  KmsKeyId?: string | undefined;
1129
1152
  }
1153
+ /**
1154
+ * <p>Retrieves the scaling configuration for an Amazon DocumentDB Serverless cluster.</p>
1155
+ * @public
1156
+ */
1157
+ export interface ServerlessV2ScalingConfigurationInfo {
1158
+ /**
1159
+ * <p>The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.
1160
+ * You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.</p>
1161
+ * @public
1162
+ */
1163
+ MinCapacity?: number | undefined;
1164
+ /**
1165
+ * <p>The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.
1166
+ * You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on. </p>
1167
+ * @public
1168
+ */
1169
+ MaxCapacity?: number | undefined;
1170
+ }
1130
1171
  /**
1131
1172
  * <p>Used as a response element for queries on virtual private cloud (VPC) security group
1132
1173
  * membership.</p>
@@ -1326,7 +1367,6 @@ export interface DBCluster {
1326
1367
  DeletionProtection?: boolean | undefined;
1327
1368
  /**
1328
1369
  * <p>Storage type associated with your cluster</p>
1329
- * <p>Storage type associated with your cluster</p>
1330
1370
  * <p>For information on storage types for Amazon DocumentDB clusters, see
1331
1371
  * Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
1332
1372
  * <p>Valid values for storage type - <code>standard | iopt1</code>
@@ -1336,6 +1376,11 @@ export interface DBCluster {
1336
1376
  * @public
1337
1377
  */
1338
1378
  StorageType?: string | undefined;
1379
+ /**
1380
+ * <p>The scaling configuration of an Amazon DocumentDB Serverless cluster.</p>
1381
+ * @public
1382
+ */
1383
+ ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfigurationInfo | undefined;
1339
1384
  /**
1340
1385
  * <p>The secret managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the master user password.</p>
1341
1386
  * @public
@@ -2502,7 +2547,7 @@ export interface GlobalClusterMember {
2502
2547
  */
2503
2548
  DBClusterArn?: string | undefined;
2504
2549
  /**
2505
- * <p>The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Aurora global cluster.</p>
2550
+ * <p>The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Amazon DocumentDB global cluster.</p>
2506
2551
  * @public
2507
2552
  */
2508
2553
  Readers?: string[] | undefined;
@@ -2523,7 +2568,8 @@ export interface GlobalCluster {
2523
2568
  */
2524
2569
  GlobalClusterIdentifier?: string | undefined;
2525
2570
  /**
2526
- * <p>The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. </p>
2571
+ * <p>The Amazon Web Services RegionRegion-unique, immutable identifier for the global database cluster.
2572
+ * This identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. </p>
2527
2573
  * @public
2528
2574
  */
2529
2575
  GlobalClusterResourceId?: string | undefined;
@@ -3393,6 +3439,26 @@ export interface DescribeDBClusterSnapshotsMessage {
3393
3439
  */
3394
3440
  IncludePublic?: boolean | undefined;
3395
3441
  }
3442
+ /**
3443
+ * <p>Specifies any Amazon DocumentDB Serverless properties or limits that differ between Amazon DocumentDB engine versions.
3444
+ * You can test the values of this attribute when deciding which Amazon DocumentDB version to use in a new or upgraded cluster.
3445
+ * You can also retrieve the version of an existing cluster and check whether that version supports certain Amazon DocumentDB Serverless features before you attempt to use those features.</p>
3446
+ * @public
3447
+ */
3448
+ export interface ServerlessV2FeaturesSupport {
3449
+ /**
3450
+ * <p>The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.
3451
+ * You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.</p>
3452
+ * @public
3453
+ */
3454
+ MinCapacity?: number | undefined;
3455
+ /**
3456
+ * <p>The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.
3457
+ * You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on.</p>
3458
+ * @public
3459
+ */
3460
+ MaxCapacity?: number | undefined;
3461
+ }
3396
3462
  /**
3397
3463
  * <p>The version of the database engine that an instance can be upgraded to.</p>
3398
3464
  * @public
@@ -3488,6 +3554,13 @@ export interface DBEngineVersion {
3488
3554
  * @public
3489
3555
  */
3490
3556
  SupportsCertificateRotationWithoutRestart?: boolean | undefined;
3557
+ /**
3558
+ * <p>Specifies any Amazon DocumentDB Serverless properties or limits that differ between Amazon DocumentDB engine versions.
3559
+ * You can test the values of this attribute when deciding which Amazon DocumentDB version to use in a new or upgraded cluster.
3560
+ * You can also retrieve the version of an existing cluster and check whether that version supports certain Amazon DocumentDB Serverless features before you attempt to use those features.</p>
3561
+ * @public
3562
+ */
3563
+ ServerlessV2FeaturesSupport?: ServerlessV2FeaturesSupport | undefined;
3491
3564
  }
3492
3565
  /**
3493
3566
  * <p>Represents the output of <a>DescribeDBEngineVersions</a>.</p>
@@ -4576,6 +4649,11 @@ export interface ModifyDBClusterMessage {
4576
4649
  * @public
4577
4650
  */
4578
4651
  StorageType?: string | undefined;
4652
+ /**
4653
+ * <p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>
4654
+ * @public
4655
+ */
4656
+ ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration | undefined;
4579
4657
  /**
4580
4658
  * <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.
4581
4659
  * If the cluster doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management.
@@ -5303,6 +5381,11 @@ export interface RestoreDBClusterFromSnapshotMessage {
5303
5381
  * @public
5304
5382
  */
5305
5383
  DBClusterParameterGroupName?: string | undefined;
5384
+ /**
5385
+ * <p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>
5386
+ * @public
5387
+ */
5388
+ ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration | undefined;
5306
5389
  /**
5307
5390
  * <p>The storage type to associate with the DB cluster.</p>
5308
5391
  * <p>For information on storage types for Amazon DocumentDB clusters, see
@@ -5466,6 +5549,11 @@ export interface RestoreDBClusterToPointInTimeMessage {
5466
5549
  * @public
5467
5550
  */
5468
5551
  DeletionProtection?: boolean | undefined;
5552
+ /**
5553
+ * <p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>
5554
+ * @public
5555
+ */
5556
+ ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration | undefined;
5469
5557
  /**
5470
5558
  * <p>The storage type to associate with the DB cluster.</p>
5471
5559
  * <p>For information on storage types for Amazon DocumentDB clusters, see
@@ -219,6 +219,10 @@ export declare class SnapshotQuotaExceededFault extends __BaseException {
219
219
  opts: __ExceptionOptionType<SnapshotQuotaExceededFault, __BaseException>
220
220
  );
221
221
  }
222
+ export interface ServerlessV2ScalingConfiguration {
223
+ MinCapacity?: number | undefined;
224
+ MaxCapacity?: number | undefined;
225
+ }
222
226
  export interface CreateDBClusterMessage {
223
227
  AvailabilityZones?: string[] | undefined;
224
228
  BackupRetentionPeriod?: number | undefined;
@@ -241,6 +245,9 @@ export interface CreateDBClusterMessage {
241
245
  DeletionProtection?: boolean | undefined;
242
246
  GlobalClusterIdentifier?: string | undefined;
243
247
  StorageType?: string | undefined;
248
+ ServerlessV2ScalingConfiguration?:
249
+ | ServerlessV2ScalingConfiguration
250
+ | undefined;
244
251
  ManageMasterUserPassword?: boolean | undefined;
245
252
  MasterUserSecretKmsKeyId?: string | undefined;
246
253
  }
@@ -259,6 +266,10 @@ export interface ClusterMasterUserSecret {
259
266
  SecretStatus?: string | undefined;
260
267
  KmsKeyId?: string | undefined;
261
268
  }
269
+ export interface ServerlessV2ScalingConfigurationInfo {
270
+ MinCapacity?: number | undefined;
271
+ MaxCapacity?: number | undefined;
272
+ }
262
273
  export interface VpcSecurityGroupMembership {
263
274
  VpcSecurityGroupId?: string | undefined;
264
275
  Status?: string | undefined;
@@ -297,6 +308,9 @@ export interface DBCluster {
297
308
  EnabledCloudwatchLogsExports?: string[] | undefined;
298
309
  DeletionProtection?: boolean | undefined;
299
310
  StorageType?: string | undefined;
311
+ ServerlessV2ScalingConfiguration?:
312
+ | ServerlessV2ScalingConfigurationInfo
313
+ | undefined;
300
314
  MasterUserSecret?: ClusterMasterUserSecret | undefined;
301
315
  }
302
316
  export interface CreateDBClusterResult {
@@ -880,6 +894,10 @@ export interface DescribeDBClusterSnapshotsMessage {
880
894
  IncludeShared?: boolean | undefined;
881
895
  IncludePublic?: boolean | undefined;
882
896
  }
897
+ export interface ServerlessV2FeaturesSupport {
898
+ MinCapacity?: number | undefined;
899
+ MaxCapacity?: number | undefined;
900
+ }
883
901
  export interface UpgradeTarget {
884
902
  Engine?: string | undefined;
885
903
  EngineVersion?: string | undefined;
@@ -898,6 +916,7 @@ export interface DBEngineVersion {
898
916
  SupportsLogExportsToCloudwatchLogs?: boolean | undefined;
899
917
  SupportedCACertificateIdentifiers?: string[] | undefined;
900
918
  SupportsCertificateRotationWithoutRestart?: boolean | undefined;
919
+ ServerlessV2FeaturesSupport?: ServerlessV2FeaturesSupport | undefined;
901
920
  }
902
921
  export interface DBEngineVersionMessage {
903
922
  Marker?: string | undefined;
@@ -1099,6 +1118,9 @@ export interface ModifyDBClusterMessage {
1099
1118
  AllowMajorVersionUpgrade?: boolean | undefined;
1100
1119
  DeletionProtection?: boolean | undefined;
1101
1120
  StorageType?: string | undefined;
1121
+ ServerlessV2ScalingConfiguration?:
1122
+ | ServerlessV2ScalingConfiguration
1123
+ | undefined;
1102
1124
  ManageMasterUserPassword?: boolean | undefined;
1103
1125
  MasterUserSecretKmsKeyId?: string | undefined;
1104
1126
  RotateMasterUserPassword?: boolean | undefined;
@@ -1260,6 +1282,9 @@ export interface RestoreDBClusterFromSnapshotMessage {
1260
1282
  EnableCloudwatchLogsExports?: string[] | undefined;
1261
1283
  DeletionProtection?: boolean | undefined;
1262
1284
  DBClusterParameterGroupName?: string | undefined;
1285
+ ServerlessV2ScalingConfiguration?:
1286
+ | ServerlessV2ScalingConfiguration
1287
+ | undefined;
1263
1288
  StorageType?: string | undefined;
1264
1289
  }
1265
1290
  export interface RestoreDBClusterFromSnapshotResult {
@@ -1278,6 +1303,9 @@ export interface RestoreDBClusterToPointInTimeMessage {
1278
1303
  KmsKeyId?: string | undefined;
1279
1304
  EnableCloudwatchLogsExports?: string[] | undefined;
1280
1305
  DeletionProtection?: boolean | undefined;
1306
+ ServerlessV2ScalingConfiguration?:
1307
+ | ServerlessV2ScalingConfiguration
1308
+ | undefined;
1281
1309
  StorageType?: string | undefined;
1282
1310
  }
1283
1311
  export interface RestoreDBClusterToPointInTimeResult {
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.856.0",
4
+ "version": "3.858.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-docdb",
@@ -20,39 +20,39 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.856.0",
24
- "@aws-sdk/credential-provider-node": "3.856.0",
23
+ "@aws-sdk/core": "3.858.0",
24
+ "@aws-sdk/credential-provider-node": "3.858.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-sdk-rds": "3.845.0",
29
- "@aws-sdk/middleware-user-agent": "3.856.0",
28
+ "@aws-sdk/middleware-sdk-rds": "3.857.0",
29
+ "@aws-sdk/middleware-user-agent": "3.858.0",
30
30
  "@aws-sdk/region-config-resolver": "3.840.0",
31
31
  "@aws-sdk/types": "3.840.0",
32
32
  "@aws-sdk/util-endpoints": "3.848.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.840.0",
34
- "@aws-sdk/util-user-agent-node": "3.856.0",
34
+ "@aws-sdk/util-user-agent-node": "3.858.0",
35
35
  "@smithy/config-resolver": "^4.1.4",
36
- "@smithy/core": "^3.7.0",
36
+ "@smithy/core": "^3.7.2",
37
37
  "@smithy/fetch-http-handler": "^5.1.0",
38
38
  "@smithy/hash-node": "^4.0.4",
39
39
  "@smithy/invalid-dependency": "^4.0.4",
40
40
  "@smithy/middleware-content-length": "^4.0.4",
41
- "@smithy/middleware-endpoint": "^4.1.15",
42
- "@smithy/middleware-retry": "^4.1.16",
41
+ "@smithy/middleware-endpoint": "^4.1.17",
42
+ "@smithy/middleware-retry": "^4.1.18",
43
43
  "@smithy/middleware-serde": "^4.0.8",
44
44
  "@smithy/middleware-stack": "^4.0.4",
45
45
  "@smithy/node-config-provider": "^4.1.3",
46
46
  "@smithy/node-http-handler": "^4.1.0",
47
47
  "@smithy/protocol-http": "^5.1.2",
48
- "@smithy/smithy-client": "^4.4.7",
48
+ "@smithy/smithy-client": "^4.4.9",
49
49
  "@smithy/types": "^4.3.1",
50
50
  "@smithy/url-parser": "^4.0.4",
51
51
  "@smithy/util-base64": "^4.0.0",
52
52
  "@smithy/util-body-length-browser": "^4.0.0",
53
53
  "@smithy/util-body-length-node": "^4.0.0",
54
- "@smithy/util-defaults-mode-browser": "^4.0.23",
55
- "@smithy/util-defaults-mode-node": "^4.0.23",
54
+ "@smithy/util-defaults-mode-browser": "^4.0.25",
55
+ "@smithy/util-defaults-mode-node": "^4.0.25",
56
56
  "@smithy/util-endpoints": "^3.0.6",
57
57
  "@smithy/util-middleware": "^4.0.4",
58
58
  "@smithy/util-retry": "^4.0.6",