@aws-sdk/client-rds 3.216.0 → 3.218.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.
Files changed (63) hide show
  1. package/dist-cjs/RDS.js +60 -0
  2. package/dist-cjs/commands/CreateBlueGreenDeploymentCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteBlueGreenDeploymentCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeBlueGreenDeploymentsCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeDBProxyTargetGroupsCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeDBProxyTargetsCommand.js +3 -3
  7. package/dist-cjs/commands/DescribeDBSecurityGroupsCommand.js +3 -3
  8. package/dist-cjs/commands/SwitchoverBlueGreenDeploymentCommand.js +46 -0
  9. package/dist-cjs/commands/index.js +4 -0
  10. package/dist-cjs/endpoint/ruleset.js +1 -1
  11. package/dist-cjs/models/models_0.js +150 -115
  12. package/dist-cjs/models/models_1.js +78 -4
  13. package/dist-cjs/pagination/DescribeBlueGreenDeploymentsPaginator.js +36 -0
  14. package/dist-cjs/pagination/index.js +2 -1
  15. package/dist-cjs/protocols/Aws_query.js +544 -6
  16. package/dist-es/RDS.js +60 -0
  17. package/dist-es/commands/CreateBlueGreenDeploymentCommand.js +42 -0
  18. package/dist-es/commands/DeleteBlueGreenDeploymentCommand.js +42 -0
  19. package/dist-es/commands/DescribeBlueGreenDeploymentsCommand.js +42 -0
  20. package/dist-es/commands/DescribeDBProxyTargetGroupsCommand.js +1 -1
  21. package/dist-es/commands/DescribeDBProxyTargetsCommand.js +1 -1
  22. package/dist-es/commands/DescribeDBSecurityGroupsCommand.js +1 -1
  23. package/dist-es/commands/SwitchoverBlueGreenDeploymentCommand.js +42 -0
  24. package/dist-es/commands/index.js +4 -0
  25. package/dist-es/endpoint/ruleset.js +1 -1
  26. package/dist-es/models/models_0.js +126 -95
  27. package/dist-es/models/models_1.js +62 -0
  28. package/dist-es/pagination/DescribeBlueGreenDeploymentsPaginator.js +32 -0
  29. package/dist-es/pagination/index.js +2 -1
  30. package/dist-es/protocols/Aws_query.js +531 -1
  31. package/dist-types/RDS.d.ts +59 -0
  32. package/dist-types/RDSClient.d.ts +6 -2
  33. package/dist-types/commands/CreateBlueGreenDeploymentCommand.d.ts +51 -0
  34. package/dist-types/commands/DeleteBlueGreenDeploymentCommand.d.ts +42 -0
  35. package/dist-types/commands/DescribeBlueGreenDeploymentsCommand.d.ts +42 -0
  36. package/dist-types/commands/DescribeDBProxyTargetGroupsCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeDBProxyTargetsCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeDBSecurityGroupsCommand.d.ts +1 -1
  39. package/dist-types/commands/SwitchoverBlueGreenDeploymentCommand.d.ts +44 -0
  40. package/dist-types/commands/index.d.ts +4 -0
  41. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  42. package/dist-types/models/models_0.d.ts +516 -431
  43. package/dist-types/models/models_1.d.ts +370 -1
  44. package/dist-types/pagination/DescribeBlueGreenDeploymentsPaginator.d.ts +4 -0
  45. package/dist-types/pagination/index.d.ts +2 -1
  46. package/dist-types/protocols/Aws_query.d.ts +12 -0
  47. package/dist-types/ts3.4/RDS.d.ts +68 -0
  48. package/dist-types/ts3.4/RDSClient.d.ts +24 -0
  49. package/dist-types/ts3.4/commands/CreateBlueGreenDeploymentCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/DeleteBlueGreenDeploymentCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/DescribeBlueGreenDeploymentsCommand.d.ts +41 -0
  52. package/dist-types/ts3.4/commands/DescribeDBProxyTargetGroupsCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/DescribeDBProxyTargetsCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/DescribeDBSecurityGroupsCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/SwitchoverBlueGreenDeploymentCommand.d.ts +41 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  58. package/dist-types/ts3.4/models/models_0.d.ts +153 -143
  59. package/dist-types/ts3.4/models/models_1.d.ts +128 -2
  60. package/dist-types/ts3.4/pagination/DescribeBlueGreenDeploymentsPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  62. package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
  63. package/package.json +3 -3
