@aws-sdk/client-cloudtrail 3.53.0 → 3.55.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/CHANGELOG.md +27 -0
- package/dist-cjs/CloudTrailClient.js +13 -13
- package/dist-cjs/commands/AddTagsCommand.js +3 -3
- package/dist-cjs/commands/CancelQueryCommand.js +3 -3
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +3 -3
- package/dist-cjs/commands/CreateTrailCommand.js +3 -3
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +3 -3
- package/dist-cjs/commands/DeleteTrailCommand.js +3 -3
- package/dist-cjs/commands/DescribeQueryCommand.js +3 -3
- package/dist-cjs/commands/DescribeTrailsCommand.js +3 -3
- package/dist-cjs/commands/GetEventDataStoreCommand.js +3 -3
- package/dist-cjs/commands/GetEventSelectorsCommand.js +3 -3
- package/dist-cjs/commands/GetInsightSelectorsCommand.js +3 -3
- package/dist-cjs/commands/GetQueryResultsCommand.js +3 -3
- package/dist-cjs/commands/GetTrailCommand.js +3 -3
- package/dist-cjs/commands/GetTrailStatusCommand.js +3 -3
- package/dist-cjs/commands/ListEventDataStoresCommand.js +3 -3
- package/dist-cjs/commands/ListPublicKeysCommand.js +3 -3
- package/dist-cjs/commands/ListQueriesCommand.js +3 -3
- package/dist-cjs/commands/ListTagsCommand.js +3 -3
- package/dist-cjs/commands/ListTrailsCommand.js +3 -3
- package/dist-cjs/commands/LookupEventsCommand.js +3 -3
- package/dist-cjs/commands/PutEventSelectorsCommand.js +3 -3
- package/dist-cjs/commands/PutInsightSelectorsCommand.js +3 -3
- package/dist-cjs/commands/RemoveTagsCommand.js +3 -3
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +3 -3
- package/dist-cjs/commands/StartLoggingCommand.js +3 -3
- package/dist-cjs/commands/StartQueryCommand.js +3 -3
- package/dist-cjs/commands/StopLoggingCommand.js +3 -3
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +3 -3
- package/dist-cjs/commands/UpdateTrailCommand.js +3 -3
- package/dist-cjs/endpoints.js +4 -6
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +309 -307
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/CloudTrail.js +29 -29
- package/dist-es/endpoints.js +3 -5
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetQueryResultsPaginator.js +4 -4
- package/dist-es/pagination/ListEventDataStoresPaginator.js +4 -4
- package/dist-es/pagination/ListPublicKeysPaginator.js +4 -4
- package/dist-es/pagination/ListQueriesPaginator.js +4 -4
- package/dist-es/pagination/ListTagsPaginator.js +4 -4
- package/dist-es/pagination/ListTrailsPaginator.js +4 -4
- package/dist-es/pagination/LookupEventsPaginator.js +4 -4
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-types/CloudTrail.d.ts +2 -2
- package/dist-types/CloudTrailClient.d.ts +2 -2
- package/dist-types/commands/CancelQueryCommand.d.ts +1 -1
- package/dist-types/commands/ListQueriesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +17 -6
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/CloudTrailClient.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +6 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/CloudTrail.js
CHANGED
|
@@ -41,7 +41,7 @@ var CloudTrail = (function (_super) {
|
|
|
41
41
|
}
|
|
42
42
|
else if (typeof cb === "function") {
|
|
43
43
|
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error("Expect http options but get "
|
|
44
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
45
45
|
this.send(command, optionsOrCb || {}, cb);
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
@@ -55,7 +55,7 @@ var CloudTrail = (function (_super) {
|
|
|
55
55
|
}
|
|
56
56
|
else if (typeof cb === "function") {
|
|
57
57
|
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error("Expect http options but get "
|
|
58
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
59
59
|
this.send(command, optionsOrCb || {}, cb);
|
|
60
60
|
}
|
|
61
61
|
else {
|
|
@@ -69,7 +69,7 @@ var CloudTrail = (function (_super) {
|
|
|
69
69
|
}
|
|
70
70
|
else if (typeof cb === "function") {
|
|
71
71
|
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error("Expect http options but get "
|
|
72
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
73
73
|
this.send(command, optionsOrCb || {}, cb);
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
@@ -83,7 +83,7 @@ var CloudTrail = (function (_super) {
|
|
|
83
83
|
}
|
|
84
84
|
else if (typeof cb === "function") {
|
|
85
85
|
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error("Expect http options but get "
|
|
86
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
87
87
|
this.send(command, optionsOrCb || {}, cb);
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
@@ -97,7 +97,7 @@ var CloudTrail = (function (_super) {
|
|
|
97
97
|
}
|
|
98
98
|
else if (typeof cb === "function") {
|
|
99
99
|
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error("Expect http options but get "
|
|
100
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
101
101
|
this.send(command, optionsOrCb || {}, cb);
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
@@ -111,7 +111,7 @@ var CloudTrail = (function (_super) {
|
|
|
111
111
|
}
|
|
112
112
|
else if (typeof cb === "function") {
|
|
113
113
|
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error("Expect http options but get "
|
|
114
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
115
115
|
this.send(command, optionsOrCb || {}, cb);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
@@ -125,7 +125,7 @@ var CloudTrail = (function (_super) {
|
|
|
125
125
|
}
|
|
126
126
|
else if (typeof cb === "function") {
|
|
127
127
|
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error("Expect http options but get "
|
|
128
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
129
129
|
this.send(command, optionsOrCb || {}, cb);
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
@@ -139,7 +139,7 @@ var CloudTrail = (function (_super) {
|
|
|
139
139
|
}
|
|
140
140
|
else if (typeof cb === "function") {
|
|
141
141
|
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error("Expect http options but get "
|
|
142
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
143
143
|
this.send(command, optionsOrCb || {}, cb);
|
|
144
144
|
}
|
|
145
145
|
else {
|
|
@@ -153,7 +153,7 @@ var CloudTrail = (function (_super) {
|
|
|
153
153
|
}
|
|
154
154
|
else if (typeof cb === "function") {
|
|
155
155
|
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error("Expect http options but get "
|
|
156
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
157
157
|
this.send(command, optionsOrCb || {}, cb);
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
@@ -167,7 +167,7 @@ var CloudTrail = (function (_super) {
|
|
|
167
167
|
}
|
|
168
168
|
else if (typeof cb === "function") {
|
|
169
169
|
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error("Expect http options but get "
|
|
170
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
171
171
|
this.send(command, optionsOrCb || {}, cb);
|
|
172
172
|
}
|
|
173
173
|
else {
|
|
@@ -181,7 +181,7 @@ var CloudTrail = (function (_super) {
|
|
|
181
181
|
}
|
|
182
182
|
else if (typeof cb === "function") {
|
|
183
183
|
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error("Expect http options but get "
|
|
184
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
185
185
|
this.send(command, optionsOrCb || {}, cb);
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
@@ -195,7 +195,7 @@ var CloudTrail = (function (_super) {
|
|
|
195
195
|
}
|
|
196
196
|
else if (typeof cb === "function") {
|
|
197
197
|
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error("Expect http options but get "
|
|
198
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
199
199
|
this.send(command, optionsOrCb || {}, cb);
|
|
200
200
|
}
|
|
201
201
|
else {
|
|
@@ -209,7 +209,7 @@ var CloudTrail = (function (_super) {
|
|
|
209
209
|
}
|
|
210
210
|
else if (typeof cb === "function") {
|
|
211
211
|
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error("Expect http options but get "
|
|
212
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
213
213
|
this.send(command, optionsOrCb || {}, cb);
|
|
214
214
|
}
|
|
215
215
|
else {
|
|
@@ -223,7 +223,7 @@ var CloudTrail = (function (_super) {
|
|
|
223
223
|
}
|
|
224
224
|
else if (typeof cb === "function") {
|
|
225
225
|
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error("Expect http options but get "
|
|
226
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
227
227
|
this.send(command, optionsOrCb || {}, cb);
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
@@ -237,7 +237,7 @@ var CloudTrail = (function (_super) {
|
|
|
237
237
|
}
|
|
238
238
|
else if (typeof cb === "function") {
|
|
239
239
|
if (typeof optionsOrCb !== "object")
|
|
240
|
-
throw new Error("Expect http options but get "
|
|
240
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
241
241
|
this.send(command, optionsOrCb || {}, cb);
|
|
242
242
|
}
|
|
243
243
|
else {
|
|
@@ -251,7 +251,7 @@ var CloudTrail = (function (_super) {
|
|
|
251
251
|
}
|
|
252
252
|
else if (typeof cb === "function") {
|
|
253
253
|
if (typeof optionsOrCb !== "object")
|
|
254
|
-
throw new Error("Expect http options but get "
|
|
254
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
255
255
|
this.send(command, optionsOrCb || {}, cb);
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
@@ -265,7 +265,7 @@ var CloudTrail = (function (_super) {
|
|
|
265
265
|
}
|
|
266
266
|
else if (typeof cb === "function") {
|
|
267
267
|
if (typeof optionsOrCb !== "object")
|
|
268
|
-
throw new Error("Expect http options but get "
|
|
268
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
269
269
|
this.send(command, optionsOrCb || {}, cb);
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
@@ -279,7 +279,7 @@ var CloudTrail = (function (_super) {
|
|
|
279
279
|
}
|
|
280
280
|
else if (typeof cb === "function") {
|
|
281
281
|
if (typeof optionsOrCb !== "object")
|
|
282
|
-
throw new Error("Expect http options but get "
|
|
282
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
283
283
|
this.send(command, optionsOrCb || {}, cb);
|
|
284
284
|
}
|
|
285
285
|
else {
|
|
@@ -293,7 +293,7 @@ var CloudTrail = (function (_super) {
|
|
|
293
293
|
}
|
|
294
294
|
else if (typeof cb === "function") {
|
|
295
295
|
if (typeof optionsOrCb !== "object")
|
|
296
|
-
throw new Error("Expect http options but get "
|
|
296
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
297
297
|
this.send(command, optionsOrCb || {}, cb);
|
|
298
298
|
}
|
|
299
299
|
else {
|
|
@@ -307,7 +307,7 @@ var CloudTrail = (function (_super) {
|
|
|
307
307
|
}
|
|
308
308
|
else if (typeof cb === "function") {
|
|
309
309
|
if (typeof optionsOrCb !== "object")
|
|
310
|
-
throw new Error("Expect http options but get "
|
|
310
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
311
311
|
this.send(command, optionsOrCb || {}, cb);
|
|
312
312
|
}
|
|
313
313
|
else {
|
|
@@ -321,7 +321,7 @@ var CloudTrail = (function (_super) {
|
|
|
321
321
|
}
|
|
322
322
|
else if (typeof cb === "function") {
|
|
323
323
|
if (typeof optionsOrCb !== "object")
|
|
324
|
-
throw new Error("Expect http options but get "
|
|
324
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
325
325
|
this.send(command, optionsOrCb || {}, cb);
|
|
326
326
|
}
|
|
327
327
|
else {
|
|
@@ -335,7 +335,7 @@ var CloudTrail = (function (_super) {
|
|
|
335
335
|
}
|
|
336
336
|
else if (typeof cb === "function") {
|
|
337
337
|
if (typeof optionsOrCb !== "object")
|
|
338
|
-
throw new Error("Expect http options but get "
|
|
338
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
339
339
|
this.send(command, optionsOrCb || {}, cb);
|
|
340
340
|
}
|
|
341
341
|
else {
|
|
@@ -349,7 +349,7 @@ var CloudTrail = (function (_super) {
|
|
|
349
349
|
}
|
|
350
350
|
else if (typeof cb === "function") {
|
|
351
351
|
if (typeof optionsOrCb !== "object")
|
|
352
|
-
throw new Error("Expect http options but get "
|
|
352
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
353
353
|
this.send(command, optionsOrCb || {}, cb);
|
|
354
354
|
}
|
|
355
355
|
else {
|
|
@@ -363,7 +363,7 @@ var CloudTrail = (function (_super) {
|
|
|
363
363
|
}
|
|
364
364
|
else if (typeof cb === "function") {
|
|
365
365
|
if (typeof optionsOrCb !== "object")
|
|
366
|
-
throw new Error("Expect http options but get "
|
|
366
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
367
367
|
this.send(command, optionsOrCb || {}, cb);
|
|
368
368
|
}
|
|
369
369
|
else {
|
|
@@ -377,7 +377,7 @@ var CloudTrail = (function (_super) {
|
|
|
377
377
|
}
|
|
378
378
|
else if (typeof cb === "function") {
|
|
379
379
|
if (typeof optionsOrCb !== "object")
|
|
380
|
-
throw new Error("Expect http options but get "
|
|
380
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
381
381
|
this.send(command, optionsOrCb || {}, cb);
|
|
382
382
|
}
|
|
383
383
|
else {
|
|
@@ -391,7 +391,7 @@ var CloudTrail = (function (_super) {
|
|
|
391
391
|
}
|
|
392
392
|
else if (typeof cb === "function") {
|
|
393
393
|
if (typeof optionsOrCb !== "object")
|
|
394
|
-
throw new Error("Expect http options but get "
|
|
394
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
395
395
|
this.send(command, optionsOrCb || {}, cb);
|
|
396
396
|
}
|
|
397
397
|
else {
|
|
@@ -405,7 +405,7 @@ var CloudTrail = (function (_super) {
|
|
|
405
405
|
}
|
|
406
406
|
else if (typeof cb === "function") {
|
|
407
407
|
if (typeof optionsOrCb !== "object")
|
|
408
|
-
throw new Error("Expect http options but get "
|
|
408
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
409
409
|
this.send(command, optionsOrCb || {}, cb);
|
|
410
410
|
}
|
|
411
411
|
else {
|
|
@@ -419,7 +419,7 @@ var CloudTrail = (function (_super) {
|
|
|
419
419
|
}
|
|
420
420
|
else if (typeof cb === "function") {
|
|
421
421
|
if (typeof optionsOrCb !== "object")
|
|
422
|
-
throw new Error("Expect http options but get "
|
|
422
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
423
423
|
this.send(command, optionsOrCb || {}, cb);
|
|
424
424
|
}
|
|
425
425
|
else {
|
|
@@ -433,7 +433,7 @@ var CloudTrail = (function (_super) {
|
|
|
433
433
|
}
|
|
434
434
|
else if (typeof cb === "function") {
|
|
435
435
|
if (typeof optionsOrCb !== "object")
|
|
436
|
-
throw new Error("Expect http options but get "
|
|
436
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
437
437
|
this.send(command, optionsOrCb || {}, cb);
|
|
438
438
|
}
|
|
439
439
|
else {
|
package/dist-es/endpoints.js
CHANGED
|
@@ -21,19 +21,17 @@ var regionHash = {
|
|
|
21
21
|
variants: [
|
|
22
22
|
{
|
|
23
23
|
hostname: "cloudtrail.us-gov-east-1.amazonaws.com",
|
|
24
|
-
tags: [],
|
|
24
|
+
tags: ["fips"],
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
|
-
signingRegion: "us-gov-east-1",
|
|
28
27
|
},
|
|
29
28
|
"us-gov-west-1": {
|
|
30
29
|
variants: [
|
|
31
30
|
{
|
|
32
31
|
hostname: "cloudtrail.us-gov-west-1.amazonaws.com",
|
|
33
|
-
tags: [],
|
|
32
|
+
tags: ["fips"],
|
|
34
33
|
},
|
|
35
34
|
],
|
|
36
|
-
signingRegion: "us-gov-west-1",
|
|
37
35
|
},
|
|
38
36
|
"us-west-1": {
|
|
39
37
|
variants: [
|
|
@@ -153,7 +151,7 @@ var partitionHash = {
|
|
|
153
151
|
],
|
|
154
152
|
},
|
|
155
153
|
"aws-us-gov": {
|
|
156
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
154
|
+
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
157
155
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
158
156
|
variants: [
|
|
159
157
|
{
|
|
@@ -187,6 +187,7 @@ export var QueryStatus;
|
|
|
187
187
|
QueryStatus["FINISHED"] = "FINISHED";
|
|
188
188
|
QueryStatus["QUEUED"] = "QUEUED";
|
|
189
189
|
QueryStatus["RUNNING"] = "RUNNING";
|
|
190
|
+
QueryStatus["TIMED_OUT"] = "TIMED_OUT";
|
|
190
191
|
})(QueryStatus || (QueryStatus = {}));
|
|
191
192
|
export var CancelQueryResponse;
|
|
192
193
|
(function (CancelQueryResponse) {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new GetQueryResultsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetQueryResultsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.getQueryResults.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.getQueryResults.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -47,13 +47,13 @@ export function paginateGetQueryResults(config, input) {
|
|
|
47
47
|
if (!hasNext) return [3, 9];
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
50
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
51
51
|
case 2:
|
|
52
52
|
page = _a.sent();
|
|
53
53
|
return [3, 6];
|
|
54
54
|
case 3:
|
|
55
55
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
56
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
57
57
|
case 4:
|
|
58
58
|
page = _a.sent();
|
|
59
59
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListEventDataStoresCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListEventDataStoresCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listEventDataStores.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listEventDataStores.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListEventDataStores(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListPublicKeysCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPublicKeysCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listPublicKeys.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listPublicKeys.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -47,13 +47,13 @@ export function paginateListPublicKeys(config, input) {
|
|
|
47
47
|
if (!hasNext) return [3, 9];
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
50
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
51
51
|
case 2:
|
|
52
52
|
page = _a.sent();
|
|
53
53
|
return [3, 6];
|
|
54
54
|
case 3:
|
|
55
55
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
56
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
57
57
|
case 4:
|
|
58
58
|
page = _a.sent();
|
|
59
59
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueriesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueriesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listQueries.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listQueries.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListQueries(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTagsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTagsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTags.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTags.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -47,13 +47,13 @@ export function paginateListTags(config, input) {
|
|
|
47
47
|
if (!hasNext) return [3, 9];
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
50
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
51
51
|
case 2:
|
|
52
52
|
page = _a.sent();
|
|
53
53
|
return [3, 6];
|
|
54
54
|
case 3:
|
|
55
55
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
56
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
57
57
|
case 4:
|
|
58
58
|
page = _a.sent();
|
|
59
59
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTrailsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTrailsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTrails.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listTrails.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -47,13 +47,13 @@ export function paginateListTrails(config, input) {
|
|
|
47
47
|
if (!hasNext) return [3, 9];
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
50
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
51
51
|
case 2:
|
|
52
52
|
page = _a.sent();
|
|
53
53
|
return [3, 6];
|
|
54
54
|
case 3:
|
|
55
55
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
56
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
57
57
|
case 4:
|
|
58
58
|
page = _a.sent();
|
|
59
59
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new LookupEventsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new LookupEventsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.lookupEvents.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.lookupEvents.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateLookupEvents(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -4283,12 +4283,14 @@ var deserializeAws_json1_1QueryResultRows = function (output, context) {
|
|
|
4283
4283
|
};
|
|
4284
4284
|
var deserializeAws_json1_1QueryStatistics = function (output, context) {
|
|
4285
4285
|
return {
|
|
4286
|
+
BytesScanned: __expectLong(output.BytesScanned),
|
|
4286
4287
|
ResultsCount: __expectInt32(output.ResultsCount),
|
|
4287
4288
|
TotalResultsCount: __expectInt32(output.TotalResultsCount),
|
|
4288
4289
|
};
|
|
4289
4290
|
};
|
|
4290
4291
|
var deserializeAws_json1_1QueryStatisticsForDescribeQuery = function (output, context) {
|
|
4291
4292
|
return {
|
|
4293
|
+
BytesScanned: __expectLong(output.BytesScanned),
|
|
4292
4294
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4293
4295
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4294
4296
|
: undefined,
|