@aws-sdk/client-docdb 3.441.0 → 3.445.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.
@@ -3584,6 +3584,9 @@ const se_CreateDBInstanceMessage = (input, context) => {
3584
3584
  if (input.PerformanceInsightsKMSKeyId != null) {
3585
3585
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
3586
3586
  }
3587
+ if (input.CACertificateIdentifier != null) {
3588
+ entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
3589
+ }
3587
3590
  return entries;
3588
3591
  };
3589
3592
  const se_CreateDBSubnetGroupMessage = (input, context) => {
@@ -4398,6 +4401,9 @@ const se_ModifyDBInstanceMessage = (input, context) => {
4398
4401
  if (input.PerformanceInsightsKMSKeyId != null) {
4399
4402
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
4400
4403
  }
4404
+ if (input.CertificateRotationRestart != null) {
4405
+ entries["CertificateRotationRestart"] = input.CertificateRotationRestart;
4406
+ }
4401
4407
  return entries;
4402
4408
  };
4403
4409
  const se_ModifyDBSubnetGroupMessage = (input, context) => {
@@ -4831,6 +4837,13 @@ const de_AvailabilityZones = (output, context) => {
4831
4837
  return (0, smithy_client_1.expectString)(entry);
4832
4838
  });
4833
4839
  };
4840
+ const de_CACertificateIdentifiersList = (output, context) => {
4841
+ return (output || [])
4842
+ .filter((e) => e != null)
4843
+ .map((entry) => {
4844
+ return (0, smithy_client_1.expectString)(entry);
4845
+ });
4846
+ };
4834
4847
  const de_Certificate = (output, context) => {
4835
4848
  const contents = {};
4836
4849
  if (output["CertificateIdentifier"] !== undefined) {
@@ -4853,6 +4866,16 @@ const de_Certificate = (output, context) => {
4853
4866
  }
4854
4867
  return contents;
4855
4868
  };
4869
+ const de_CertificateDetails = (output, context) => {
4870
+ const contents = {};
4871
+ if (output["CAIdentifier"] !== undefined) {
4872
+ contents.CAIdentifier = (0, smithy_client_1.expectString)(output["CAIdentifier"]);
4873
+ }
4874
+ if (output["ValidTill"] !== undefined) {
4875
+ contents.ValidTill = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["ValidTill"]));
4876
+ }
4877
+ return contents;
4878
+ };
4856
4879
  const de_CertificateList = (output, context) => {
4857
4880
  return (output || [])
4858
4881
  .filter((e) => e != null)
@@ -5371,6 +5394,16 @@ const de_DBEngineVersion = (output, context) => {
5371
5394
  if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) {
5372
5395
  contents.SupportsLogExportsToCloudwatchLogs = (0, smithy_client_1.parseBoolean)(output["SupportsLogExportsToCloudwatchLogs"]);
5373
5396
  }
5397
+ if (output.SupportedCACertificateIdentifiers === "") {
5398
+ contents.SupportedCACertificateIdentifiers = [];
5399
+ }
5400
+ else if (output["SupportedCACertificateIdentifiers"] !== undefined &&
5401
+ output["SupportedCACertificateIdentifiers"]["member"] !== undefined) {
5402
+ contents.SupportedCACertificateIdentifiers = de_CACertificateIdentifiersList((0, smithy_client_1.getArrayIfSingleItem)(output["SupportedCACertificateIdentifiers"]["member"]), context);
5403
+ }
5404
+ if (output["SupportsCertificateRotationWithoutRestart"] !== undefined) {
5405
+ contents.SupportsCertificateRotationWithoutRestart = (0, smithy_client_1.parseBoolean)(output["SupportsCertificateRotationWithoutRestart"]);
5406
+ }
5374
5407
  return contents;
5375
5408
  };