package/dist-es/RDS.js CHANGED
@@ -11,6 +11,7 @@ import { CopyDBClusterSnapshotCommand, } from "./commands/CopyDBClusterSnapshotC
11
11
  import { CopyDBParameterGroupCommand, } from "./commands/CopyDBParameterGroupCommand";
12
12
  import { CopyDBSnapshotCommand, } from "./commands/CopyDBSnapshotCommand";
13
13
  import { CopyOptionGroupCommand, } from "./commands/CopyOptionGroupCommand";
14
+ import { CreateBlueGreenDeploymentCommand, } from "./commands/CreateBlueGreenDeploymentCommand";
14
15
  import { CreateCustomDBEngineVersionCommand, } from "./commands/CreateCustomDBEngineVersionCommand";
15
16
  import { CreateDBClusterCommand, } from "./commands/CreateDBClusterCommand";
16
17
  import { CreateDBClusterEndpointCommand, } from "./commands/CreateDBClusterEndpointCommand";
@@ -27,6 +28,7 @@ import { CreateDBSubnetGroupCommand, } from "./commands/CreateDBSubnetGroupComma
27
28
  import { CreateEventSubscriptionCommand, } from "./commands/CreateEventSubscriptionCommand";
28
29
  import { CreateGlobalClusterCommand, } from "./commands/CreateGlobalClusterCommand";
29
30
  import { CreateOptionGroupCommand, } from "./commands/CreateOptionGroupCommand";
31
+ import { DeleteBlueGreenDeploymentCommand, } from "./commands/DeleteBlueGreenDeploymentCommand";
30
32
  import { DeleteCustomDBEngineVersionCommand, } from "./commands/DeleteCustomDBEngineVersionCommand";
31
33
  import { DeleteDBClusterCommand, } from "./commands/DeleteDBClusterCommand";
32
34
  import { DeleteDBClusterEndpointCommand, } from "./commands/DeleteDBClusterEndpointCommand";
@@ -45,6 +47,7 @@ import { DeleteGlobalClusterCommand, } from "./commands/DeleteGlobalClusterComma
45
47
  import { DeleteOptionGroupCommand, } from "./commands/DeleteOptionGroupCommand";
46
48
  import { DeregisterDBProxyTargetsCommand, } from "./commands/DeregisterDBProxyTargetsCommand";
47
49
  import { DescribeAccountAttributesCommand, } from "./commands/DescribeAccountAttributesCommand";
50
+ import { DescribeBlueGreenDeploymentsCommand, } from "./commands/DescribeBlueGreenDeploymentsCommand";
48
51
  import { DescribeCertificatesCommand, } from "./commands/DescribeCertificatesCommand";
49
52
  import { DescribeDBClusterBacktracksCommand, } from "./commands/DescribeDBClusterBacktracksCommand";
50
53
  import { DescribeDBClusterEndpointsCommand, } from "./commands/DescribeDBClusterEndpointsCommand";
@@ -134,6 +137,7 @@ import { StopActivityStreamCommand, } from "./commands/StopActivityStreamCommand
134
137
  import { StopDBClusterCommand, } from "./commands/StopDBClusterCommand";
135
138
  import { StopDBInstanceAutomatedBackupsReplicationCommand, } from "./commands/StopDBInstanceAutomatedBackupsReplicationCommand";
136
139
  import { StopDBInstanceCommand, } from "./commands/StopDBInstanceCommand";
140
+ import { SwitchoverBlueGreenDeploymentCommand, } from "./commands/SwitchoverBlueGreenDeploymentCommand";
137
141
  import { SwitchoverReadReplicaCommand, } from "./commands/SwitchoverReadReplicaCommand";
