@aws-sdk/client-rds 3.316.0 → 3.319.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.
@@ -314,6 +314,133 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
314
314
  * // example id: to-create-a-postgresql--compatible-db-cluster-1679700161087
315
315
  * ```
316
316
  *
317
+ * @example To create a MySQL 5.7-compatible DB cluster
318
+ * ```javascript
319
+ * // The following example creates a MySQL 5.7-compatible Aurora DB cluster.
320
+ * const input = {
321
+ * "DBClusterIdentifier": "sample-cluster",
322
+ * "DBSubnetGroupName": "default",
323
+ * "Engine": "aurora-mysql",
324
+ * "EngineVersion": "5.7.12",
325
+ * "MasterUserPassword": "mypassword",
326
+ * "MasterUsername": "admin",
327
+ * "VpcSecurityGroupIds": [
328
+ * "sg-0b91305example"
329
+ * ]
330
+ * };
331
+ * const command = new CreateDBClusterCommand(input);
332
+ * const response = await client.send(command);
333
+ * /* response ==
334
+ * {
335
+ * "DBCluster": {
336
+ * "AllocatedStorage": 1,
337
+ * "AssociatedRoles": [],
338
+ * "AvailabilityZones": [
339
+ * "us-east-1a",
340
+ * "us-east-1b",
341
+ * "us-east-1e"
342
+ * ],
343
+ * "BackupRetentionPeriod": 1,
344
+ * "ClusterCreateTime": "2019-06-07T23:21:33.048Z",
345
+ * "CopyTagsToSnapshot": false,
346
+ * "DBClusterArn": "arn:aws:rds:us-east-1:123456789012:cluster:sample-cluster",
347
+ * "DBClusterIdentifier": "sample-cluster",
348
+ * "DBClusterMembers": [],
349
+ * "DBClusterParameterGroup": "default.aurora-mysql5.7",
350
+ * "DBSubnetGroup": "default",
351
+ * "DbClusterResourceId": "cluster-ANPAJ4AE5446DAEXAMPLE",
352
+ * "DeletionProtection": false,
353
+ * "Endpoint": "sample-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
354
+ * "Engine": "aurora-mysql",
355
+ * "EngineMode": "provisioned",
356
+ * "EngineVersion": "5.7.12",
357
+ * "HostedZoneId": "Z2R2ITUGPM61AM",
358
+ * "HttpEndpointEnabled": false,
359
+ * "IAMDatabaseAuthenticationEnabled": false,
360
+ * "MasterUsername": "master",
361
+ * "MultiAZ": false,
362
+ * "Port": 3306,
363
+ * "PreferredBackupWindow": "09:12-09:42",
364
+ * "PreferredMaintenanceWindow": "mon:04:31-mon:05:01",
365
+ * "ReadReplicaIdentifiers": [],
366
+ * "ReaderEndpoint": "sample-cluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
367
+ * "Status": "creating",
368
+ * "StorageEncrypted": false,
369
+ * "VpcSecurityGroups": [
370
+ * {
371
+ * "Status": "active",
372
+ * "VpcSecurityGroupId": "sg-0b91305example"
373
+ * }
374
+ * ]
375
+ * }
376
+ * }
377
+ * *\/
378
+ * // example id: to-create-a-mysql-57-compatible-db-cluster-1679699416154
379
+ * ```
380
+ *
381
+ * @example To create a PostgreSQL-compatible DB cluster
382
+ * ```javascript
383
+ * // The following example creates a PostgreSQL-compatible Aurora DB cluster.
384
+ * const input = {
385
+ * "DBClusterIdentifier": "sample-pg-cluster",
386
+ * "DBSubnetGroupName": "default",
387
+ * "Engine": "aurora-postgresql",
388
+ * "MasterUserPassword": "mypassword",
389
+ * "MasterUsername": "admin",
390
+ * "VpcSecurityGroupIds": [
391
+ * "sg-0b91305example"
392
+ * ]
393
+ * };
394
+ * const command = new CreateDBClusterCommand(input);
395
+ * const response = await client.send(command);
396
+ * /* response ==
397
+ * {
398
+ * "DBCluster": {
399
+ * "AllocatedStorage": 1,
400
+ * "AssociatedRoles": [],
401
+ * "AvailabilityZones": [
402
+ * "us-east-1a",
403
+ * "us-east-1b",
404
+ * "us-east-1c"
405
+ * ],
406
+ * "BackupRetentionPeriod": 1,
407
+ * "ClusterCreateTime": "2019-06-07T23:26:08.371Z",
408
+ * "CopyTagsToSnapshot": false,
409
+ * "DBClusterArn": "arn:aws:rds:us-east-1:123456789012:cluster:sample-pg-cluster",
410
+ * "DBClusterIdentifier": "sample-pg-cluster",
411
+ * "DBClusterMembers": [],
412
+ * "DBClusterParameterGroup": "default.aurora-postgresql9.6",
413
+ * "DBSubnetGroup": "default",
414
+ * "DbClusterResourceId": "cluster-ANPAJ4AE5446DAEXAMPLE",
415
+ * "DeletionProtection": false,
416
+ * "Endpoint": "sample-pg-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
417
+ * "Engine": "aurora-postgresql",
418
+ * "EngineMode": "provisioned",
419
+ * "EngineVersion": "9.6.9",
420
+ * "HostedZoneId": "Z2R2ITUGPM61AM",
421
+ * "HttpEndpointEnabled": false,
422
+ * "IAMDatabaseAuthenticationEnabled": false,
423
+ * "MasterUsername": "master",
424
+ * "MultiAZ": false,
425
+ * "Port": 5432,
426
+ * "PreferredBackupWindow": "09:56-10:26",
427
+ * "PreferredMaintenanceWindow": "wed:03:33-wed:04:03",
428
+ * "ReadReplicaIdentifiers": [],
429
+ * "ReaderEndpoint": "sample-pg-cluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
430
+ * "Status": "creating",
431
+ * "StorageEncrypted": false,
432
+ * "VpcSecurityGroups": [
433
+ * {
434
+ * "Status": "active",
435
+ * "VpcSecurityGroupId": "sg-0b91305example"
436
+ * }
437
+ * ]
438
+ * }
439
+ * }
440
+ * *\/
441
+ * // example id: to-create-a-postgresql-compatible-db-cluster-1679700161087
442
+ * ```
443
+ *
317
444
  */
