@aws-sdk/client-cloudtrail 3.1045.0 → 3.1046.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/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +136 -137
- package/dist-cjs/models/CloudTrailServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/CloudTrail.js +1 -1
- package/dist-es/CloudTrailClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/AddTagsCommand.js +2 -2
- package/dist-es/commands/CancelQueryCommand.js +2 -2
- package/dist-es/commands/CreateChannelCommand.js +2 -2
- package/dist-es/commands/CreateDashboardCommand.js +2 -2
- package/dist-es/commands/CreateEventDataStoreCommand.js +2 -2
- package/dist-es/commands/CreateTrailCommand.js +2 -2
- package/dist-es/commands/DeleteChannelCommand.js +2 -2
- package/dist-es/commands/DeleteDashboardCommand.js +2 -2
- package/dist-es/commands/DeleteEventDataStoreCommand.js +2 -2
- package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-es/commands/DeleteTrailCommand.js +2 -2
- package/dist-es/commands/DeregisterOrganizationDelegatedAdminCommand.js +2 -2
- package/dist-es/commands/DescribeQueryCommand.js +2 -2
- package/dist-es/commands/DescribeTrailsCommand.js +2 -2
- package/dist-es/commands/DisableFederationCommand.js +2 -2
- package/dist-es/commands/EnableFederationCommand.js +2 -2
- package/dist-es/commands/GenerateQueryCommand.js +2 -2
- package/dist-es/commands/GetChannelCommand.js +2 -2
- package/dist-es/commands/GetDashboardCommand.js +2 -2
- package/dist-es/commands/GetEventConfigurationCommand.js +2 -2
- package/dist-es/commands/GetEventDataStoreCommand.js +2 -2
- package/dist-es/commands/GetEventSelectorsCommand.js +2 -2
- package/dist-es/commands/GetImportCommand.js +2 -2
- package/dist-es/commands/GetInsightSelectorsCommand.js +2 -2
- package/dist-es/commands/GetQueryResultsCommand.js +2 -2
- package/dist-es/commands/GetResourcePolicyCommand.js +2 -2
- package/dist-es/commands/GetTrailCommand.js +2 -2
- package/dist-es/commands/GetTrailStatusCommand.js +2 -2
- package/dist-es/commands/ListChannelsCommand.js +2 -2
- package/dist-es/commands/ListDashboardsCommand.js +2 -2
- package/dist-es/commands/ListEventDataStoresCommand.js +2 -2
- package/dist-es/commands/ListImportFailuresCommand.js +2 -2
- package/dist-es/commands/ListImportsCommand.js +2 -2
- package/dist-es/commands/ListInsightsDataCommand.js +2 -2
- package/dist-es/commands/ListInsightsMetricDataCommand.js +2 -2
- package/dist-es/commands/ListPublicKeysCommand.js +2 -2
- package/dist-es/commands/ListQueriesCommand.js +2 -2
- package/dist-es/commands/ListTagsCommand.js +2 -2
- package/dist-es/commands/ListTrailsCommand.js +2 -2
- package/dist-es/commands/LookupEventsCommand.js +2 -2
- package/dist-es/commands/PutEventConfigurationCommand.js +2 -2
- package/dist-es/commands/PutEventSelectorsCommand.js +2 -2
- package/dist-es/commands/PutInsightSelectorsCommand.js +2 -2
- package/dist-es/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-es/commands/RegisterOrganizationDelegatedAdminCommand.js +2 -2
- package/dist-es/commands/RemoveTagsCommand.js +2 -2
- package/dist-es/commands/RestoreEventDataStoreCommand.js +2 -2
- package/dist-es/commands/SearchSampleQueriesCommand.js +2 -2
- package/dist-es/commands/StartDashboardRefreshCommand.js +2 -2
- package/dist-es/commands/StartEventDataStoreIngestionCommand.js +2 -2
- package/dist-es/commands/StartImportCommand.js +2 -2
- package/dist-es/commands/StartLoggingCommand.js +2 -2
- package/dist-es/commands/StartQueryCommand.js +2 -2
- package/dist-es/commands/StopEventDataStoreIngestionCommand.js +2 -2
- package/dist-es/commands/StopImportCommand.js +2 -2
- package/dist-es/commands/StopLoggingCommand.js +2 -2
- package/dist-es/commands/UpdateChannelCommand.js +2 -2
- package/dist-es/commands/UpdateDashboardCommand.js +2 -2
- package/dist-es/commands/UpdateEventDataStoreCommand.js +2 -2
- package/dist-es/commands/UpdateTrailCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/CloudTrailServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/CloudTrailClient.d.ts +5 -5
- package/dist-types/commands/AddTagsCommand.d.ts +6 -4
- package/dist-types/commands/CancelQueryCommand.d.ts +6 -4
- package/dist-types/commands/CreateChannelCommand.d.ts +6 -4
- package/dist-types/commands/CreateDashboardCommand.d.ts +6 -4
- package/dist-types/commands/CreateEventDataStoreCommand.d.ts +6 -4
- package/dist-types/commands/CreateTrailCommand.d.ts +6 -4
- package/dist-types/commands/DeleteChannelCommand.d.ts +6 -4
- package/dist-types/commands/DeleteDashboardCommand.d.ts +6 -4
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +6 -4
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -4
- package/dist-types/commands/DeleteTrailCommand.d.ts +6 -4
- package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +6 -4
- package/dist-types/commands/DescribeQueryCommand.d.ts +6 -4
- package/dist-types/commands/DescribeTrailsCommand.d.ts +6 -4
- package/dist-types/commands/DisableFederationCommand.d.ts +6 -4
- package/dist-types/commands/EnableFederationCommand.d.ts +6 -4
- package/dist-types/commands/GenerateQueryCommand.d.ts +6 -4
- package/dist-types/commands/GetChannelCommand.d.ts +6 -4
- package/dist-types/commands/GetDashboardCommand.d.ts +6 -4
- package/dist-types/commands/GetEventConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +6 -4
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +6 -4
- package/dist-types/commands/GetImportCommand.d.ts +6 -4
- package/dist-types/commands/GetInsightSelectorsCommand.d.ts +6 -4
- package/dist-types/commands/GetQueryResultsCommand.d.ts +6 -4
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +6 -4
- package/dist-types/commands/GetTrailCommand.d.ts +6 -4
- package/dist-types/commands/GetTrailStatusCommand.d.ts +6 -4
- package/dist-types/commands/ListChannelsCommand.d.ts +6 -4
- package/dist-types/commands/ListDashboardsCommand.d.ts +6 -4
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +6 -4
- package/dist-types/commands/ListImportFailuresCommand.d.ts +6 -4
- package/dist-types/commands/ListImportsCommand.d.ts +6 -4
- package/dist-types/commands/ListInsightsDataCommand.d.ts +6 -4
- package/dist-types/commands/ListInsightsMetricDataCommand.d.ts +6 -4
- package/dist-types/commands/ListPublicKeysCommand.d.ts +6 -4
- package/dist-types/commands/ListQueriesCommand.d.ts +6 -4
- package/dist-types/commands/ListTagsCommand.d.ts +6 -4
- package/dist-types/commands/ListTrailsCommand.d.ts +6 -4
- package/dist-types/commands/LookupEventsCommand.d.ts +6 -4
- package/dist-types/commands/PutEventConfigurationCommand.d.ts +6 -4
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +6 -4
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +6 -4
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -4
- package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +6 -4
- package/dist-types/commands/RemoveTagsCommand.d.ts +6 -4
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +6 -4
- package/dist-types/commands/SearchSampleQueriesCommand.d.ts +6 -4
- package/dist-types/commands/StartDashboardRefreshCommand.d.ts +6 -4
- package/dist-types/commands/StartEventDataStoreIngestionCommand.d.ts +6 -4
- package/dist-types/commands/StartImportCommand.d.ts +6 -4
- package/dist-types/commands/StartLoggingCommand.d.ts +6 -4
- package/dist-types/commands/StartQueryCommand.d.ts +6 -4
- package/dist-types/commands/StopEventDataStoreIngestionCommand.d.ts +6 -4
- package/dist-types/commands/StopImportCommand.d.ts +6 -4
- package/dist-types/commands/StopLoggingCommand.d.ts +6 -4
- package/dist-types/commands/UpdateChannelCommand.d.ts +6 -4
- package/dist-types/commands/UpdateDashboardCommand.d.ts +6 -4
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +6 -4
- package/dist-types/commands/UpdateTrailCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/CloudTrailServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/CloudTrailClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateDashboardCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteDashboardCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DisableFederationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/EnableFederationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GenerateQueryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEventConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetImportCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListInsightsDataCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListInsightsMetricDataCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutEventConfigurationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SearchSampleQueriesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartDashboardRefreshCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartEventDataStoreIngestionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopEventDataStoreIngestionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopImportCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateDashboardCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/CloudTrailServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +13 -34
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultCloudTrailHttpAuthSchemeProvider = exports.defaultCloudTrailHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultCloudTrailHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultCloudTrailHttpAuthSchemeProvider = defaultCloudTrailHttpAuthSchem
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const m = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
|
|
7
7
|
const _data = {
|
|
@@ -52,4 +52,4 @@ const nodes = new Int32Array([
|
|
|
52
52
|
3, r + 1, 15,
|
|
53
53
|
4, r + 2, r + 3,
|
|
54
54
|
]);
|
|
55
|
-
exports.bdd =
|
|
55
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|