138
142
  import { RDSClient } from "./RDSClient";
139
143
  export class RDS extends RDSClient {
@@ -319,6 +323,20 @@ export class RDS extends RDSClient {
319
323
  return this.send(command, optionsOrCb);
320
324
  }
321
325
  }
326
+ createBlueGreenDeployment(args, optionsOrCb, cb) {
327
+ const command = new CreateBlueGreenDeploymentCommand(args);
328
+ if (typeof optionsOrCb === "function") {
329
+ this.send(command, optionsOrCb);
330
+ }
331
+ else if (typeof cb === "function") {
332
+ if (typeof optionsOrCb !== "object")
333
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
+ this.send(command, optionsOrCb || {}, cb);
335
+ }
336
+ else {
337
+ return this.send(command, optionsOrCb);
338
+ }
339
+ }
322
340
  createCustomDBEngineVersion(args, optionsOrCb, cb) {
323
341
  const command = new CreateCustomDBEngineVersionCommand(args);
324
342
  if (typeof optionsOrCb === "function") {
@@ -543,6 +561,20 @@ export class RDS extends RDSClient {
543
561
  return this.send(command, optionsOrCb);
544
562
  }
545
563
  }
564
+ deleteBlueGreenDeployment(args, optionsOrCb, cb) {
565
+ const command = new DeleteBlueGreenDeploymentCommand(args);
566
+ if (typeof optionsOrCb === "function") {
567
+ this.send(command, optionsOrCb);
568
+ }
569
+ else if (typeof cb === "function") {
570
+ if (typeof optionsOrCb !== "object")
571
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
572
+ this.send(command, optionsOrCb || {}, cb);
573
+ }
574
+ else {
575
+ return this.send(command, optionsOrCb);
576
+ }
577
+ }
546
578
  deleteCustomDBEngineVersion(args, optionsOrCb, cb) {
547
579
  const command = new DeleteCustomDBEngineVersionCommand(args);
548
580
  if (typeof optionsOrCb === "function") {
@@ -795,6 +827,20 @@ export class RDS extends RDSClient {
795
827
  return this.send(command, optionsOrCb);
796
828
  }
797
829
  }
830
+ describeBlueGreenDeployments(args, optionsOrCb, cb) {
831
+ const command = new DescribeBlueGreenDeploymentsCommand(args);
832
+ if (typeof optionsOrCb === "function") {
833
+ this.send(command, optionsOrCb);
834
+ }
835
+ else if (typeof cb === "function") {
836
+ if (typeof optionsOrCb !== "object")
837
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
838
+ this.send(command, optionsOrCb || {}, cb);
839
+ }
840
+ else {
841
+ return this.send(command, optionsOrCb);
842
+ }
843
+ }
798
844
  describeCertificates(args, optionsOrCb, cb) {
799
845
  const command = new DescribeCertificatesCommand(args);
800
846
  if (typeof optionsOrCb === "function") {
@@ -2041,6 +2087,20 @@ export class RDS extends RDSClient {
2041
2087
  return this.send(command, optionsOrCb);
2042
2088
  }
2043
2089
  }
2090
+ switchoverBlueGreenDeployment(args, optionsOrCb, cb) {
2091
+ const command = new SwitchoverBlueGreenDeploymentCommand(args);
2092
+ if (typeof optionsOrCb === "function") {
2093
+ this.send(command, optionsOrCb);
2094
+ }
2095
+ else if (typeof cb === "function") {
2096
+ if (typeof optionsOrCb !== "object")
2097
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2098
+ this.send(command, optionsOrCb || {}, cb);
2099
+ }
2100
+ else {
2101
+ return this.send(command, optionsOrCb);
2102
+ }
2103
+ }
2044
2104
  switchoverReadReplica(args, optionsOrCb, cb) {
2045
2105
  const command = new SwitchoverReadReplicaCommand(args);
2046
2106
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateBlueGreenDeploymentRequestFilterSensitiveLog, CreateBlueGreenDeploymentResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_queryCreateBlueGreenDeploymentCommand, serializeAws_queryCreateBlueGreenDeploymentCommand, } from "../protocols/Aws_query";
6
+ export class CreateBlueGreenDeploymentCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateBlueGreenDeploymentCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RDSClient";
25
+ const commandName = "CreateBlueGreenDeploymentCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateBlueGreenDeploymentRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateBlueGreenDeploymentResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_queryCreateBlueGreenDeploymentCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_queryCreateBlueGreenDeploymentCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteBlueGreenDeploymentRequestFilterSensitiveLog, DeleteBlueGreenDeploymentResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_queryDeleteBlueGreenDeploymentCommand, serializeAws_queryDeleteBlueGreenDeploymentCommand, } from "../protocols/Aws_query";
6
+ export class DeleteBlueGreenDeploymentCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteBlueGreenDeploymentCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RDSClient";
25
+ const commandName = "DeleteBlueGreenDeploymentCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteBlueGreenDeploymentRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeleteBlueGreenDeploymentResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_queryDeleteBlueGreenDeploymentCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_queryDeleteBlueGreenDeploymentCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeBlueGreenDeploymentsRequestFilterSensitiveLog, DescribeBlueGreenDeploymentsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_queryDescribeBlueGreenDeploymentsCommand, serializeAws_queryDescribeBlueGreenDeploymentsCommand, } from "../protocols/Aws_query";
6
+ export class DescribeBlueGreenDeploymentsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeBlueGreenDeploymentsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RDSClient";
25
+ const commandName = "DescribeBlueGreenDeploymentsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribeBlueGreenDeploymentsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribeBlueGreenDeploymentsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_queryDescribeBlueGreenDeploymentsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_queryDescribeBlueGreenDeploymentsCommand(output, context);
41
+ }
42
+ }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeDBProxyTargetGroupsRequestFilterSensitiveLog, DescribeDBProxyTargetGroupsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { DescribeDBProxyTargetGroupsRequestFilterSensitiveLog, DescribeDBProxyTargetGroupsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_queryDescribeDBProxyTargetGroupsCommand, serializeAws_queryDescribeDBProxyTargetGroupsCommand, } from "../protocols/Aws_query";
6
6
  export class DescribeDBProxyTargetGroupsCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeDBProxyTargetsRequestFilterSensitiveLog, DescribeDBProxyTargetsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { DescribeDBProxyTargetsRequestFilterSensitiveLog, DescribeDBProxyTargetsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_queryDescribeDBProxyTargetsCommand, serializeAws_queryDescribeDBProxyTargetsCommand, } from "../protocols/Aws_query";
6
6
  export class DescribeDBProxyTargetsCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DBSecurityGroupMessageFilterSensitiveLog, DescribeDBSecurityGroupsMessageFilterSensitiveLog, } from "../models/models_0";
