@aws-sdk/client-rds 3.489.0 → 3.495.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/RDS.js +1 -323
- package/dist-cjs/RDSClient.js +1 -56
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -43
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-cjs/commands/AddRoleToDBClusterCommand.js +1 -28
- package/dist-cjs/commands/AddRoleToDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/AddSourceIdentifierToSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/AddTagsToResourceCommand.js +1 -28
- package/dist-cjs/commands/ApplyPendingMaintenanceActionCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeDBSecurityGroupIngressCommand.js +1 -28
- package/dist-cjs/commands/BacktrackDBClusterCommand.js +1 -28
- package/dist-cjs/commands/CancelExportTaskCommand.js +1 -28
- package/dist-cjs/commands/CopyDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CopyDBClusterSnapshotCommand.js +1 -30
- package/dist-cjs/commands/CopyDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CopyDBSnapshotCommand.js +1 -30
- package/dist-cjs/commands/CopyOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateBlueGreenDeploymentCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomDBEngineVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateDBClusterCommand.js +1 -30
- package/dist-cjs/commands/CreateDBClusterEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateDBClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/CreateDBInstanceReadReplicaCommand.js +1 -30
- package/dist-cjs/commands/CreateDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateDBProxyCommand.js +1 -28
- package/dist-cjs/commands/CreateDBProxyEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateDBSecurityGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateDBSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/CreateIntegrationCommand.js +1 -28
- package/dist-cjs/commands/CreateOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateTenantDatabaseCommand.js +1 -29
- package/dist-cjs/commands/DeleteBlueGreenDeploymentCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomDBEngineVersionCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterAutomatedBackupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBInstanceAutomatedBackupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBProxyCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBProxyEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBSecurityGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteDBSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteIntegrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteTenantDatabaseCommand.js +1 -29
- package/dist-cjs/commands/DeregisterDBProxyTargetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeBlueGreenDeploymentsCommand.js +1 -28
- package/dist-cjs/commands/DescribeCertificatesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterAutomatedBackupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterBacktracksCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterEndpointsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterParameterGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterSnapshotAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClusterSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBEngineVersionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBInstanceAutomatedBackupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBInstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBLogFilesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBParameterGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxiesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxyEndpointsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxyTargetGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBProxyTargetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBRecommendationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSecurityGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSnapshotAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSnapshotTenantDatabasesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDBSubnetGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeEngineDefaultClusterParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEngineDefaultParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventCategoriesCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventsCommand.js +1 -28
- package/dist-cjs/commands/DescribeExportTasksCommand.js +1 -28
- package/dist-cjs/commands/DescribeGlobalClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeIntegrationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOptionGroupOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOptionGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOrderableDBInstanceOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribePendingMaintenanceActionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedDBInstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedDBInstancesOfferingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSourceRegionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTenantDatabasesCommand.js +1 -29
- package/dist-cjs/commands/DescribeValidDBInstanceModificationsCommand.js +1 -28
- package/dist-cjs/commands/DisableHttpEndpointCommand.js +1 -28
- package/dist-cjs/commands/DownloadDBLogFilePortionCommand.js +1 -28
- package/dist-cjs/commands/EnableHttpEndpointCommand.js +1 -28
- package/dist-cjs/commands/FailoverDBClusterCommand.js +1 -28
- package/dist-cjs/commands/FailoverGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ModifyActivityStreamCommand.js +1 -28
- package/dist-cjs/commands/ModifyCertificatesCommand.js +1 -28
- package/dist-cjs/commands/ModifyCurrentDBClusterCapacityCommand.js +1 -28
- package/dist-cjs/commands/ModifyCustomDBEngineVersionCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterEndpointCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBClusterSnapshotAttributeCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBProxyCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBProxyEndpointCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBProxyTargetGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBRecommendationCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBSnapshotAttributeCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/ModifyDBSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/ModifyGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/ModifyOptionGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyTenantDatabaseCommand.js +1 -29
- package/dist-cjs/commands/PromoteReadReplicaCommand.js +1 -28
- package/dist-cjs/commands/PromoteReadReplicaDBClusterCommand.js +1 -28
- package/dist-cjs/commands/PurchaseReservedDBInstancesOfferingCommand.js +1 -28
- package/dist-cjs/commands/RebootDBClusterCommand.js +1 -28
- package/dist-cjs/commands/RebootDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/RegisterDBProxyTargetsCommand.js +1 -28
- package/dist-cjs/commands/RemoveFromGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/RemoveRoleFromDBClusterCommand.js +1 -28
- package/dist-cjs/commands/RemoveRoleFromDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +1 -28
- package/dist-cjs/commands/ResetDBClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ResetDBParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBClusterFromS3Command.js +1 -28
- package/dist-cjs/commands/RestoreDBClusterFromSnapshotCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBClusterToPointInTimeCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBInstanceFromDBSnapshotCommand.js +1 -28
- package/dist-cjs/commands/RestoreDBInstanceFromS3Command.js +1 -28
- package/dist-cjs/commands/RestoreDBInstanceToPointInTimeCommand.js +1 -28
- package/dist-cjs/commands/RevokeDBSecurityGroupIngressCommand.js +1 -28
- package/dist-cjs/commands/StartActivityStreamCommand.js +1 -28
- package/dist-cjs/commands/StartDBClusterCommand.js +1 -28
- package/dist-cjs/commands/StartDBInstanceAutomatedBackupsReplicationCommand.js +1 -30
- package/dist-cjs/commands/StartDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/StartExportTaskCommand.js +1 -28
- package/dist-cjs/commands/StopActivityStreamCommand.js +1 -28
- package/dist-cjs/commands/StopDBClusterCommand.js +1 -28
- package/dist-cjs/commands/StopDBInstanceAutomatedBackupsReplicationCommand.js +1 -28
- package/dist-cjs/commands/StopDBInstanceCommand.js +1 -28
- package/dist-cjs/commands/SwitchoverBlueGreenDeploymentCommand.js +1 -28
- package/dist-cjs/commands/SwitchoverGlobalClusterCommand.js +1 -28
- package/dist-cjs/commands/SwitchoverReadReplicaCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -159
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +29053 -12
- package/dist-cjs/models/RDSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -5
- package/dist-cjs/models/models_0.js +1 -1618
- package/dist-cjs/models/models_1.js +1 -394
- package/dist-cjs/pagination/DescribeBlueGreenDeploymentsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeCertificatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterAutomatedBackupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterBacktracksPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterParameterGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClusterSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBClustersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBEngineVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBInstanceAutomatedBackupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBLogFilesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBParameterGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxiesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxyEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxyTargetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBProxyTargetsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBRecommendationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSecurityGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSnapshotTenantDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDBSubnetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEngineDefaultParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeExportTasksPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeGlobalClustersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeIntegrationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOptionGroupOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOptionGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribePendingMaintenanceActionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedDBInstancesOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedDBInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSourceRegionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTenantDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/DownloadDBLogFilePortionPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -43
- package/dist-cjs/protocols/Aws_query.js +1 -22137
- package/dist-cjs/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeExtensions.js +1 -25
- package/dist-cjs/waiters/index.js +1 -13
- package/dist-cjs/waiters/waitForDBClusterAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBClusterDeleted.js +1 -99
- package/dist-cjs/waiters/waitForDBClusterSnapshotAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBClusterSnapshotDeleted.js +1 -99
- package/dist-cjs/waiters/waitForDBInstanceAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBInstanceDeleted.js +1 -99
- package/dist-cjs/waiters/waitForDBSnapshotAvailable.js +1 -119
- package/dist-cjs/waiters/waitForDBSnapshotDeleted.js +1 -99
- package/dist-cjs/waiters/waitForTenantDatabaseAvailable.js +1 -89
- package/dist-cjs/waiters/waitForTenantDatabaseDeleted.js +1 -39
- package/dist-es/RDSClient.js +8 -8
- package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/RDSClient.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/ts3.4/RDSClient.d.ts +2 -2
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
- package/package.json +42 -42
|
@@ -1,99 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBInstanceDeleted = exports.waitForDBInstanceDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBInstancesCommand_1 = require("../commands/DescribeDBInstancesCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBInstancesCommand_1.DescribeDBInstancesCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.DBInstances.length == 0.0;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() == true) {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
23
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
24
|
-
return element_2.DBInstanceStatus;
|
|
25
|
-
});
|
|
26
|
-
return projection_3;
|
|
27
|
-
};
|
|
28
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
29
|
-
if (anyStringEq_4 == "creating") {
|
|
30
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) { }
|
|
35
|
-
try {
|
|
36
|
-
const returnComparator = () => {
|
|
37
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
38
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
39
|
-
return element_2.DBInstanceStatus;
|
|
40
|
-
});
|
|
41
|
-
return projection_3;
|
|
42
|
-
};
|
|
43
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
44
|
-
if (anyStringEq_4 == "modifying") {
|
|
45
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (e) { }
|
|
50
|
-
try {
|
|
51
|
-
const returnComparator = () => {
|
|
52
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
53
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
54
|
-
return element_2.DBInstanceStatus;
|
|
55
|
-
});
|
|
56
|
-
return projection_3;
|
|
57
|
-
};
|
|
58
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
59
|
-
if (anyStringEq_4 == "rebooting") {
|
|
60
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e) { }
|
|
65
|
-
try {
|
|
66
|
-
const returnComparator = () => {
|
|
67
|
-
const flat_1 = [].concat(...result.DBInstances);
|
|
68
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
69
|
-
return element_2.DBInstanceStatus;
|
|
70
|
-
});
|
|
71
|
-
return projection_3;
|
|
72
|
-
};
|
|
73
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
74
|
-
if (anyStringEq_4 == "resetting-master-credentials") {
|
|
75
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e) { }
|
|
80
|
-
}
|
|
81
|
-
catch (exception) {
|
|
82
|
-
reason = exception;
|
|
83
|
-
if (exception.name && exception.name == "DBInstanceNotFound") {
|
|
84
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
88
|
-
};
|
|
89
|
-
const waitForDBInstanceDeleted = async (params, input) => {
|
|
90
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
91
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
92
|
-
};
|
|
93
|
-
exports.waitForDBInstanceDeleted = waitForDBInstanceDeleted;
|
|
94
|
-
const waitUntilDBInstanceDeleted = async (params, input) => {
|
|
95
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
96
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
97
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
98
|
-
};
|
|
99
|
-
exports.waitUntilDBInstanceDeleted = waitUntilDBInstanceDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,119 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBSnapshotAvailable = exports.waitForDBSnapshotAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBSnapshotsCommand_1 = require("../commands/DescribeDBSnapshotsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBSnapshotsCommand_1.DescribeDBSnapshotsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleted") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
try {
|
|
44
|
-
const returnComparator = () => {
|
|
45
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
46
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
47
|
-
return element_2.Status;
|
|
48
|
-
});
|
|
49
|
-
return projection_3;
|
|
50
|
-
};
|
|
51
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
52
|
-
if (anyStringEq_4 == "deleting") {
|
|
53
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
try {
|
|
59
|
-
const returnComparator = () => {
|
|
60
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
61
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
62
|
-
return element_2.Status;
|
|
63
|
-
});
|
|
64
|
-
return projection_3;
|
|
65
|
-
};
|
|
66
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
67
|
-
if (anyStringEq_4 == "failed") {
|
|
68
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e) { }
|
|
73
|
-
try {
|
|
74
|
-
const returnComparator = () => {
|
|
75
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
76
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
77
|
-
return element_2.Status;
|
|
78
|
-
});
|
|
79
|
-
return projection_3;
|
|
80
|
-
};
|
|
81
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
82
|
-
if (anyStringEq_4 == "incompatible-restore") {
|
|
83
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
catch (e) { }
|
|
88
|
-
try {
|
|
89
|
-
const returnComparator = () => {
|
|
90
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
91
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
92
|
-
return element_2.Status;
|
|
93
|
-
});
|
|
94
|
-
return projection_3;
|
|
95
|
-
};
|
|
96
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
97
|
-
if (anyStringEq_4 == "incompatible-parameters") {
|
|
98
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch (e) { }
|
|
103
|
-
}
|
|
104
|
-
catch (exception) {
|
|
105
|
-
reason = exception;
|
|
106
|
-
}
|
|
107
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
108
|
-
};
|
|
109
|
-
const waitForDBSnapshotAvailable = async (params, input) => {
|
|
110
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
111
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
112
|
-
};
|
|
113
|
-
exports.waitForDBSnapshotAvailable = waitForDBSnapshotAvailable;
|
|
114
|
-
const waitUntilDBSnapshotAvailable = async (params, input) => {
|
|
115
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
116
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
117
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
118
|
-
};
|
|
119
|
-
exports.waitUntilDBSnapshotAvailable = waitUntilDBSnapshotAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,99 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilDBSnapshotDeleted = exports.waitForDBSnapshotDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeDBSnapshotsCommand_1 = require("../commands/DescribeDBSnapshotsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeDBSnapshotsCommand_1.DescribeDBSnapshotsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.DBSnapshots.length == 0.0;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() == true) {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
23
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
24
|
-
return element_2.Status;
|
|
25
|
-
});
|
|
26
|
-
return projection_3;
|
|
27
|
-
};
|
|
28
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
29
|
-
if (anyStringEq_4 == "creating") {
|
|
30
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) { }
|
|
35
|
-
try {
|
|
36
|
-
const returnComparator = () => {
|
|
37
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
38
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
39
|
-
return element_2.Status;
|
|
40
|
-
});
|
|
41
|
-
return projection_3;
|
|
42
|
-
};
|
|
43
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
44
|
-
if (anyStringEq_4 == "modifying") {
|
|
45
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (e) { }
|
|
50
|
-
try {
|
|
51
|
-
const returnComparator = () => {
|
|
52
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
53
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
54
|
-
return element_2.Status;
|
|
55
|
-
});
|
|
56
|
-
return projection_3;
|
|
57
|
-
};
|
|
58
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
59
|
-
if (anyStringEq_4 == "rebooting") {
|
|
60
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e) { }
|
|
65
|
-
try {
|
|
66
|
-
const returnComparator = () => {
|
|
67
|
-
const flat_1 = [].concat(...result.DBSnapshots);
|
|
68
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
69
|
-
return element_2.Status;
|
|
70
|
-
});
|
|
71
|
-
return projection_3;
|
|
72
|
-
};
|
|
73
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
74
|
-
if (anyStringEq_4 == "resetting-master-credentials") {
|
|
75
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e) { }
|
|
80
|
-
}
|
|
81
|
-
catch (exception) {
|
|
82
|
-
reason = exception;
|
|
83
|
-
if (exception.name && exception.name == "DBSnapshotNotFound") {
|
|
84
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
88
|
-
};
|
|
89
|
-
const waitForDBSnapshotDeleted = async (params, input) => {
|
|
90
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
91
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
92
|
-
};
|
|
93
|
-
exports.waitForDBSnapshotDeleted = waitForDBSnapshotDeleted;
|
|
94
|
-
const waitUntilDBSnapshotDeleted = async (params, input) => {
|
|
95
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
96
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
97
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
98
|
-
};
|
|
99
|
-
exports.waitUntilDBSnapshotDeleted = waitUntilDBSnapshotDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,89 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilTenantDatabaseAvailable = exports.waitForTenantDatabaseAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeTenantDatabasesCommand_1 = require("../commands/DescribeTenantDatabasesCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeTenantDatabasesCommand_1.DescribeTenantDatabasesCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.TenantDatabases);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.TenantDatabases);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleted") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
try {
|
|
44
|
-
const returnComparator = () => {
|
|
45
|
-
const flat_1 = [].concat(...result.TenantDatabases);
|
|
46
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
47
|
-
return element_2.Status;
|
|
48
|
-
});
|
|
49
|
-
return projection_3;
|
|
50
|
-
};
|
|
51
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
52
|
-
if (anyStringEq_4 == "incompatible-parameters") {
|
|
53
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
try {
|
|
59
|
-
const returnComparator = () => {
|
|
60
|
-
const flat_1 = [].concat(...result.TenantDatabases);
|
|
61
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
62
|
-
return element_2.Status;
|
|
63
|
-
});
|
|
64
|
-
return projection_3;
|
|
65
|
-
};
|
|
66
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
67
|
-
if (anyStringEq_4 == "incompatible-restore") {
|
|
68
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e) { }
|
|
73
|
-
}
|
|
74
|
-
catch (exception) {
|
|
75
|
-
reason = exception;
|
|
76
|
-
}
|
|
77
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
78
|
-
};
|
|
79
|
-
const waitForTenantDatabaseAvailable = async (params, input) => {
|
|
80
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
81
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
82
|
-
};
|
|
83
|
-
exports.waitForTenantDatabaseAvailable = waitForTenantDatabaseAvailable;
|
|
84
|
-
const waitUntilTenantDatabaseAvailable = async (params, input) => {
|
|
85
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
86
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
87
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
88
|
-
};
|
|
89
|
-
exports.waitUntilTenantDatabaseAvailable = waitUntilTenantDatabaseAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilTenantDatabaseDeleted = exports.waitForTenantDatabaseDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeTenantDatabasesCommand_1 = require("../commands/DescribeTenantDatabasesCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeTenantDatabasesCommand_1.DescribeTenantDatabasesCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.TenantDatabases.length == 0.0;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() == true) {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
}
|
|
21
|
-
catch (exception) {
|
|
22
|
-
reason = exception;
|
|
23
|
-
if (exception.name && exception.name == "DBInstanceNotFoundFault") {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
28
|
-
};
|
|
29
|
-
const waitForTenantDatabaseDeleted = async (params, input) => {
|
|
30
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
31
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
-
};
|
|
33
|
-
exports.waitForTenantDatabaseDeleted = waitForTenantDatabaseDeleted;
|
|
34
|
-
const waitUntilTenantDatabaseDeleted = async (params, input) => {
|
|
35
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
36
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
38
|
-
};
|
|
39
|
-
exports.waitUntilTenantDatabaseDeleted = waitUntilTenantDatabaseDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-es/RDSClient.js
CHANGED
|
@@ -14,14 +14,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class RDSClient extends __Client {
|
|
17
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
18
|
-
return defaultRDSHttpAuthSchemeParametersProvider;
|
|
19
|
-
}
|
|
20
|
-
getIdentityProviderConfigProvider() {
|
|
21
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
22
|
-
"aws.auth#sigv4": config.credentials,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
17
|
constructor(...[configuration]) {
|
|
26
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
27
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -49,4 +41,12 @@ export class RDSClient extends __Client {
|
|
|
49
41
|
destroy() {
|
|
50
42
|
super.destroy();
|
|
51
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultRDSHttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
2
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
3
|
export const defaultRDSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
@@ -34,7 +34,7 @@ export const defaultRDSHttpAuthSchemeProvider = (authParameters) => {
|
|
|
34
34
|
return options;
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
-
const config_0 =
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
38
|
return {
|
|
39
39
|
...config_0,
|
|
40
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
3
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
4
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -18,7 +18,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
18
|
{
|
|
19
19
|
schemeId: "aws.auth#sigv4",
|
|
20
20
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
-
signer: new
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
logger: config?.logger ?? new NoOpLogger(),
|
|
@@ -367,8 +367,6 @@ export declare class RDSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
367
367
|
* The resolved configuration of RDSClient class. This is resolved and normalized from the {@link RDSClientConfig | constructor configuration interface}.
|
|
368
368
|
*/
|
|
369
369
|
readonly config: RDSClientResolvedConfig;
|
|
370
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
371
|
-
private getIdentityProviderConfigProvider;
|
|
372
370
|
constructor(...[configuration]: __CheckOptionalClientConfig<RDSClientConfig>);
|
|
373
371
|
/**
|
|
374
372
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -376,4 +374,6 @@ export declare class RDSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
376
374
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
377
375
|
*/
|
|
378
376
|
destroy(): void;
|
|
377
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
378
|
+
private getIdentityProviderConfigProvider;
|
|
379
379
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
2
|
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
3
|
import { RDSClientResolvedConfig } from "../RDSClient";
|
|
4
4
|
/**
|
|
@@ -28,7 +28,7 @@ export declare const defaultRDSHttpAuthSchemeProvider: RDSHttpAuthSchemeProvider
|
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
32
|
/**
|
|
33
33
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
34
|
* @internal
|
|
@@ -43,7 +43,7 @@ export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
|
43
43
|
/**
|
|
44
44
|
* @internal
|
|
45
45
|
*/
|
|
46
|
-
export interface HttpAuthSchemeResolvedConfig extends
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
47
|
/**
|
|
48
48
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
49
|
* @internal
|
|
@@ -58,4 +58,4 @@ export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedCon
|
|
|
58
58
|
/**
|
|
59
59
|
* @internal
|
|
60
60
|
*/
|
|
61
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig &
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1046,8 +1046,8 @@ export declare class RDSClient extends __Client<
|
|
|
1046
1046
|
RDSClientResolvedConfig
|
|
1047
1047
|
> {
|
|
1048
1048
|
readonly config: RDSClientResolvedConfig;
|
|
1049
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
1050
|
-
private getIdentityProviderConfigProvider;
|
|
1051
1049
|
constructor(...[configuration]: __CheckOptionalClientConfig<RDSClientConfig>);
|
|
1052
1050
|
destroy(): void;
|
|
1051
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
1052
|
+
private getIdentityProviderConfigProvider;
|
|
1053
1053
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
5
|
} from "@aws-sdk/core";
|
|
6
6
|
import {
|
|
7
7
|
HandlerExecutionContext,
|
|
@@ -29,15 +29,15 @@ export declare const defaultRDSHttpAuthSchemeParametersProvider: (
|
|
|
29
29
|
export interface RDSHttpAuthSchemeProvider
|
|
30
30
|
extends HttpAuthSchemeProvider<RDSHttpAuthSchemeParameters> {}
|
|
31
31
|
export declare const defaultRDSHttpAuthSchemeProvider: RDSHttpAuthSchemeProvider;
|
|
32
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
32
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
33
33
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
34
34
|
httpAuthSchemeProvider?: RDSHttpAuthSchemeProvider;
|
|
35
35
|
}
|
|
36
36
|
export interface HttpAuthSchemeResolvedConfig
|
|
37
|
-
extends
|
|
37
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
38
38
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
39
39
|
readonly httpAuthSchemeProvider: RDSHttpAuthSchemeProvider;
|
|
40
40
|
}
|
|
41
41
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
42
|
-
config: T & HttpAuthSchemeInputConfig &
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
43
43
|
) => T & HttpAuthSchemeResolvedConfig;
|