@aws-sdk/client-cloudtrail 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/CloudTrail.js +1 -107
- package/dist-cjs/CloudTrailClient.js +1 -43
- package/dist-cjs/commands/AddTagsCommand.js +1 -28
- package/dist-cjs/commands/CancelQueryCommand.js +1 -28
- package/dist-cjs/commands/CreateChannelCommand.js +1 -28
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +1 -28
- package/dist-cjs/commands/CreateTrailCommand.js +1 -28
- package/dist-cjs/commands/DeleteChannelCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteTrailCommand.js +1 -28
- package/dist-cjs/commands/DeregisterOrganizationDelegatedAdminCommand.js +1 -28
- package/dist-cjs/commands/DescribeQueryCommand.js +1 -28
- package/dist-cjs/commands/DescribeTrailsCommand.js +1 -28
- package/dist-cjs/commands/DisableFederationCommand.js +1 -28
- package/dist-cjs/commands/EnableFederationCommand.js +1 -28
- package/dist-cjs/commands/GetChannelCommand.js +1 -28
- package/dist-cjs/commands/GetEventDataStoreCommand.js +1 -28
- package/dist-cjs/commands/GetEventSelectorsCommand.js +1 -28
- package/dist-cjs/commands/GetImportCommand.js +1 -28
- package/dist-cjs/commands/GetInsightSelectorsCommand.js +1 -28
- package/dist-cjs/commands/GetQueryResultsCommand.js +1 -28
- package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/GetTrailCommand.js +1 -28
- package/dist-cjs/commands/GetTrailStatusCommand.js +1 -28
- package/dist-cjs/commands/ListChannelsCommand.js +1 -28
- package/dist-cjs/commands/ListEventDataStoresCommand.js +1 -28
- package/dist-cjs/commands/ListImportFailuresCommand.js +1 -28
- package/dist-cjs/commands/ListImportsCommand.js +1 -28
- package/dist-cjs/commands/ListInsightsMetricDataCommand.js +1 -0
- package/dist-cjs/commands/ListPublicKeysCommand.js +1 -28
- package/dist-cjs/commands/ListQueriesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsCommand.js +1 -28
- package/dist-cjs/commands/ListTrailsCommand.js +1 -28
- package/dist-cjs/commands/LookupEventsCommand.js +1 -28
- package/dist-cjs/commands/PutEventSelectorsCommand.js +1 -28
- package/dist-cjs/commands/PutInsightSelectorsCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/RegisterOrganizationDelegatedAdminCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsCommand.js +1 -28
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +1 -28
- package/dist-cjs/commands/StartEventDataStoreIngestionCommand.js +1 -28
- package/dist-cjs/commands/StartImportCommand.js +1 -28
- package/dist-cjs/commands/StartLoggingCommand.js +1 -28
- package/dist-cjs/commands/StartQueryCommand.js +1 -28
- package/dist-cjs/commands/StopEventDataStoreIngestionCommand.js +1 -28
- package/dist-cjs/commands/StopImportCommand.js +1 -28
- package/dist-cjs/commands/StopLoggingCommand.js +1 -28
- package/dist-cjs/commands/UpdateChannelCommand.js +1 -28
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +1 -28
- package/dist-cjs/commands/UpdateTrailCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -51
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +7365 -11
- package/dist-cjs/models/CloudTrailServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -1242
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListChannelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEventDataStoresPaginator.js +1 -7
- package/dist-cjs/pagination/ListImportFailuresPaginator.js +1 -7
- package/dist-cjs/pagination/ListImportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListInsightsMetricDataPaginator.js +1 -0
- package/dist-cjs/pagination/ListPublicKeysPaginator.js +1 -7
- package/dist-cjs/pagination/ListQueriesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTrailsPaginator.js +1 -7
- package/dist-cjs/pagination/LookupEventsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -14
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4429
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-es/CloudTrail.js +2 -0
- package/dist-es/commands/ListInsightsMetricDataCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/pagination/ListInsightsMetricDataPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +86 -1
- package/dist-types/CloudTrail.d.ts +7 -0
- package/dist-types/CloudTrailClient.d.ts +3 -2
- package/dist-types/commands/DisableFederationCommand.d.ts +4 -5
- package/dist-types/commands/EnableFederationCommand.d.ts +3 -4
- package/dist-types/commands/ListInsightsMetricDataCommand.d.ts +102 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +428 -164
- package/dist-types/pagination/ListInsightsMetricDataPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +17 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListInsightsMetricDataCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -0
- package/dist-types/ts3.4/pagination/ListInsightsMetricDataPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +40 -40
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-es/CloudTrail.js
CHANGED
|
@@ -27,6 +27,7 @@ import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
|
|
|
27
27
|
import { ListEventDataStoresCommand, } from "./commands/ListEventDataStoresCommand";
|
|
28
28
|
import { ListImportFailuresCommand, } from "./commands/ListImportFailuresCommand";
|
|
29
29
|
import { ListImportsCommand } from "./commands/ListImportsCommand";
|
|
30
|
+
import { ListInsightsMetricDataCommand, } from "./commands/ListInsightsMetricDataCommand";
|
|
30
31
|
import { ListPublicKeysCommand, } from "./commands/ListPublicKeysCommand";
|
|
31
32
|
import { ListQueriesCommand } from "./commands/ListQueriesCommand";
|
|
32
33
|
import { ListTagsCommand } from "./commands/ListTagsCommand";
|
|
@@ -76,6 +77,7 @@ const commands = {
|
|
|
76
77
|
ListEventDataStoresCommand,
|
|
77
78
|
ListImportFailuresCommand,
|
|
78
79
|
ListImportsCommand,
|
|
80
|
+
ListInsightsMetricDataCommand,
|
|
79
81
|
ListPublicKeysCommand,
|
|
80
82
|
ListQueriesCommand,
|
|
81
83
|
ListTagsCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListInsightsMetricDataCommand, se_ListInsightsMetricDataCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListInsightsMetricDataCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("CloudTrail_20131101", "ListInsightsMetricData", {})
|
|
19
|
+
.n("CloudTrailClient", "ListInsightsMetricDataCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListInsightsMetricDataCommand)
|
|
22
|
+
.de(de_ListInsightsMetricDataCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from "./ListChannelsCommand";
|
|
|
25
25
|
export * from "./ListEventDataStoresCommand";
|
|
26
26
|
export * from "./ListImportFailuresCommand";
|
|
27
27
|
export * from "./ListImportsCommand";
|
|
28
|
+
export * from "./ListInsightsMetricDataCommand";
|
|
28
29
|
export * from "./ListPublicKeysCommand";
|
|
29
30
|
export * from "./ListQueriesCommand";
|
|
30
31
|
export * from "./ListTagsCommand";
|
|
@@ -971,6 +971,10 @@ export const ImportFailureStatus = {
|
|
|
971
971
|
RETRY: "RETRY",
|
|
972
972
|
SUCCEEDED: "SUCCEEDED",
|
|
973
973
|
};
|
|
974
|
+
export const InsightsMetricDataType = {
|
|
975
|
+
FILL_WITH_ZEROS: "FillWithZeros",
|
|
976
|
+
NON_ZERO_DATA: "NonZeroData",
|
|
977
|
+
};
|
|
974
978
|
export class InvalidTimeRangeException extends __BaseException {
|
|
975
979
|
constructor(opts) {
|
|
976
980
|
super({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { CloudTrailClient } from "../CloudTrailClient";
|
|
3
|
+
import { ListInsightsMetricDataCommand, } from "../commands/ListInsightsMetricDataCommand";
|
|
4
|
+
export const paginateListInsightsMetricData = createPaginator(CloudTrailClient, ListInsightsMetricDataCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,6 +4,7 @@ export * from "./ListChannelsPaginator";
|
|
|
4
4
|
export * from "./ListEventDataStoresPaginator";
|
|
5
5
|
export * from "./ListImportFailuresPaginator";
|
|
6
6
|
export * from "./ListImportsPaginator";
|
|
7
|
+
export * from "./ListInsightsMetricDataPaginator";
|
|
7
8
|
export * from "./ListPublicKeysPaginator";
|
|
8
9
|
export * from "./ListQueriesPaginator";
|
|
9
10
|
export * from "./ListTagsPaginator";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
|
|
4
4
|
import { AccessDeniedException, AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelAlreadyExistsException, ChannelARNInvalidException, ChannelExistsForEDSException, ChannelMaxLimitExceededException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConcurrentModificationException, ConflictException, DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreFederationEnabledException, EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, ImportNotFoundException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidImportSourceException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidSourceException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceARNNotValidException, ResourceNotFoundException, ResourcePolicyNotFoundException, ResourcePolicyNotValidException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, ThrottlingException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
5
|
export const se_AddTagsCommand = async (input, context) => {
|
|
@@ -164,6 +164,12 @@ export const se_ListImportsCommand = async (input, context) => {
|
|
|
164
164
|
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
+
export const se_ListInsightsMetricDataCommand = async (input, context) => {
|
|
168
|
+
const headers = sharedHeaders("ListInsightsMetricData");
|
|
169
|
+
let body;
|
|
170
|
+
body = JSON.stringify(se_ListInsightsMetricDataRequest(input, context));
|
|
171
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
|
+
};
|
|
167
173
|
export const se_ListPublicKeysCommand = async (input, context) => {
|
|
168
174
|
const headers = sharedHeaders("ListPublicKeys");
|
|
169
175
|
let body;
|
|
@@ -1817,6 +1823,44 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
1817
1823
|
});
|
|
1818
1824
|
}
|
|
1819
1825
|
};
|
|
1826
|
+
export const de_ListInsightsMetricDataCommand = async (output, context) => {
|
|
1827
|
+
if (output.statusCode >= 300) {
|
|
1828
|
+
return de_ListInsightsMetricDataCommandError(output, context);
|
|
1829
|
+
}
|
|
1830
|
+
const data = await parseBody(output.body, context);
|
|
1831
|
+
let contents = {};
|
|
1832
|
+
contents = de_ListInsightsMetricDataResponse(data, context);
|
|
1833
|
+
const response = {
|
|
1834
|
+
$metadata: deserializeMetadata(output),
|
|
1835
|
+
...contents,
|
|
1836
|
+
};
|
|
1837
|
+
return response;
|
|
1838
|
+
};
|
|
1839
|
+
const de_ListInsightsMetricDataCommandError = async (output, context) => {
|
|
1840
|
+
const parsedOutput = {
|
|
1841
|
+
...output,
|
|
1842
|
+
body: await parseErrorBody(output.body, context),
|
|
1843
|
+
};
|
|
1844
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
switch (errorCode) {
|
|
1846
|
+
case "InvalidParameterException":
|
|
1847
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1848
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1849
|
+
case "OperationNotPermittedException":
|
|
1850
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1851
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1852
|
+
case "UnsupportedOperationException":
|
|
1853
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1854
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1855
|
+
default:
|
|
1856
|
+
const parsedBody = parsedOutput.body;
|
|
1857
|
+
return throwDefaultError({
|
|
1858
|
+
output,
|
|
1859
|
+
parsedBody,
|
|
1860
|
+
errorCode,
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1863
|
+
};
|
|
1820
1864
|
export const de_ListPublicKeysCommand = async (output, context) => {
|
|
1821
1865
|
if (output.statusCode >= 300) {
|
|
1822
1866
|
return de_ListPublicKeysCommandError(output, context);
|
|
@@ -3908,6 +3952,20 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3908
3952
|
});
|
|
3909
3953
|
return __decorateServiceException(exception, body);
|
|
3910
3954
|
};
|
|
3955
|
+
const se_ListInsightsMetricDataRequest = (input, context) => {
|
|
3956
|
+
return take(input, {
|
|
3957
|
+
DataType: [],
|
|
3958
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
3959
|
+
ErrorCode: [],
|
|
3960
|
+
EventName: [],
|
|
3961
|
+
EventSource: [],
|
|
3962
|
+
InsightType: [],
|
|
3963
|
+
MaxResults: [],
|
|
3964
|
+
NextToken: [],
|
|
3965
|
+
Period: [],
|
|
3966
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
3967
|
+
});
|
|
3968
|
+
};
|
|
3911
3969
|
const se_ListPublicKeysRequest = (input, context) => {
|
|
3912
3970
|
return take(input, {
|
|
3913
3971
|
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -4120,6 +4178,14 @@ const de_IngestionStatus = (output, context) => {
|
|
|
4120
4178
|
LatestIngestionSuccessTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4121
4179
|
});
|
|
4122
4180
|
};
|
|
4181
|
+
const de_InsightsMetricValues = (output, context) => {
|
|
4182
|
+
const retVal = (output || [])
|
|
4183
|
+
.filter((e) => e != null)
|
|
4184
|
+
.map((entry) => {
|
|
4185
|
+
return __limitedParseDouble(entry);
|
|
4186
|
+
});
|
|
4187
|
+
return retVal;
|
|
4188
|
+
};
|
|
4123
4189
|
const de_ListEventDataStoresResponse = (output, context) => {
|
|
4124
4190
|
return take(output, {
|
|
4125
4191
|
EventDataStores: (_) => de_EventDataStores(_, context),
|
|
@@ -4138,6 +4204,17 @@ const de_ListImportsResponse = (output, context) => {
|
|
|
4138
4204
|
NextToken: __expectString,
|
|
4139
4205
|
});
|
|
4140
4206
|
};
|
|
4207
|
+
const de_ListInsightsMetricDataResponse = (output, context) => {
|
|
4208
|
+
return take(output, {
|
|
4209
|
+
ErrorCode: __expectString,
|
|
4210
|
+
EventName: __expectString,
|
|
4211
|
+
EventSource: __expectString,
|
|
4212
|
+
InsightType: __expectString,
|
|
4213
|
+
NextToken: __expectString,
|
|
4214
|
+
Timestamps: (_) => de_Timestamps(_, context),
|
|
4215
|
+
Values: (_) => de_InsightsMetricValues(_, context),
|
|
4216
|
+
});
|
|
4217
|
+
};
|
|
4141
4218
|
const de_ListPublicKeysResponse = (output, context) => {
|
|
4142
4219
|
return take(output, {
|
|
4143
4220
|
NextToken: __expectString,
|
|
@@ -4237,6 +4314,14 @@ const de_StopImportResponse = (output, context) => {
|
|
|
4237
4314
|
UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4238
4315
|
});
|
|
4239
4316
|
};
|
|
4317
|
+
const de_Timestamps = (output, context) => {
|
|
4318
|
+
const retVal = (output || [])
|
|
4319
|
+
.filter((e) => e != null)
|
|
4320
|
+
.map((entry) => {
|
|
4321
|
+
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
4322
|
+
});
|
|
4323
|
+
return retVal;
|
|
4324
|
+
};
|
|
4240
4325
|
const de_UpdateEventDataStoreResponse = (output, context) => {
|
|
4241
4326
|
return take(output, {
|
|
4242
4327
|
AdvancedEventSelectors: _json,
|
|
@@ -27,6 +27,7 @@ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/
|
|
|
27
27
|
import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
|
|
28
28
|
import { ListImportFailuresCommandInput, ListImportFailuresCommandOutput } from "./commands/ListImportFailuresCommand";
|
|
29
29
|
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
|
|
30
|
+
import { ListInsightsMetricDataCommandInput, ListInsightsMetricDataCommandOutput } from "./commands/ListInsightsMetricDataCommand";
|
|
30
31
|
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
31
32
|
import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
|
|
32
33
|
import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
|
|
@@ -211,6 +212,12 @@ export interface CloudTrail {
|
|
|
211
212
|
listImports(args: ListImportsCommandInput, options?: __HttpHandlerOptions): Promise<ListImportsCommandOutput>;
|
|
212
213
|
listImports(args: ListImportsCommandInput, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
|
|
213
214
|
listImports(args: ListImportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
|
|
215
|
+
/**
|
|
216
|
+
* @see {@link ListInsightsMetricDataCommand}
|
|
217
|
+
*/
|
|
218
|
+
listInsightsMetricData(args: ListInsightsMetricDataCommandInput, options?: __HttpHandlerOptions): Promise<ListInsightsMetricDataCommandOutput>;
|
|
219
|
+
listInsightsMetricData(args: ListInsightsMetricDataCommandInput, cb: (err: any, data?: ListInsightsMetricDataCommandOutput) => void): void;
|
|
220
|
+
listInsightsMetricData(args: ListInsightsMetricDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInsightsMetricDataCommandOutput) => void): void;
|
|
214
221
|
/**
|
|
215
222
|
* @see {@link ListPublicKeysCommand}
|
|
216
223
|
*/
|
|
@@ -35,6 +35,7 @@ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/
|
|
|
35
35
|
import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
|
|
36
36
|
import { ListImportFailuresCommandInput, ListImportFailuresCommandOutput } from "./commands/ListImportFailuresCommand";
|
|
37
37
|
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
|
|
38
|
+
import { ListInsightsMetricDataCommandInput, ListInsightsMetricDataCommandOutput } from "./commands/ListInsightsMetricDataCommand";
|
|
38
39
|
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
39
40
|
import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
|
|
40
41
|
import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
|
|
@@ -62,11 +63,11 @@ export { __Client };
|
|
|
62
63
|
/**
|
|
63
64
|
* @public
|
|
64
65
|
*/
|
|
65
|
-
export type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateChannelCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteChannelCommandInput | DeleteEventDataStoreCommandInput | DeleteResourcePolicyCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | DisableFederationCommandInput | EnableFederationCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetResourcePolicyCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | PutResourcePolicyCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartEventDataStoreIngestionCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopEventDataStoreIngestionCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateChannelCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
66
|
+
export type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateChannelCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteChannelCommandInput | DeleteEventDataStoreCommandInput | DeleteResourcePolicyCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | DisableFederationCommandInput | EnableFederationCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetResourcePolicyCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListInsightsMetricDataCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | PutResourcePolicyCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartEventDataStoreIngestionCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopEventDataStoreIngestionCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateChannelCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
|
-
export type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateChannelCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteChannelCommandOutput | DeleteEventDataStoreCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | DisableFederationCommandOutput | EnableFederationCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetResourcePolicyCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | PutResourcePolicyCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartEventDataStoreIngestionCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopEventDataStoreIngestionCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateChannelCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
70
|
+
export type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateChannelCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteChannelCommandOutput | DeleteEventDataStoreCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | DisableFederationCommandOutput | EnableFederationCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetResourcePolicyCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListInsightsMetricDataCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | PutResourcePolicyCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartEventDataStoreIngestionCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopEventDataStoreIngestionCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateChannelCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
70
71
|
/**
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
@@ -27,11 +27,10 @@ declare const DisableFederationCommand_base: {
|
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
29
|
* <p>
|
|
30
|
-
* Disables Lake query federation on the specified event data store. When you disable federation, CloudTrail
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* when you disable federation
|
|
34
|
-
* </p>
|
|
30
|
+
* Disables Lake query federation on the specified event data store. When you disable federation, CloudTrail disables
|
|
31
|
+
* the integration with Glue, Lake Formation, and Amazon Athena.
|
|
32
|
+
* After disabling Lake query federation, you can no longer query your event data in Amazon Athena.</p>
|
|
33
|
+
* <p>No CloudTrail Lake data is deleted when you disable federation and you can continue to run queries in CloudTrail Lake.</p>
|
|
35
34
|
* @example
|
|
36
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
36
|
* ```javascript
|
|
@@ -32,11 +32,10 @@ declare const EnableFederationCommand_base: {
|
|
|
32
32
|
* SQL queries against your event data using Amazon Athena. The table metadata stored in the Glue Data Catalog
|
|
33
33
|
* lets the Athena query engine know how to find, read, and process the data that you want to query.</p>
|
|
34
34
|
* <p>When you enable Lake query federation, CloudTrail
|
|
35
|
-
* creates a
|
|
35
|
+
* creates a managed database named <code>aws:cloudtrail</code> (if the database doesn't already exist) and a managed federated table in
|
|
36
36
|
* the Glue Data Catalog. The event data store ID is used for the table name. CloudTrail registers the role ARN and event data store in
|
|
37
|
-
* <a href="https://docs.aws.amazon.com/
|
|
38
|
-
*
|
|
39
|
-
* </p>
|
|
37
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation-lake-formation.html">Lake Formation</a>, the service responsible for allowing fine-grained access control
|
|
38
|
+
* of the federated resources in the Glue Data Catalog.</p>
|
|
40
39
|
* <p>For more information about Lake query federation, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html">Federate an event data store</a>.</p>
|
|
41
40
|
* @example
|
|
42
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
4
|
+
import { ListInsightsMetricDataRequest, ListInsightsMetricDataResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListInsightsMetricDataCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListInsightsMetricDataCommandInput extends ListInsightsMetricDataRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListInsightsMetricDataCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListInsightsMetricDataCommandOutput extends ListInsightsMetricDataResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ListInsightsMetricDataCommand_base: {
|
|
24
|
+
new (input: ListInsightsMetricDataCommandInput): import("@smithy/smithy-client").CommandImpl<ListInsightsMetricDataCommandInput, ListInsightsMetricDataCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>Returns Insights metrics data for trails that have enabled Insights. The request must include the <code>EventSource</code>,
|
|
30
|
+
* <code>EventName</code>, and <code>InsightType</code> parameters.</p>
|
|
31
|
+
* <p>If the <code>InsightType</code> is set to <code>ApiErrorRateInsight</code>, the request must also include the <code>ErrorCode</code> parameter.</p>
|
|
32
|
+
* <p>The following are the available time periods for <code>ListInsightsMetricData</code>. Each cutoff is inclusive.</p>
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>Data points with a period of 60 seconds (1-minute) are available for 15 days.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>Data points with a period of 300 seconds (5-minute) are available for 63 days.</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>Data points with a period of 3600 seconds (1 hour) are available for 90 days.</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* </ul>
|
|
44
|
+
* <p>Access to the <code>ListInsightsMetricData</code> API operation is linked to the <code>cloudtrail:LookupEvents</code> action. To use this operation,
|
|
45
|
+
* you must have permissions to perform the <code>cloudtrail:LookupEvents</code> action.</p>
|
|
46
|
+
* @example
|
|
47
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
48
|
+
* ```javascript
|
|
49
|
+
* import { CloudTrailClient, ListInsightsMetricDataCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
50
|
+
* // const { CloudTrailClient, ListInsightsMetricDataCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
51
|
+
* const client = new CloudTrailClient(config);
|
|
52
|
+
* const input = { // ListInsightsMetricDataRequest
|
|
53
|
+
* EventSource: "STRING_VALUE", // required
|
|
54
|
+
* EventName: "STRING_VALUE", // required
|
|
55
|
+
* InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight", // required
|
|
56
|
+
* ErrorCode: "STRING_VALUE",
|
|
57
|
+
* StartTime: new Date("TIMESTAMP"),
|
|
58
|
+
* EndTime: new Date("TIMESTAMP"),
|
|
59
|
+
* Period: Number("int"),
|
|
60
|
+
* DataType: "FillWithZeros" || "NonZeroData",
|
|
61
|
+
* MaxResults: Number("int"),
|
|
62
|
+
* NextToken: "STRING_VALUE",
|
|
63
|
+
* };
|
|
64
|
+
* const command = new ListInsightsMetricDataCommand(input);
|
|
65
|
+
* const response = await client.send(command);
|
|
66
|
+
* // { // ListInsightsMetricDataResponse
|
|
67
|
+
* // EventSource: "STRING_VALUE",
|
|
68
|
+
* // EventName: "STRING_VALUE",
|
|
69
|
+
* // InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight",
|
|
70
|
+
* // ErrorCode: "STRING_VALUE",
|
|
71
|
+
* // Timestamps: [ // Timestamps
|
|
72
|
+
* // new Date("TIMESTAMP"),
|
|
73
|
+
* // ],
|
|
74
|
+
* // Values: [ // InsightsMetricValues
|
|
75
|
+
* // Number("double"),
|
|
76
|
+
* // ],
|
|
77
|
+
* // NextToken: "STRING_VALUE",
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param ListInsightsMetricDataCommandInput - {@link ListInsightsMetricDataCommandInput}
|
|
83
|
+
* @returns {@link ListInsightsMetricDataCommandOutput}
|
|
84
|
+
* @see {@link ListInsightsMetricDataCommandInput} for command's `input` shape.
|
|
85
|
+
* @see {@link ListInsightsMetricDataCommandOutput} for command's `response` shape.
|
|
86
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
89
|
+
* <p>The request includes a parameter that is not valid.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link OperationNotPermittedException} (client fault)
|
|
92
|
+
* <p>This exception is thrown when the requested operation is not permitted.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link UnsupportedOperationException} (client fault)
|
|
95
|
+
* <p>This exception is thrown when the requested operation is not supported.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link CloudTrailServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from CloudTrail service.</p>
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
export declare class ListInsightsMetricDataCommand extends ListInsightsMetricDataCommand_base {
|
|
102
|
+
}
|
|
@@ -32,9 +32,9 @@ declare const UpdateEventDataStoreCommand_base: {
|
|
|
32
32
|
* <code>RetentionPeriod</code> is in days, and valid values are integers between 7 and
|
|
33
33
|
* 3653 if the <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, or between 7 and 2557 if <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>. By default, <code>TerminationProtection</code> is enabled.</p>
|
|
34
34
|
* <p>For event data stores for CloudTrail events, <code>AdvancedEventSelectors</code>
|
|
35
|
-
* includes or excludes management
|
|
35
|
+
* includes or excludes management or data events in your event data store. For more
|
|
36
36
|
* information about <code>AdvancedEventSelectors</code>, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html">AdvancedEventSelectors</a>.</p>
|
|
37
|
-
* <p> For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events,
|
|
37
|
+
* <p> For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or non-Amazon Web Services events,
|
|
38
38
|
* <code>AdvancedEventSelectors</code> includes events of that type in your event data store.</p>
|
|
39
39
|
* @example
|
|
40
40
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -25,6 +25,7 @@ export * from "./ListChannelsCommand";
|
|
|
25
25
|
export * from "./ListEventDataStoresCommand";
|
|
26
26
|
export * from "./ListImportFailuresCommand";
|
|
27
27
|
export * from "./ListImportsCommand";
|
|
28
|
+
export * from "./ListInsightsMetricDataCommand";
|
|
28
29
|
export * from "./ListPublicKeysCommand";
|
|
29
30
|
export * from "./ListQueriesCommand";
|
|
30
31
|
export * from "./ListTagsCommand";
|