4
+ import { DBSecurityGroupMessageFilterSensitiveLog, DescribeDBSecurityGroupsMessageFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_queryDescribeDBSecurityGroupsCommand, serializeAws_queryDescribeDBSecurityGroupsCommand, } from "../protocols/Aws_query";
6
6
  export class DescribeDBSecurityGroupsCommand extends $Command {
7
7
  constructor(input) {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { SwitchoverBlueGreenDeploymentRequestFilterSensitiveLog, SwitchoverBlueGreenDeploymentResponseFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_querySwitchoverBlueGreenDeploymentCommand, serializeAws_querySwitchoverBlueGreenDeploymentCommand, } from "../protocols/Aws_query";
6
+ export class SwitchoverBlueGreenDeploymentCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, SwitchoverBlueGreenDeploymentCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RDSClient";
25
+ const commandName = "SwitchoverBlueGreenDeploymentCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: SwitchoverBlueGreenDeploymentRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: SwitchoverBlueGreenDeploymentResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_querySwitchoverBlueGreenDeploymentCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_querySwitchoverBlueGreenDeploymentCommand(output, context);
41
+ }
42
+ }
@@ -11,6 +11,7 @@ export * from "./CopyDBClusterSnapshotCommand";
11
11
  export * from "./CopyDBParameterGroupCommand";