5376
5409
  const de_DBEngineVersionList = (output, context) => {
@@ -5487,6 +5520,9 @@ const de_DBInstance = (output, context) => {
5487
5520
  output["EnabledCloudwatchLogsExports"]["member"] !== undefined) {
5488
5521
  contents.EnabledCloudwatchLogsExports = de_LogTypeList((0, smithy_client_1.getArrayIfSingleItem)(output["EnabledCloudwatchLogsExports"]["member"]), context);
5489
5522
  }
5523
+ if (output["CertificateDetails"] !== undefined) {
5524
+ contents.CertificateDetails = de_CertificateDetails(output["CertificateDetails"], context);
5525
+ }
5490
5526
  return contents;
5491
5527
  };
5492
5528
  const de_DBInstanceAlreadyExistsFault = (output, context) => {
@@ -3473,6 +3473,9 @@ const se_CreateDBInstanceMessage = (input, context) => {
3473
3473
  if (input.PerformanceInsightsKMSKeyId != null) {
3474
3474
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
3475
3475
  }
3476
+ if (input.CACertificateIdentifier != null) {
3477
+ entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
3478
+ }
3476
3479
  return entries;
3477
3480
  };
3478
3481
  const se_CreateDBSubnetGroupMessage = (input, context) => {
@@ -4287,6 +4290,9 @@ const se_ModifyDBInstanceMessage = (input, context) => {
4287
4290
  if (input.PerformanceInsightsKMSKeyId != null) {
4288
4291
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
4289
4292
  }
4293
+ if (input.CertificateRotationRestart != null) {
4294
+ entries["CertificateRotationRestart"] = input.CertificateRotationRestart;
4295
+ }
4290
4296
  return entries;
4291
4297
  };
4292
4298
  const se_ModifyDBSubnetGroupMessage = (input, context) => {
@@ -4720,6 +4726,13 @@ const de_AvailabilityZones = (output, context) => {
4720
4726
  return __expectString(entry);
4721
4727
  });
4722
4728
  };
4729
+ const de_CACertificateIdentifiersList = (output, context) => {
4730
+ return (output || [])
4731
+ .filter((e) => e != null)
4732
+ .map((entry) => {
4733
+ return __expectString(entry);
4734
+ });
4735
+ };
4723
4736
  const de_Certificate = (output, context) => {
4724
4737
  const contents = {};
4725
4738
  if (output["CertificateIdentifier"] !== undefined) {
@@ -4742,6 +4755,16 @@ const de_Certificate = (output, context) => {
4742
4755
  }
4743
4756
  return contents;
4744
4757
  };
4758
+ const de_CertificateDetails = (output, context) => {
4759
+ const contents = {};
4760
+ if (output["CAIdentifier"] !== undefined) {
4761
+ contents.CAIdentifier = __expectString(output["CAIdentifier"]);
4762
+ }
4763
+ if (output["ValidTill"] !== undefined) {
4764
+ contents.ValidTill = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidTill"]));
4765
+ }
4766
+ return contents;
4767
+ };
4745
4768
  const de_CertificateList = (output, context) => {
4746
4769
  return (output || [])
4747
4770
  .filter((e) => e != null)
@@ -5260,6 +5283,16 @@ const de_DBEngineVersion = (output, context) => {
5260
5283
  if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) {
5261
5284
  contents.SupportsLogExportsToCloudwatchLogs = __parseBoolean(output["SupportsLogExportsToCloudwatchLogs"]);
5262
5285
  }
5286
+ if (output.SupportedCACertificateIdentifiers === "") {
5287
+ contents.SupportedCACertificateIdentifiers = [];
5288
+ }
5289
+ else if (output["SupportedCACertificateIdentifiers"] !== undefined &&
5290
+ output["SupportedCACertificateIdentifiers"]["member"] !== undefined) {
5291
+ contents.SupportedCACertificateIdentifiers = de_CACertificateIdentifiersList(__getArrayIfSingleItem(output["SupportedCACertificateIdentifiers"]["member"]), context);
5292
+ }
5293
+ if (output["SupportsCertificateRotationWithoutRestart"] !== undefined) {
5294
+ contents.SupportsCertificateRotationWithoutRestart = __parseBoolean(output["SupportsCertificateRotationWithoutRestart"]);
5295
+ }
5263
5296
  return contents;
5264
5297
  };
5265
5298
  const de_DBEngineVersionList = (output, context) => {
@@ -5376,6 +5409,9 @@ const de_DBInstance = (output, context) => {
5376
5409
  output["EnabledCloudwatchLogsExports"]["member"] !== undefined) {
5377
5410
  contents.EnabledCloudwatchLogsExports = de_LogTypeList(__getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), context);
5378
5411
  }
5412
+ if (output["CertificateDetails"] !== undefined) {
5413
+ contents.CertificateDetails = de_CertificateDetails(output["CertificateDetails"], context);
5414
+ }
5379
5415
  return contents;
5380
5416
  };
5381
5417
  const de_DBInstanceAlreadyExistsFault = (output, context) => {
@@ -48,6 +48,7 @@ export interface CreateDBInstanceCommandOutput extends CreateDBInstanceResult, _
48
48
  * PromotionTier: Number("int"),
49
49
  * EnablePerformanceInsights: true || false,
50
50
  * PerformanceInsightsKMSKeyId: "STRING_VALUE",
51
+ * CACertificateIdentifier: "STRING_VALUE",
51
52
  * };
52
53
  * const command = new CreateDBInstanceCommand(input);
53
54
  * const response = await client.send(command);
@@ -135,6 +136,10 @@ export interface CreateDBInstanceCommandOutput extends CreateDBInstanceResult, _
135
136
  * // EnabledCloudwatchLogsExports: [
136
137
  * // "STRING_VALUE",
137
138
  * // ],
139
+ * // CertificateDetails: { // CertificateDetails
140
+ * // CAIdentifier: "STRING_VALUE",
141
+ * // ValidTill: new Date("TIMESTAMP"),
142
+ * // },
138
143
  * // },
139
144
  * // };
140
145
  *
@@ -119,6 +119,10 @@ export interface DeleteDBInstanceCommandOutput extends DeleteDBInstanceResult, _
119
119
  * // EnabledCloudwatchLogsExports: [
120
120
  * // "STRING_VALUE",
121
121
  * // ],
122
+ * // CertificateDetails: { // CertificateDetails
123
+ * // CAIdentifier: "STRING_VALUE",
124
+ * // ValidTill: new Date("TIMESTAMP"),
125
+ * // },
122
126
  * // },
123
127
  * // };
124
128
  *
@@ -72,6 +72,10 @@ export interface DescribeDBEngineVersionsCommandOutput extends DBEngineVersionMe
72
72
  * // "STRING_VALUE",
73
73
  * // ],
74
74
  * // SupportsLogExportsToCloudwatchLogs: true || false,
75
+ * // SupportedCACertificateIdentifiers: [ // CACertificateIdentifiersList
76
+ * // "STRING_VALUE",
77
+ * // ],
78
+ * // SupportsCertificateRotationWithoutRestart: true || false,
75
79
  * // },
76
80
  * // ],
77
81
  * // };
@@ -131,6 +131,10 @@ export interface DescribeDBInstancesCommandOutput extends DBInstanceMessage, __M
131
131
  * // EnabledCloudwatchLogsExports: [
132
132
  * // "STRING_VALUE",
133
133
  * // ],
134
+ * // CertificateDetails: { // CertificateDetails
135
+ * // CAIdentifier: "STRING_VALUE",
136
+ * // ValidTill: new Date("TIMESTAMP"),
137
+ * // },
134
138
  * // },
135
139
  * // ],
136
140
  * // };
@@ -42,6 +42,7 @@ export interface ModifyDBInstanceCommandOutput extends ModifyDBInstanceResult, _
42
42
  * PromotionTier: Number("int"),
43
43
  * EnablePerformanceInsights: true || false,
44
44
  * PerformanceInsightsKMSKeyId: "STRING_VALUE",
45
+ * CertificateRotationRestart: true || false,
45
46
  * };