318
445
  export declare class CreateDBClusterCommand extends $Command<CreateDBClusterCommandInput, CreateDBClusterCommandOutput, RDSClientResolvedConfig> {
319
446
  readonly input: CreateDBClusterCommandInput;
@@ -234,6 +234,55 @@ export interface ModifyDBInstanceCommandOutput extends ModifyDBInstanceResult, _
234
234
  * // example id: to-modify-parameters-in-a-db-cluster-parameter-group-1680377584537
235
235
  * ```
236
236
  *
237
+ * @example To modify a DB instance
238
+ * ```javascript
239
+ * // The following example associates an option group and a parameter group with a compatible Microsoft SQL Server DB instance. The ApplyImmediately parameter causes the option and parameter groups to be associated immediately, instead of waiting until the next maintenance window.
240
+ * const input = {
241
+ * "ApplyImmediately": true,
242
+ * "DBInstanceIdentifier": "database-2",
243
+ * "DBParameterGroupName": "test-sqlserver-se-2017",
244
+ * "OptionGroupName": "test-se-2017"
245
+ * };
246
+ * const command = new ModifyDBInstanceCommand(input);
247
+ * const response = await client.send(command);
248
+ * /* response ==
249
+ * {
250
+ * "DBInstance": {
251
+ * "AssociatedRoles": [],
252
+ * "AutoMinorVersionUpgrade": false,
253
+ * "AvailabilityZone": "us-west-2d",
254
+ * "CharacterSetName": "SQL_Latin1_General_CP1_CI_AS",
255
+ * "DBInstanceClass": "db.r4.large",
256
+ * "DBInstanceIdentifier": "database-2",
257
+ * "DBInstanceStatus": "available",
258
+ * "DBParameterGroups": [
259
+ * {
260
+ * "DBParameterGroupName": "test-sqlserver-se-2017",
261
+ * "ParameterApplyStatus": "applying"
262
+ * }
263
+ * ],
264
+ * "DeletionProtection": false,
265
+ * "Engine": "sqlserver-se",
266
+ * "EngineVersion": "14.00.3281.6.v1",
267
+ * "LicenseModel": "license-included",
268
+ * "MaxAllocatedStorage": 1000,
269
+ * "MultiAZ": true,
270
+ * "OptionGroupMemberships": [
271
+ * {
272
+ * "OptionGroupName": "test-se-2017",
273
+ * "Status": "pending-apply"
274
+ * }
275
+ * ],
276
+ * "PubliclyAccessible": true,
277
+ * "ReadReplicaDBInstanceIdentifiers": [],
278
+ * "SecondaryAvailabilityZone": "us-west-2c",
279
+ * "StorageType": "gp2"
280
+ * }
281
+ * }
282
+ * *\/
283
+ * // example id: to-modify-a-db-instance-1680377584537
284
+ * ```
285
+ *
237
286
  */
238
287
  export declare class ModifyDBInstanceCommand extends $Command<ModifyDBInstanceCommandInput, ModifyDBInstanceCommandOutput, RDSClientResolvedConfig> {
239
288
  readonly input: ModifyDBInstanceCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rds",
3
3
  "description": "AWS SDK for JavaScript Rds Client for Node.js, Browser and React Native",
4
- "version": "3.316.0",
4
+ "version": "3.319.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.316.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.316.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -33,11 +33,11 @@
33
33
  "@aws-sdk/middleware-logger": "3.310.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
35
  "@aws-sdk/middleware-retry": "3.310.0",
36
- "@aws-sdk/middleware-sdk-rds": "3.310.0",
36
+ "@aws-sdk/middleware-sdk-rds": "3.319.0",
37
37
  "@aws-sdk/middleware-serde": "3.310.0",
38
38
  "@aws-sdk/middleware-signing": "3.310.0",
39
39
  "@aws-sdk/middleware-stack": "3.310.0",
40
- "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/middleware-user-agent": "3.319.0",
41
41
  "@aws-sdk/node-config-provider": "3.310.0",
42
42
  "@aws-sdk/node-http-handler": "3.310.0",
43
43
  "@aws-sdk/protocol-http": "3.310.0",
@@ -49,7 +49,7 @@
49
49
  "@aws-sdk/util-body-length-node": "3.310.0",
50
50
  "@aws-sdk/util-defaults-mode-browser": "3.316.0",
51
51
  "@aws-sdk/util-defaults-mode-node": "3.316.0",
52
- "@aws-sdk/util-endpoints": "3.310.0",
52
+ "@aws-sdk/util-endpoints": "3.319.0",
53
53
  "@aws-sdk/util-retry": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-browser": "3.310.0",
55
55
  "@aws-sdk/util-user-agent-node": "3.310.0",