12
12
  export * from "./CopyDBSnapshotCommand";
13
13
  export * from "./CopyOptionGroupCommand";
14
+ export * from "./CreateBlueGreenDeploymentCommand";
14
15
  export * from "./CreateCustomDBEngineVersionCommand";
15
16
  export * from "./CreateDBClusterCommand";
16
17
  export * from "./CreateDBClusterEndpointCommand";
@@ -27,6 +28,7 @@ export * from "./CreateDBSubnetGroupCommand";
27
28
  export * from "./CreateEventSubscriptionCommand";
28
29
  export * from "./CreateGlobalClusterCommand";
29
30
  export * from "./CreateOptionGroupCommand";
31
+ export * from "./DeleteBlueGreenDeploymentCommand";
30
32
  export * from "./DeleteCustomDBEngineVersionCommand";
31
33
  export * from "./DeleteDBClusterCommand";
32
34
  export * from "./DeleteDBClusterEndpointCommand";
@@ -45,6 +47,7 @@ export * from "./DeleteGlobalClusterCommand";
45
47
  export * from "./DeleteOptionGroupCommand";
46
48
  export * from "./DeregisterDBProxyTargetsCommand";
47
49
  export * from "./DescribeAccountAttributesCommand";
50
+ export * from "./DescribeBlueGreenDeploymentsCommand";
48
51
  export * from "./DescribeCertificatesCommand";
49
52
  export * from "./DescribeDBClusterBacktracksCommand";
50
53
  export * from "./DescribeDBClusterEndpointsCommand";
@@ -134,4 +137,5 @@ export * from "./StopActivityStreamCommand";
134
137
  export * from "./StopDBClusterCommand";
135
138
  export * from "./StopDBInstanceAutomatedBackupsReplicationCommand";
136
139
  export * from "./StopDBInstanceCommand";
140
+ export * from "./SwitchoverBlueGreenDeploymentCommand";
137
141
  export * from "./SwitchoverReadReplicaCommand";
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -431,6 +431,78 @@ export class OptionGroupQuotaExceededFault extends __BaseException {
431
431
  Object.setPrototypeOf(this, OptionGroupQuotaExceededFault.prototype);
432
432
  }
433
433
  }