46
47
  * const command = new ModifyDBInstanceCommand(input);
47
48
  * const response = await client.send(command);
@@ -129,6 +130,10 @@ export interface ModifyDBInstanceCommandOutput extends ModifyDBInstanceResult, _
129
130
  * // EnabledCloudwatchLogsExports: [
130
131
  * // "STRING_VALUE",
131
132
  * // ],
133
+ * // CertificateDetails: { // CertificateDetails
134
+ * // CAIdentifier: "STRING_VALUE",
135
+ * // ValidTill: new Date("TIMESTAMP"),
136
+ * // },
132
137
  * // },
133
138
  * // };
134
139
  *
@@ -126,6 +126,10 @@ export interface RebootDBInstanceCommandOutput extends RebootDBInstanceResult, _
126
126
  * // EnabledCloudwatchLogsExports: [
127
127
  * // "STRING_VALUE",
128
128
  * // ],
129
+ * // CertificateDetails: { // CertificateDetails
130
+ * // CAIdentifier: "STRING_VALUE",
131
+ * // ValidTill: new Date("TIMESTAMP"),
132
+ * // },
129
133
  * // },
130
134
  * // };
131
135
  *
@@ -8,6 +8,8 @@
8
8
  export * from "./DocDBClient";
9
9
  export * from "./DocDB";
