@aws-sdk/client-dynamodb 3.971.0 → 3.974.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +182 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/waiters/index.js +4 -0
- package/dist-es/waiters/waitForContributorInsightsEnabled.js +40 -0
- package/dist-es/waiters/waitForExportCompleted.js +40 -0
- package/dist-es/waiters/waitForImportCompleted.js +49 -0
- package/dist-es/waiters/waitForKinesisStreamingDestinationActive.js +49 -0
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForContributorInsightsEnabled.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForExportCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForImportCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForKinesisStreamingDestinationActive.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +4 -0
- package/dist-types/waiters/waitForContributorInsightsEnabled.d.ts +14 -0
- package/dist-types/waiters/waitForExportCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForImportCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForKinesisStreamingDestinationActive.d.ts +14 -0
- package/package.json +22 -22
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const K = "required", L = "type", M = "rules", N = "conditions", O = "fn", P = "argv", Q = "ref", R = "assign", S = "url", T = "properties", U = "headers", V = "metricValues";
|
|
5
5
|
const a = false, b = "error", c = "stringEquals", d = "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", e = "endpoint", f = "tree", g = "dynamodb", h = { [K]: false, [L]: "string" }, i = { [K]: true, "default": false, [L]: "boolean" }, j = { [O]: "isSet", [P]: [{ [Q]: "Endpoint" }] }, k = { [Q]: "Endpoint" }, l = { [O]: "isSet", [P]: [{ [Q]: "Region" }] }, m = { [Q]: "Region" }, n = { [O]: "aws.partition", [P]: [m], [R]: "PartitionResult" }, o = { [N]: [{ [O]: "booleanEquals", [P]: [{ [Q]: "UseFIPS" }, true] }], [b]: "Invalid Configuration: FIPS and custom endpoint are not supported", [L]: b }, p = { [O]: "booleanEquals", [P]: [{ [Q]: "UseFIPS" }, true] }, q = { [N]: [{ [O]: "booleanEquals", [P]: [{ [Q]: "UseDualStack" }, true] }], [b]: "Invalid Configuration: Dualstack and custom endpoint are not supported", [L]: b }, r = { [O]: "booleanEquals", [P]: [{ [Q]: "UseDualStack" }, true] }, s = { [e]: { [S]: "{Endpoint}", [T]: {}, [U]: {} }, [L]: e }, t = {}, u = { [O]: "booleanEquals", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "PartitionResult" }, "supportsFIPS"] }, true] }, v = { [O]: "booleanEquals", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "PartitionResult" }, "supportsDualStack"] }, true] }, w = { [N]: [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "required"] }], [M]: [{ [b]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [L]: b }], [L]: f }, x = { [O]: "getAttr", [P]: [{ [Q]: "PartitionResult" }, "name"] }, y = { [e]: { [S]: "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", [T]: {}, [U]: {} }, [L]: e }, z = { [S]: "https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", [T]: { [V]: ["O"] }, [U]: {} }, A = { [V]: ["O"] }, B = { [b]: "Credentials-sourced account ID parameter is invalid", [L]: b }, C = { [N]: [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "required"] }], [M]: [{ [N]: [{ [O]: "not", [P]: [p] }], [M]: [{ [N]: [{ [O]: c, [P]: [x, "aws"] }], [M]: [{ [b]: "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded", [L]: b }], [L]: f }, { [b]: "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition", [L]: b }], [L]: f }, { [b]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [L]: b }], [L]: f }, D = { [S]: "https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [T]: A, [U]: {} }, E = [p], F = [r], G = [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: "not", [P]: [{ [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "disabled"] }] }, { [O]: c, [P]: [x, "aws"] }, { [O]: "not", [P]: [p] }, { [O]: "isSet", [P]: [{ [Q]: "ResourceArn" }] }, { [O]: "aws.parseArn", [P]: [{ [Q]: "ResourceArn" }], [R]: "ParsedArn" }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "service"] }, g] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, false] }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, "{Region}"] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "accountId"] }, false] }], H = [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: "not", [P]: [{ [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "disabled"] }] }, { [O]: c, [P]: [x, "aws"] }, { [O]: "not", [P]: [p] }, { [O]: "isSet", [P]: [{ [Q]: "ResourceArnList" }] }, { [O]: "getAttr", [P]: [{ [Q]: "ResourceArnList" }, "[0]"], [R]: "FirstArn" }, { [O]: "aws.parseArn", [P]: [{ [Q]: "FirstArn" }], [R]: "ParsedArn" }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "service"] }, g] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, false] }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, "{Region}"] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "accountId"] }, false] }], I = [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: "not", [P]: [{ [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "disabled"] }] }, { [O]: c, [P]: [x, "aws"] }, { [O]: "not", [P]: [p] }, { [O]: "isSet", [P]: [{ [Q]: "AccountId" }] }], J = [{ [O]: "isValidHostLabel", [P]: [{ [Q]: "AccountId" }, false] }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h, AccountId: h, AccountIdEndpointMode: h, ResourceArn: h, ResourceArnList: { [K]: a, [L]: "stringArray" } }, [M]: [{ [N]: [j, l, n], [M]: [o, q, { [N]: [{ [O]: c, [P]: [k, d] }], error: "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html", [L]: b }, s], [L]: f }, { [N]: [j], [M]: [o, q, s], [L]: f }, { [N]: [l], [M]: [{ [N]: [n], [M]: [{ [N]: [{ [O]: c, [P]: [m, "local"] }], [M]: [{ [N]: E, error: "Invalid Configuration: FIPS and local endpoint are not supported", [L]: b }, { [N]: F, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [L]: b }, { endpoint: { [S]: "http://localhost:8000", [T]: { authSchemes: [{ name: "sigv4",
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h, AccountId: h, AccountIdEndpointMode: h, ResourceArn: h, ResourceArnList: { [K]: a, [L]: "stringArray" } }, [M]: [{ [N]: [j, l, n], [M]: [o, q, { [N]: [{ [O]: c, [P]: [k, d] }], error: "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html", [L]: b }, s], [L]: f }, { [N]: [j], [M]: [o, q, s], [L]: f }, { [N]: [l], [M]: [{ [N]: [n], [M]: [{ [N]: [{ [O]: c, [P]: [m, "local"] }], [M]: [{ [N]: E, error: "Invalid Configuration: FIPS and local endpoint are not supported", [L]: b }, { [N]: F, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [L]: b }, { endpoint: { [S]: "http://localhost:8000", [T]: { authSchemes: [{ name: "sigv4", signingRegion: "us-east-1", signingName: g }] }, [U]: t }, [L]: e }], [L]: f }, { [N]: [p, r], [M]: [{ [N]: [u, v], [M]: [w, { endpoint: { [S]: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [T]: t, [U]: t }, [L]: e }], [L]: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [L]: b }], [L]: f }, { [N]: E, [M]: [{ [N]: [u], [M]: [{ [N]: [{ [O]: c, [P]: [x, "aws-us-gov"] }], [M]: [w, y], [L]: f }, w, { endpoint: { [S]: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", [T]: t, [U]: t }, [L]: e }], [L]: f }, { error: "FIPS is enabled but this partition does not support FIPS", [L]: b }], [L]: f }, { [N]: F, [M]: [{ [N]: [v], [M]: [{ [N]: G, endpoint: z, [L]: e }, { [N]: H, endpoint: z, [L]: e }, { [N]: I, [M]: [{ [N]: J, [M]: [{ endpoint: { [S]: "https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", [T]: A, [U]: t }, [L]: e }], [L]: f }, B], [L]: f }, C, { endpoint: { [S]: d, [T]: t, [U]: t }, [L]: e }], [L]: f }, { error: "DualStack is enabled but this partition does not support DualStack", [L]: b }], [L]: f }, { [N]: G, endpoint: D, [L]: e }, { [N]: H, endpoint: D, [L]: e }, { [N]: I, [M]: [{ [N]: J, [M]: [{ endpoint: { [S]: "https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [T]: A, [U]: t }, [L]: e }], [L]: f }, B], [L]: f }, C, y], [L]: f }], [L]: f }, { error: "Invalid Configuration: Missing Region", [L]: b }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/index.js
CHANGED
|
@@ -3833,6 +3833,180 @@ const paginateQuery = core.createPaginator(DynamoDBClient, QueryCommand, "Exclus
|
|
|
3833
3833
|
|
|
3834
3834
|
const paginateScan = core.createPaginator(DynamoDBClient, ScanCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
|
|
3835
3835
|
|
|
3836
|
+
const checkState$5 = async (client, input) => {
|
|
3837
|
+
let reason;
|
|
3838
|
+
try {
|
|
3839
|
+
let result = await client.send(new DescribeContributorInsightsCommand(input));
|
|
3840
|
+
reason = result;
|
|
3841
|
+
try {
|
|
3842
|
+
const returnComparator = () => {
|
|
3843
|
+
return result.ContributorInsightsStatus;
|
|
3844
|
+
};
|
|
3845
|
+
if (returnComparator() === "ENABLED") {
|
|
3846
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
catch (e) { }
|
|
3850
|
+
try {
|
|
3851
|
+
const returnComparator = () => {
|
|
3852
|
+
return result.ContributorInsightsStatus;
|
|
3853
|
+
};
|
|
3854
|
+
if (returnComparator() === "FAILED") {
|
|
3855
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3858
|
+
catch (e) { }
|
|
3859
|
+
}
|
|
3860
|
+
catch (exception) {
|
|
3861
|
+
reason = exception;
|
|
3862
|
+
}
|
|
3863
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
3864
|
+
};
|
|
3865
|
+
const waitForContributorInsightsEnabled = async (params, input) => {
|
|
3866
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
3867
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
3868
|
+
};
|
|
3869
|
+
const waitUntilContributorInsightsEnabled = async (params, input) => {
|
|
3870
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
3871
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
3872
|
+
return utilWaiter.checkExceptions(result);
|
|
3873
|
+
};
|
|
3874
|
+
|
|
3875
|
+
const checkState$4 = async (client, input) => {
|
|
3876
|
+
let reason;
|
|
3877
|
+
try {
|
|
3878
|
+
let result = await client.send(new DescribeExportCommand(input));
|
|
3879
|
+
reason = result;
|
|
3880
|
+
try {
|
|
3881
|
+
const returnComparator = () => {
|
|
3882
|
+
return result.ExportDescription.ExportStatus;
|
|
3883
|
+
};
|
|
3884
|
+
if (returnComparator() === "COMPLETED") {
|
|
3885
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
catch (e) { }
|
|
3889
|
+
try {
|
|
3890
|
+
const returnComparator = () => {
|
|
3891
|
+
return result.ExportDescription.ExportStatus;
|
|
3892
|
+
};
|
|
3893
|
+
if (returnComparator() === "FAILED") {
|
|
3894
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3897
|
+
catch (e) { }
|
|
3898
|
+
}
|
|
3899
|
+
catch (exception) {
|
|
3900
|
+
reason = exception;
|
|
3901
|
+
}
|
|
3902
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
3903
|
+
};
|
|
3904
|
+
const waitForExportCompleted = async (params, input) => {
|
|
3905
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
3906
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
3907
|
+
};
|
|
3908
|
+
const waitUntilExportCompleted = async (params, input) => {
|
|
3909
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
3910
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
3911
|
+
return utilWaiter.checkExceptions(result);
|
|
3912
|
+
};
|
|
3913
|
+
|
|
3914
|
+
const checkState$3 = async (client, input) => {
|
|
3915
|
+
let reason;
|
|
3916
|
+
try {
|
|
3917
|
+
let result = await client.send(new DescribeImportCommand(input));
|
|
3918
|
+
reason = result;
|
|
3919
|
+
try {
|
|
3920
|
+
const returnComparator = () => {
|
|
3921
|
+
return result.ImportTableDescription.ImportStatus;
|
|
3922
|
+
};
|
|
3923
|
+
if (returnComparator() === "COMPLETED") {
|
|
3924
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
catch (e) { }
|
|
3928
|
+
try {
|
|
3929
|
+
const returnComparator = () => {
|
|
3930
|
+
return result.ImportTableDescription.ImportStatus;
|
|
3931
|
+
};
|
|
3932
|
+
if (returnComparator() === "FAILED") {
|
|
3933
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
catch (e) { }
|
|
3937
|
+
try {
|
|
3938
|
+
const returnComparator = () => {
|
|
3939
|
+
return result.ImportTableDescription.ImportStatus;
|
|
3940
|
+
};
|
|
3941
|
+
if (returnComparator() === "CANCELLED") {
|
|
3942
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
catch (e) { }
|
|
3946
|
+
}
|
|
3947
|
+
catch (exception) {
|
|
3948
|
+
reason = exception;
|
|
3949
|
+
}
|
|
3950
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
3951
|
+
};
|
|
3952
|
+
const waitForImportCompleted = async (params, input) => {
|
|
3953
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
3954
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
3955
|
+
};
|
|
3956
|
+
const waitUntilImportCompleted = async (params, input) => {
|
|
3957
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
3958
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
3959
|
+
return utilWaiter.checkExceptions(result);
|
|
3960
|
+
};
|
|
3961
|
+
|
|
3962
|
+
const checkState$2 = async (client, input) => {
|
|
3963
|
+
let reason;
|
|
3964
|
+
try {
|
|
3965
|
+
let result = await client.send(new DescribeKinesisStreamingDestinationCommand(input));
|
|
3966
|
+
reason = result;
|
|
3967
|
+
try {
|
|
3968
|
+
const returnComparator = () => {
|
|
3969
|
+
let flat_1 = [].concat(...result.KinesisDataStreamDestinations);
|
|
3970
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
3971
|
+
return element_2.DestinationStatus;
|
|
3972
|
+
});
|
|
3973
|
+
return projection_3;
|
|
3974
|
+
};
|
|
3975
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
3976
|
+
if (anyStringEq_4 == "ACTIVE") {
|
|
3977
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
catch (e) { }
|
|
3982
|
+
try {
|
|
3983
|
+
const returnComparator = () => {
|
|
3984
|
+
let filterRes_2 = result.KinesisDataStreamDestinations.filter((element_1) => {
|
|
3985
|
+
return (((element_1.DestinationStatus == "DISABLED") || (element_1.DestinationStatus == "ENABLE_FAILED")) && ((element_1.DestinationStatus == "ENABLE_FAILED") || (element_1.DestinationStatus == "DISABLED")));
|
|
3986
|
+
});
|
|
3987
|
+
return ((result.KinesisDataStreamDestinations.length > 0.0) && (filterRes_2.length == result.KinesisDataStreamDestinations.length));
|
|
3988
|
+
};
|
|
3989
|
+
if (returnComparator() == true) {
|
|
3990
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
3991
|
+
}
|
|
3992
|
+
}
|
|
3993
|
+
catch (e) { }
|
|
3994
|
+
}
|
|
3995
|
+
catch (exception) {
|
|
3996
|
+
reason = exception;
|
|
3997
|
+
}
|
|
3998
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
3999
|
+
};
|
|
4000
|
+
const waitForKinesisStreamingDestinationActive = async (params, input) => {
|
|
4001
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
4002
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
4003
|
+
};
|
|
4004
|
+
const waitUntilKinesisStreamingDestinationActive = async (params, input) => {
|
|
4005
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
4006
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
4007
|
+
return utilWaiter.checkExceptions(result);
|
|
4008
|
+
};
|
|
4009
|
+
|
|
3836
4010
|
const checkState$1 = async (client, input) => {
|
|
3837
4011
|
let reason;
|
|
3838
4012
|
try {
|
|
@@ -4599,7 +4773,15 @@ exports.paginateListImports = paginateListImports;
|
|
|
4599
4773
|
exports.paginateListTables = paginateListTables;
|
|
4600
4774
|
exports.paginateQuery = paginateQuery;
|
|
4601
4775
|
exports.paginateScan = paginateScan;
|
|
4776
|
+
exports.waitForContributorInsightsEnabled = waitForContributorInsightsEnabled;
|
|
4777
|
+
exports.waitForExportCompleted = waitForExportCompleted;
|
|
4778
|
+
exports.waitForImportCompleted = waitForImportCompleted;
|
|
4779
|
+
exports.waitForKinesisStreamingDestinationActive = waitForKinesisStreamingDestinationActive;
|
|
4602
4780
|
exports.waitForTableExists = waitForTableExists;
|
|
4603
4781
|
exports.waitForTableNotExists = waitForTableNotExists;
|
|
4782
|
+
exports.waitUntilContributorInsightsEnabled = waitUntilContributorInsightsEnabled;
|
|
4783
|
+
exports.waitUntilExportCompleted = waitUntilExportCompleted;
|
|
4784
|
+
exports.waitUntilImportCompleted = waitUntilImportCompleted;
|
|
4785
|
+
exports.waitUntilKinesisStreamingDestinationActive = waitUntilKinesisStreamingDestinationActive;
|
|
4604
4786
|
exports.waitUntilTableExists = waitUntilTableExists;
|
|
4605
4787
|
exports.waitUntilTableNotExists = waitUntilTableNotExists;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const K = "required", L = "type", M = "rules", N = "conditions", O = "fn", P = "argv", Q = "ref", R = "assign", S = "url", T = "properties", U = "headers", V = "metricValues";
|
|
2
2
|
const a = false, b = "error", c = "stringEquals", d = "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", e = "endpoint", f = "tree", g = "dynamodb", h = { [K]: false, [L]: "string" }, i = { [K]: true, "default": false, [L]: "boolean" }, j = { [O]: "isSet", [P]: [{ [Q]: "Endpoint" }] }, k = { [Q]: "Endpoint" }, l = { [O]: "isSet", [P]: [{ [Q]: "Region" }] }, m = { [Q]: "Region" }, n = { [O]: "aws.partition", [P]: [m], [R]: "PartitionResult" }, o = { [N]: [{ [O]: "booleanEquals", [P]: [{ [Q]: "UseFIPS" }, true] }], [b]: "Invalid Configuration: FIPS and custom endpoint are not supported", [L]: b }, p = { [O]: "booleanEquals", [P]: [{ [Q]: "UseFIPS" }, true] }, q = { [N]: [{ [O]: "booleanEquals", [P]: [{ [Q]: "UseDualStack" }, true] }], [b]: "Invalid Configuration: Dualstack and custom endpoint are not supported", [L]: b }, r = { [O]: "booleanEquals", [P]: [{ [Q]: "UseDualStack" }, true] }, s = { [e]: { [S]: "{Endpoint}", [T]: {}, [U]: {} }, [L]: e }, t = {}, u = { [O]: "booleanEquals", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "PartitionResult" }, "supportsFIPS"] }, true] }, v = { [O]: "booleanEquals", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "PartitionResult" }, "supportsDualStack"] }, true] }, w = { [N]: [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "required"] }], [M]: [{ [b]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [L]: b }], [L]: f }, x = { [O]: "getAttr", [P]: [{ [Q]: "PartitionResult" }, "name"] }, y = { [e]: { [S]: "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", [T]: {}, [U]: {} }, [L]: e }, z = { [S]: "https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", [T]: { [V]: ["O"] }, [U]: {} }, A = { [V]: ["O"] }, B = { [b]: "Credentials-sourced account ID parameter is invalid", [L]: b }, C = { [N]: [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "required"] }], [M]: [{ [N]: [{ [O]: "not", [P]: [p] }], [M]: [{ [N]: [{ [O]: c, [P]: [x, "aws"] }], [M]: [{ [b]: "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded", [L]: b }], [L]: f }, { [b]: "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition", [L]: b }], [L]: f }, { [b]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [L]: b }], [L]: f }, D = { [S]: "https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [T]: A, [U]: {} }, E = [p], F = [r], G = [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: "not", [P]: [{ [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "disabled"] }] }, { [O]: c, [P]: [x, "aws"] }, { [O]: "not", [P]: [p] }, { [O]: "isSet", [P]: [{ [Q]: "ResourceArn" }] }, { [O]: "aws.parseArn", [P]: [{ [Q]: "ResourceArn" }], [R]: "ParsedArn" }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "service"] }, g] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, false] }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, "{Region}"] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "accountId"] }, false] }], H = [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: "not", [P]: [{ [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "disabled"] }] }, { [O]: c, [P]: [x, "aws"] }, { [O]: "not", [P]: [p] }, { [O]: "isSet", [P]: [{ [Q]: "ResourceArnList" }] }, { [O]: "getAttr", [P]: [{ [Q]: "ResourceArnList" }, "[0]"], [R]: "FirstArn" }, { [O]: "aws.parseArn", [P]: [{ [Q]: "FirstArn" }], [R]: "ParsedArn" }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "service"] }, g] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, false] }, { [O]: c, [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "region"] }, "{Region}"] }, { [O]: "isValidHostLabel", [P]: [{ [O]: "getAttr", [P]: [{ [Q]: "ParsedArn" }, "accountId"] }, false] }], I = [{ [O]: "isSet", [P]: [{ [Q]: "AccountIdEndpointMode" }] }, { [O]: "not", [P]: [{ [O]: c, [P]: [{ [Q]: "AccountIdEndpointMode" }, "disabled"] }] }, { [O]: c, [P]: [x, "aws"] }, { [O]: "not", [P]: [p] }, { [O]: "isSet", [P]: [{ [Q]: "AccountId" }] }], J = [{ [O]: "isValidHostLabel", [P]: [{ [Q]: "AccountId" }, false] }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h, AccountId: h, AccountIdEndpointMode: h, ResourceArn: h, ResourceArnList: { [K]: a, [L]: "stringArray" } }, [M]: [{ [N]: [j, l, n], [M]: [o, q, { [N]: [{ [O]: c, [P]: [k, d] }], error: "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html", [L]: b }, s], [L]: f }, { [N]: [j], [M]: [o, q, s], [L]: f }, { [N]: [l], [M]: [{ [N]: [n], [M]: [{ [N]: [{ [O]: c, [P]: [m, "local"] }], [M]: [{ [N]: E, error: "Invalid Configuration: FIPS and local endpoint are not supported", [L]: b }, { [N]: F, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [L]: b }, { endpoint: { [S]: "http://localhost:8000", [T]: { authSchemes: [{ name: "sigv4",
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h, AccountId: h, AccountIdEndpointMode: h, ResourceArn: h, ResourceArnList: { [K]: a, [L]: "stringArray" } }, [M]: [{ [N]: [j, l, n], [M]: [o, q, { [N]: [{ [O]: c, [P]: [k, d] }], error: "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html", [L]: b }, s], [L]: f }, { [N]: [j], [M]: [o, q, s], [L]: f }, { [N]: [l], [M]: [{ [N]: [n], [M]: [{ [N]: [{ [O]: c, [P]: [m, "local"] }], [M]: [{ [N]: E, error: "Invalid Configuration: FIPS and local endpoint are not supported", [L]: b }, { [N]: F, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [L]: b }, { endpoint: { [S]: "http://localhost:8000", [T]: { authSchemes: [{ name: "sigv4", signingRegion: "us-east-1", signingName: g }] }, [U]: t }, [L]: e }], [L]: f }, { [N]: [p, r], [M]: [{ [N]: [u, v], [M]: [w, { endpoint: { [S]: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [T]: t, [U]: t }, [L]: e }], [L]: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [L]: b }], [L]: f }, { [N]: E, [M]: [{ [N]: [u], [M]: [{ [N]: [{ [O]: c, [P]: [x, "aws-us-gov"] }], [M]: [w, y], [L]: f }, w, { endpoint: { [S]: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", [T]: t, [U]: t }, [L]: e }], [L]: f }, { error: "FIPS is enabled but this partition does not support FIPS", [L]: b }], [L]: f }, { [N]: F, [M]: [{ [N]: [v], [M]: [{ [N]: G, endpoint: z, [L]: e }, { [N]: H, endpoint: z, [L]: e }, { [N]: I, [M]: [{ [N]: J, [M]: [{ endpoint: { [S]: "https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", [T]: A, [U]: t }, [L]: e }], [L]: f }, B], [L]: f }, C, { endpoint: { [S]: d, [T]: t, [U]: t }, [L]: e }], [L]: f }, { error: "DualStack is enabled but this partition does not support DualStack", [L]: b }], [L]: f }, { [N]: G, endpoint: D, [L]: e }, { [N]: H, endpoint: D, [L]: e }, { [N]: I, [M]: [{ [N]: J, [M]: [{ endpoint: { [S]: "https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [T]: A, [U]: t }, [L]: e }], [L]: f }, B], [L]: f }, C, y], [L]: f }], [L]: f }, { error: "Invalid Configuration: Missing Region", [L]: b }] };
|
|
4
4
|
export const ruleSet = _data;
|
package/dist-es/waiters/index.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
export * from "./waitForContributorInsightsEnabled";
|
|
2
|
+
export * from "./waitForExportCompleted";
|
|
3
|
+
export * from "./waitForImportCompleted";
|
|
4
|
+
export * from "./waitForKinesisStreamingDestinationActive";
|
|
1
5
|
export * from "./waitForTableExists";
|
|
2
6
|
export * from "./waitForTableNotExists";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeContributorInsightsCommand, } from "../commands/DescribeContributorInsightsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeContributorInsightsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ContributorInsightsStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ENABLED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ContributorInsightsStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForContributorInsightsEnabled = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilContributorInsightsEnabled = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeExportCommand } from "../commands/DescribeExportCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeExportCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ExportDescription.ExportStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ExportDescription.ExportStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForExportCompleted = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilExportCompleted = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeImportCommand } from "../commands/DescribeImportCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeImportCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ImportTableDescription.ImportStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ImportTableDescription.ImportStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.ImportTableDescription.ImportStatus;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "CANCELLED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForImportCompleted = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilImportCompleted = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeKinesisStreamingDestinationCommand, } from "../commands/DescribeKinesisStreamingDestinationCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeKinesisStreamingDestinationCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.KinesisDataStreamDestinations);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.DestinationStatus;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
17
|
+
if (anyStringEq_4 == "ACTIVE") {
|
|
18
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
catch (e) { }
|
|
23
|
+
try {
|
|
24
|
+
const returnComparator = () => {
|
|
25
|
+
let filterRes_2 = result.KinesisDataStreamDestinations.filter((element_1) => {
|
|
26
|
+
return (((element_1.DestinationStatus == "DISABLED") || (element_1.DestinationStatus == "ENABLE_FAILED")) && ((element_1.DestinationStatus == "ENABLE_FAILED") || (element_1.DestinationStatus == "DISABLED")));
|
|
27
|
+
});
|
|
28
|
+
return ((result.KinesisDataStreamDestinations.length > 0.0) && (filterRes_2.length == result.KinesisDataStreamDestinations.length));
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() == true) {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForKinesisStreamingDestinationActive = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilKinesisStreamingDestinationActive = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
export * from "./waitForContributorInsightsEnabled";
|
|
2
|
+
export * from "./waitForExportCompleted";
|
|
3
|
+
export * from "./waitForImportCompleted";
|
|
4
|
+
export * from "./waitForKinesisStreamingDestinationActive";
|
|
1
5
|
export * from "./waitForTableExists";
|
|
2
6
|
export * from "./waitForTableNotExists";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeContributorInsightsCommandInput } from "../commands/DescribeContributorInsightsCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
export declare const waitForContributorInsightsEnabled: (
|
|
5
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
6
|
+
input: DescribeContributorInsightsCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilContributorInsightsEnabled: (
|
|
9
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
10
|
+
input: DescribeContributorInsightsCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeExportCommandInput } from "../commands/DescribeExportCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
export declare const waitForExportCompleted: (
|
|
5
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
6
|
+
input: DescribeExportCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilExportCompleted: (
|
|
9
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
10
|
+
input: DescribeExportCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeImportCommandInput } from "../commands/DescribeImportCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
export declare const waitForImportCompleted: (
|
|
5
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
6
|
+
input: DescribeImportCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilImportCompleted: (
|
|
9
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
10
|
+
input: DescribeImportCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeKinesisStreamingDestinationCommandInput } from "../commands/DescribeKinesisStreamingDestinationCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
export declare const waitForKinesisStreamingDestinationActive: (
|
|
5
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
6
|
+
input: DescribeKinesisStreamingDestinationCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilKinesisStreamingDestinationActive: (
|
|
9
|
+
params: WaiterConfiguration<DynamoDBClient>,
|
|
10
|
+
input: DescribeKinesisStreamingDestinationCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
export * from "./waitForContributorInsightsEnabled";
|
|
2
|
+
export * from "./waitForExportCompleted";
|
|
3
|
+
export * from "./waitForImportCompleted";
|
|
4
|
+
export * from "./waitForKinesisStreamingDestinationActive";
|
|
1
5
|
export * from "./waitForTableExists";
|
|
2
6
|
export * from "./waitForTableNotExists";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeContributorInsightsCommandInput } from "../commands/DescribeContributorInsightsCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilContributorInsightsEnabled instead. waitForContributorInsightsEnabled does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForContributorInsightsEnabled: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeContributorInsightsCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeContributorInsightsCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilContributorInsightsEnabled: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeContributorInsightsCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeExportCommandInput } from "../commands/DescribeExportCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilExportCompleted instead. waitForExportCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForExportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeExportCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeExportCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilExportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeExportCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeImportCommandInput } from "../commands/DescribeImportCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilImportCompleted instead. waitForImportCompleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForImportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeImportCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeImportCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilImportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeImportCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeKinesisStreamingDestinationCommandInput } from "../commands/DescribeKinesisStreamingDestinationCommand";
|
|
3
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilKinesisStreamingDestinationActive instead. waitForKinesisStreamingDestinationActive does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForKinesisStreamingDestinationActive: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeKinesisStreamingDestinationCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeKinesisStreamingDestinationCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilKinesisStreamingDestinationActive: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeKinesisStreamingDestinationCommandInput) => Promise<WaiterResult>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.974.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
14
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo dynamodb",
|
|
15
15
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
@@ -23,40 +23,40 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
-
"@aws-sdk/dynamodb-codec": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint-discovery": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
34
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
35
|
-
"@aws-sdk/types": "3.
|
|
36
|
-
"@aws-sdk/util-endpoints": "3.
|
|
37
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
38
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
26
|
+
"@aws-sdk/core": "^3.973.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.1",
|
|
28
|
+
"@aws-sdk/dynamodb-codec": "^3.972.1",
|
|
29
|
+
"@aws-sdk/middleware-endpoint-discovery": "^3.972.1",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "^3.972.1",
|
|
31
|
+
"@aws-sdk/middleware-logger": "^3.972.1",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.1",
|
|
33
|
+
"@aws-sdk/middleware-user-agent": "^3.972.1",
|
|
34
|
+
"@aws-sdk/region-config-resolver": "^3.972.1",
|
|
35
|
+
"@aws-sdk/types": "^3.973.0",
|
|
36
|
+
"@aws-sdk/util-endpoints": "3.972.0",
|
|
37
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.1",
|
|
38
|
+
"@aws-sdk/util-user-agent-node": "^3.972.1",
|
|
39
39
|
"@smithy/config-resolver": "^4.4.6",
|
|
40
|
-
"@smithy/core": "^3.
|
|
40
|
+
"@smithy/core": "^3.21.0",
|
|
41
41
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
42
42
|
"@smithy/hash-node": "^4.2.8",
|
|
43
43
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
44
44
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
45
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
46
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.4.10",
|
|
46
|
+
"@smithy/middleware-retry": "^4.4.26",
|
|
47
47
|
"@smithy/middleware-serde": "^4.2.9",
|
|
48
48
|
"@smithy/middleware-stack": "^4.2.8",
|
|
49
49
|
"@smithy/node-config-provider": "^4.3.8",
|
|
50
50
|
"@smithy/node-http-handler": "^4.4.8",
|
|
51
51
|
"@smithy/protocol-http": "^5.3.8",
|
|
52
|
-
"@smithy/smithy-client": "^4.10.
|
|
52
|
+
"@smithy/smithy-client": "^4.10.11",
|
|
53
53
|
"@smithy/types": "^4.12.0",
|
|
54
54
|
"@smithy/url-parser": "^4.2.8",
|
|
55
55
|
"@smithy/util-base64": "^4.3.0",
|
|
56
56
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
57
57
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.3.25",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.2.28",
|
|
60
60
|
"@smithy/util-endpoints": "^3.2.8",
|
|
61
61
|
"@smithy/util-middleware": "^4.2.8",
|
|
62
62
|
"@smithy/util-retry": "^4.2.8",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@types/node": "^20.14.8",
|
|
70
70
|
"concurrently": "7.0.0",
|
|
71
71
|
"downlevel-dts": "0.10.1",
|
|
72
|
-
"
|
|
72
|
+
"premove": "4.0.0",
|
|
73
73
|
"typescript": "~5.8.3"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|