434
+ export class BlueGreenDeploymentAlreadyExistsFault extends __BaseException {
435
+ constructor(opts) {
436
+ super({
437
+ name: "BlueGreenDeploymentAlreadyExistsFault",
438
+ $fault: "client",
439
+ ...opts,
440
+ });
441
+ this.name = "BlueGreenDeploymentAlreadyExistsFault";
442
+ this.$fault = "client";
443
+ Object.setPrototypeOf(this, BlueGreenDeploymentAlreadyExistsFault.prototype);
444
+ }
445
+ }
446
+ export class DBClusterParameterGroupNotFoundFault extends __BaseException {
447
+ constructor(opts) {
448
+ super({
449
+ name: "DBClusterParameterGroupNotFoundFault",
450
+ $fault: "client",
451
+ ...opts,
452
+ });
453
+ this.name = "DBClusterParameterGroupNotFoundFault";
454
+ this.$fault = "client";
455
+ Object.setPrototypeOf(this, DBClusterParameterGroupNotFoundFault.prototype);
456
+ }
457
+ }
458
+ export class DBClusterQuotaExceededFault extends __BaseException {
459
+ constructor(opts) {
460
+ super({
461
+ name: "DBClusterQuotaExceededFault",
462
+ $fault: "client",
463
+ ...opts,
464
+ });
465
+ this.name = "DBClusterQuotaExceededFault";
466
+ this.$fault = "client";
467
+ Object.setPrototypeOf(this, DBClusterQuotaExceededFault.prototype);
468
+ }
469
+ }
470
+ export class InstanceQuotaExceededFault extends __BaseException {
471
+ constructor(opts) {
472
+ super({
473
+ name: "InstanceQuotaExceededFault",
474
+ $fault: "client",
475
+ ...opts,
476
+ });
477
+ this.name = "InstanceQuotaExceededFault";
478
+ this.$fault = "client";
479
+ Object.setPrototypeOf(this, InstanceQuotaExceededFault.prototype);
480
+ }
481
+ }
482
+ export class SourceClusterNotSupportedFault extends __BaseException {
483
+ constructor(opts) {
484
+ super({
485
+ name: "SourceClusterNotSupportedFault",
486
+ $fault: "client",
487
+ ...opts,
488
+ });
489
+ this.name = "SourceClusterNotSupportedFault";
490
+ this.$fault = "client";
491
+ Object.setPrototypeOf(this, SourceClusterNotSupportedFault.prototype);
492
+ }
493
+ }
494
+ export class SourceDatabaseNotSupportedFault extends __BaseException {
495
+ constructor(opts) {
496
+ super({
497
+ name: "SourceDatabaseNotSupportedFault",
498
+ $fault: "client",
499
+ ...opts,
500
+ });
501
+ this.name = "SourceDatabaseNotSupportedFault";
502
+ this.$fault = "client";
503
+ Object.setPrototypeOf(this, SourceDatabaseNotSupportedFault.prototype);
504
+ }
505
+ }
434
506
  export class CustomDBEngineVersionAlreadyExistsFault extends __BaseException {
435
507
  constructor(opts) {
436
508
  super({
@@ -475,30 +547,6 @@ export class DBClusterAlreadyExistsFault extends __BaseException {
475
547
  Object.setPrototypeOf(this, DBClusterAlreadyExistsFault.prototype);
476
548
  }
477
549
  }
478
- export class DBClusterParameterGroupNotFoundFault extends __BaseException {
479
- constructor(opts) {
480
- super({
481
- name: "DBClusterParameterGroupNotFoundFault",
482
- $fault: "client",
483
- ...opts,
484
- });
485
- this.name = "DBClusterParameterGroupNotFoundFault";
486
- this.$fault = "client";
487
- Object.setPrototypeOf(this, DBClusterParameterGroupNotFoundFault.prototype);
488
- }
489
- }
490
- export class DBClusterQuotaExceededFault extends __BaseException {
491
- constructor(opts) {
492
- super({
493
- name: "DBClusterQuotaExceededFault",
494
- $fault: "client",
495
- ...opts,
496
- });
497
- this.name = "DBClusterQuotaExceededFault";
498
- this.$fault = "client";
499
- Object.setPrototypeOf(this, DBClusterQuotaExceededFault.prototype);
500
- }
501
- }
502
550
  export class DBSubnetGroupDoesNotCoverEnoughAZs extends __BaseException {
503
551
  constructor(opts) {
504
552
  super({
@@ -689,18 +737,6 @@ export class DBInstanceAlreadyExistsFault extends __BaseException {
689
737
  Object.setPrototypeOf(this, DBInstanceAlreadyExistsFault.prototype);
690
738
  }
691
739
  }
692
- export class InstanceQuotaExceededFault extends __BaseException {
693
- constructor(opts) {
694
- super({
695
- name: "InstanceQuotaExceededFault",
696
- $fault: "client",
697
- ...opts,
698
- });
699
- this.name = "InstanceQuotaExceededFault";
700
- this.$fault = "client";
701
- Object.setPrototypeOf(this, InstanceQuotaExceededFault.prototype);
702
- }
703
- }
704
740
  export class InsufficientDBInstanceCapacityFault extends __BaseException {
705
741
  constructor(opts) {
706
742
  super({
@@ -1049,6 +1085,30 @@ export class GlobalClusterQuotaExceededFault extends __BaseException {
1049
1085
  Object.setPrototypeOf(this, GlobalClusterQuotaExceededFault.prototype);
1050
1086
  }
1051
1087
  }
1088
+ export class BlueGreenDeploymentNotFoundFault extends __BaseException {
1089
+ constructor(opts) {
1090
+ super({
1091
+ name: "BlueGreenDeploymentNotFoundFault",
1092
+ $fault: "client",
1093
+ ...opts,
1094
+ });
1095
+ this.name = "BlueGreenDeploymentNotFoundFault";
1096
+ this.$fault = "client";
1097
+ Object.setPrototypeOf(this, BlueGreenDeploymentNotFoundFault.prototype);
1098
+ }
1099
+ }
1100
+ export class InvalidBlueGreenDeploymentStateFault extends __BaseException {
1101
+ constructor(opts) {
1102
+ super({
1103
+ name: "InvalidBlueGreenDeploymentStateFault",
1104
+ $fault: "client",
1105
+ ...opts,
1106
+ });
1107
+ this.name = "InvalidBlueGreenDeploymentStateFault";
1108
+ this.$fault = "client";
1109
+ Object.setPrototypeOf(this, InvalidBlueGreenDeploymentStateFault.prototype);
1110
+ }
1111
+ }
1052
1112
  export class CustomDBEngineVersionNotFoundFault extends __BaseException {
1053
1113
  constructor(opts) {
1054
1114
  super({
@@ -1246,32 +1306,6 @@ export var ApplyMethod;
1246
1306
  ApplyMethod["immediate"] = "immediate";
1247
1307
  ApplyMethod["pending_reboot"] = "pending-reboot";
1248
1308
  })(ApplyMethod || (ApplyMethod = {}));
1249
- export var TargetRole;
1250
- (function (TargetRole) {
1251
- TargetRole["READ_ONLY"] = "READ_ONLY";
1252
- TargetRole["READ_WRITE"] = "READ_WRITE";
1253
- TargetRole["UNKNOWN"] = "UNKNOWN";
1254
- })(TargetRole || (TargetRole = {}));
1255
- export var TargetHealthReason;
1256
- (function (TargetHealthReason) {
1257
- TargetHealthReason["AUTH_FAILURE"] = "AUTH_FAILURE";
1258
- TargetHealthReason["CONNECTION_FAILED"] = "CONNECTION_FAILED";
1259
- TargetHealthReason["INVALID_REPLICATION_STATE"] = "INVALID_REPLICATION_STATE";
1260
- TargetHealthReason["PENDING_PROXY_CAPACITY"] = "PENDING_PROXY_CAPACITY";
1261
- TargetHealthReason["UNREACHABLE"] = "UNREACHABLE";
1262
- })(TargetHealthReason || (TargetHealthReason = {}));
1263
- export var TargetState;
1264
- (function (TargetState) {
1265
- TargetState["available"] = "AVAILABLE";
1266
- TargetState["registering"] = "REGISTERING";
1267
- TargetState["unavailable"] = "UNAVAILABLE";
1268
- })(TargetState || (TargetState = {}));
1269
- export var TargetType;
1270
- (function (TargetType) {
1271
- TargetType["RDS_INSTANCE"] = "RDS_INSTANCE";
1272
- TargetType["RDS_SERVERLESS_ENDPOINT"] = "RDS_SERVERLESS_ENDPOINT";
1273
- TargetType["TRACKED_CLUSTER"] = "TRACKED_CLUSTER";
1274
- })(TargetType || (TargetType = {}));
1275
1309
  export const AccountQuotaFilterSensitiveLog = (obj) => ({
1276
1310
  ...obj,
1277
1311
  });
@@ -1398,6 +1432,21 @@ export const OptionGroupFilterSensitiveLog = (obj) => ({
1398
1432
  export const CopyOptionGroupResultFilterSensitiveLog = (obj) => ({
1399
1433
  ...obj,
1400
1434
  });
1435
+ export const CreateBlueGreenDeploymentRequestFilterSensitiveLog = (obj) => ({
1436
+ ...obj,
1437
+ });
1438
+ export const SwitchoverDetailFilterSensitiveLog = (obj) => ({
1439
+ ...obj,
1440
+ });
1441
+ export const BlueGreenDeploymentTaskFilterSensitiveLog = (obj) => ({
1442
+ ...obj,
1443
+ });
1444
+ export const BlueGreenDeploymentFilterSensitiveLog = (obj) => ({
1445
+ ...obj,
1446
+ });
1447
+ export const CreateBlueGreenDeploymentResponseFilterSensitiveLog = (obj) => ({
1448
+ ...obj,
1449
+ });
1401
1450
  export const CreateCustomDBEngineVersionMessageFilterSensitiveLog = (obj) => ({
1402
1451
  ...obj,
1403
1452
  });
@@ -1593,6 +1642,12 @@ export const CreateOptionGroupMessageFilterSensitiveLog = (obj) => ({
1593
1642
  export const CreateOptionGroupResultFilterSensitiveLog = (obj) => ({
1594
1643
  ...obj,
1595
1644
  });
1645
+ export const DeleteBlueGreenDeploymentRequestFilterSensitiveLog = (obj) => ({
1646
+ ...obj,
1647
+ });
1648
+ export const DeleteBlueGreenDeploymentResponseFilterSensitiveLog = (obj) => ({
1649
+ ...obj,
1650
+ });
1596
1651
  export const DeleteCustomDBEngineVersionMessageFilterSensitiveLog = (obj) => ({
1597
1652
  ...obj,
1598
1653
  });
@@ -1683,13 +1738,19 @@ export const DeregisterDBProxyTargetsResponseFilterSensitiveLog = (obj) => ({
1683
1738
  export const DescribeAccountAttributesMessageFilterSensitiveLog = (obj) => ({
1684
1739
  ...obj,
1685
1740
  });
1686
- export const CertificateFilterSensitiveLog = (obj) => ({
1741
+ export const FilterFilterSensitiveLog = (obj) => ({
1687
1742
  ...obj,
1688
1743
  });
1689
- export const CertificateMessageFilterSensitiveLog = (obj) => ({
1744
+ export const DescribeBlueGreenDeploymentsRequestFilterSensitiveLog = (obj) => ({
1690
1745
  ...obj,
1691
1746
  });
1692
- export const FilterFilterSensitiveLog = (obj) => ({
1747
+ export const DescribeBlueGreenDeploymentsResponseFilterSensitiveLog = (obj) => ({
1748
+ ...obj,
1749
+ });
1750
+ export const CertificateFilterSensitiveLog = (obj) => ({
1751
+ ...obj,
1752
+ });
1753
+ export const CertificateMessageFilterSensitiveLog = (obj) => ({
1693
1754
  ...obj,
1694
1755
  });
1695
1756
  export const DescribeCertificatesMessageFilterSensitiveLog = (obj) => ({
@@ -1797,33 +1858,3 @@ export const DescribeDBProxyEndpointsRequestFilterSensitiveLog = (obj) => ({
1797
1858
  export const DescribeDBProxyEndpointsResponseFilterSensitiveLog = (obj) => ({
1798
1859
  ...obj,
1799
1860
  });
1800
- export const DescribeDBProxyTargetGroupsRequestFilterSensitiveLog = (obj) => ({
1801
- ...obj,
1802
- });
1803
- export const ConnectionPoolConfigurationInfoFilterSensitiveLog = (obj) => ({
1804
- ...obj,
1805
- });
1806
- export const DBProxyTargetGroupFilterSensitiveLog = (obj) => ({
1807
- ...obj,
1808
- });
1809
- export const DescribeDBProxyTargetGroupsResponseFilterSensitiveLog = (obj) => ({
1810
- ...obj,
1811
- });
1812
- export const DescribeDBProxyTargetsRequestFilterSensitiveLog = (obj) => ({
1813
- ...obj,
1814
- });
1815
- export const TargetHealthFilterSensitiveLog = (obj) => ({
1816
- ...obj,
1817
- });
1818
- export const DBProxyTargetFilterSensitiveLog = (obj) => ({
1819
- ...obj,
1820
- });
1821
- export const DescribeDBProxyTargetsResponseFilterSensitiveLog = (obj) => ({
1822
- ...obj,
1823
- });
1824
- export const DBSecurityGroupMessageFilterSensitiveLog = (obj) => ({
1825
- ...obj,
1826
- });
1827
- export const DescribeDBSecurityGroupsMessageFilterSensitiveLog = (obj) => ({
1828
- ...obj,
1829
- });