10
10
  export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
11
+ export { RuntimeExtension } from "./runtimeExtensions";
12
+ export { DocDBExtensionConfiguration } from "./extensionConfiguration";
11
13
  export * from "./commands";
12
14
  export * from "./pagination";
13
15
  export * from "./waiters";
@@ -1624,6 +1624,37 @@ export interface CreateDBInstanceMessage {
1624
1624
  * default KMS key for each Amazon Web Services region.</p>
1625
1625
  */
1626
1626
  PerformanceInsightsKMSKeyId?: string;
1627
+ /**
1628
+ * @public
1629
+ * <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1630
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html">Updating Your Amazon DocumentDB TLS
1631
+ * Certificates</a> and
1632
+ * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html">
1633
+ * Encrypting Data in Transit</a> in the <i>Amazon DocumentDB Developer
1634
+ * Guide</i>.</p>
1635
+ */
1636
+ CACertificateIdentifier?: string;
1637
+ }
1638
+ /**
1639
+ * @public
1640
+ * <p>Returns the details of the DB instance’s server certificate.</p>
1641
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html">Updating Your Amazon DocumentDB TLS
1642
+ * Certificates</a> and
1643
+ * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html">
1644
+ * Encrypting Data in Transit</a> in the <i>Amazon DocumentDB Developer
1645
+ * Guide</i>.</p>
1646
+ */
1647
+ export interface CertificateDetails {
1648
+ /**
1649
+ * @public
1650
+ * <p>The CA identifier of the CA certificate used for the DB instance's server certificate.</p>
1651
+ */
1652
+ CAIdentifier?: string;
1653
+ /**
1654
+ * @public
1655
+ * <p>The expiration date of the DB instance’s server certificate.</p>
1656
+ */
1657
+ ValidTill?: Date;
1627
1658
  }
1628
1659
  /**
1629
1660
  * @public
@@ -2002,6 +2033,11 @@ export interface DBInstance {
2002
2033
  * <p>A list of log types that this instance is configured to export to CloudWatch Logs.</p>
2003
2034
  */
2004
2035
  EnabledCloudwatchLogsExports?: string[];
2036
+ /**
2037
+ * @public
2038
+ * <p>The details of the DB instance's server certificate.</p>
2039
+ */
2040
+ CertificateDetails?: CertificateDetails;
2005
2041
  }
2006
2042
  /**
2007
2043
  * @public
@@ -3326,6 +3362,22 @@ export interface DBEngineVersion {
3326
3362
  * specified by <code>ExportableLogTypes</code> to CloudWatch Logs.</p>
3327
3363
  */
3328
3364
  SupportsLogExportsToCloudwatchLogs?: boolean;
3365
+ /**
3366
+ * @public
3367
+ * <p>A list of the supported CA certificate identifiers.</p>
3368
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html">Updating Your Amazon DocumentDB TLS
3369
+ * Certificates</a> and
3370
+ * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html">
3371
+ * Encrypting Data in Transit</a> in the <i>Amazon DocumentDB Developer
3372
+ * Guide</i>.</p>
3373
+ */
3374
+ SupportedCACertificateIdentifiers?: string[];
3375
+ /**
3376
+ * @public
3377
+ * <p>Indicates whether the engine version supports rotating the server certificate without
3378
+ * rebooting the DB instance.</p>
3379
+ */
3380
+ SupportsCertificateRotationWithoutRestart?: boolean;
3329
3381
  }
3330
3382
  /**
3331
3383
  * @public
@@ -4559,6 +4611,22 @@ export interface ModifyDBInstanceMessage {
4559
4611
  * default KMS key for each Amazon Web Services region.</p>
4560
4612
  */
4561
4613
  PerformanceInsightsKMSKeyId?: string;
4614
+ /**
4615
+ * @public
4616
+ * <p>Specifies whether the DB instance is restarted when you rotate your
4617
+ * SSL/TLS certificate.</p>
4618
+ * <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate
4619
+ * is not updated until the DB instance is restarted.</p>
4620
+ * <important>
4621
+ * <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
4622
+ * </important>
4623
+ * <p>If you are using SSL/TLS to connect to the DB instance, see <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html">Updating Your Amazon DocumentDB TLS
4624
+ * Certificates</a> and
4625
+ * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html">
4626
+ * Encrypting Data in Transit</a> in the <i>Amazon DocumentDB Developer
4627
+ * Guide</i>.</p>
4628
+ */
4629
+ CertificateRotationRestart?: boolean;
4562
4630
  }
4563
4631
  /**
4564
4632
  * @public
@@ -1,6 +1,8 @@
1
1
  export * from "./DocDBClient";
2
2
  export * from "./DocDB";
3
3
  export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { DocDBExtensionConfiguration } from "./extensionConfiguration";
4
6
  export * from "./commands";
5
7
  export * from "./pagination";
6
8
  export * from "./waiters";
@@ -417,6 +417,11 @@ export interface CreateDBInstanceMessage {
417
417
  PromotionTier?: number;
418
418
  EnablePerformanceInsights?: boolean;
419
419
  PerformanceInsightsKMSKeyId?: string;
420
+ CACertificateIdentifier?: string;
421
+ }
422
+ export interface CertificateDetails {
423
+ CAIdentifier?: string;
424
+ ValidTill?: Date;
420
425
  }
421
426
  export interface AvailabilityZone {
422
427
  Name?: string;
@@ -493,6 +498,7 @@ export interface DBInstance {
493
498
  PromotionTier?: number;
494
499
  DBInstanceArn?: string;
495
500
  EnabledCloudwatchLogsExports?: string[];
501
+ CertificateDetails?: CertificateDetails;
496
502
  }
497
503
  export interface CreateDBInstanceResult {
498
504
  DBInstance?: DBInstance;
@@ -873,6 +879,8 @@ export interface DBEngineVersion {
873
879
  ValidUpgradeTarget?: UpgradeTarget[];
874
880
  ExportableLogTypes?: string[];
875
881
  SupportsLogExportsToCloudwatchLogs?: boolean;
882
+ SupportedCACertificateIdentifiers?: string[];
883
+ SupportsCertificateRotationWithoutRestart?: boolean;
876
884
  }
877
885
  export interface DBEngineVersionMessage {
878
886
  Marker?: string;
@@ -1113,6 +1121,7 @@ export interface ModifyDBInstanceMessage {
1113
1121
  PromotionTier?: number;
1114
1122
  EnablePerformanceInsights?: boolean;
1115
1123
  PerformanceInsightsKMSKeyId?: string;
1124
+ CertificateRotationRestart?: boolean;
1116
1125
  }
1117
1126
  export interface ModifyDBInstanceResult {
1118
1127
  DBInstance?: DBInstance;
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.441.0",
4
+ "version": "3.445.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.441.0",
25
- "@aws-sdk/core": "3.441.0",
26
- "@aws-sdk/credential-provider-node": "3.441.0",
24
+ "@aws-sdk/client-sts": "3.445.0",
25
+ "@aws-sdk/core": "3.445.0",
26
+ "@aws-sdk/credential-provider-node": "3.445.0",
27
27
  "@aws-sdk/middleware-host-header": "3.433.0",
28
28
  "@aws-sdk/middleware-logger": "3.433.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.433.0",