@aws-sdk/client-cloudtrail 3.229.0 → 3.230.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 +0 -1
- package/dist-cjs/endpoint/ruleset.js +5 -14
- package/dist-cjs/models/models_0.js +16 -16
- package/dist-cjs/protocols/Aws_json1_1.js +42 -0
- package/dist-es/endpoint/ruleset.js +5 -14
- package/dist-es/models/models_0.js +13 -13
- package/dist-es/protocols/Aws_json1_1.js +42 -0
- package/dist-types/CloudTrail.d.ts +0 -1
- package/dist-types/CloudTrailClient.d.ts +0 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +41 -45
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,6 @@ AWS SDK for JavaScript CloudTrail Client for Node.js, Browser and React Native.
|
|
|
14
14
|
<p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
|
|
15
15
|
<p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
|
|
16
16
|
The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>
|
|
17
|
-
|
|
18
17
|
<note>
|
|
19
18
|
<p>As an alternative to the API,
|
|
20
19
|
you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
|
|
@@ -6,7 +6,7 @@ exports.ruleSet = {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
Region: {
|
|
8
8
|
builtIn: "AWS::Region",
|
|
9
|
-
required:
|
|
9
|
+
required: true,
|
|
10
10
|
documentation: "The AWS region used to dispatch the request.",
|
|
11
11
|
type: "String",
|
|
12
12
|
},
|
|
@@ -56,15 +56,6 @@ exports.ruleSet = {
|
|
|
56
56
|
},
|
|
57
57
|
],
|
|
58
58
|
},
|
|
59
|
-
{
|
|
60
|
-
fn: "parseURL",
|
|
61
|
-
argv: [
|
|
62
|
-
{
|
|
63
|
-
ref: "Endpoint",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
assign: "url",
|
|
67
|
-
},
|
|
68
59
|
],
|
|
69
60
|
type: "tree",
|
|
70
61
|
rules: [
|
|
@@ -239,12 +230,12 @@ exports.ruleSet = {
|
|
|
239
230
|
{
|
|
240
231
|
ref: "Region",
|
|
241
232
|
},
|
|
242
|
-
"us-gov-
|
|
233
|
+
"us-gov-east-1",
|
|
243
234
|
],
|
|
244
235
|
},
|
|
245
236
|
],
|
|
246
237
|
endpoint: {
|
|
247
|
-
url: "https://cloudtrail.us-gov-
|
|
238
|
+
url: "https://cloudtrail.us-gov-east-1.amazonaws.com",
|
|
248
239
|
properties: {},
|
|
249
240
|
headers: {},
|
|
250
241
|
},
|
|
@@ -258,12 +249,12 @@ exports.ruleSet = {
|
|
|
258
249
|
{
|
|
259
250
|
ref: "Region",
|
|
260
251
|
},
|
|
261
|
-
"us-gov-
|
|
252
|
+
"us-gov-west-1",
|
|
262
253
|
],
|
|
263
254
|
},
|
|
264
255
|
],
|
|
265
256
|
endpoint: {
|
|
266
|
-
url: "https://cloudtrail.us-gov-
|
|
257
|
+
url: "https://cloudtrail.us-gov-west-1.amazonaws.com",
|
|
267
258
|
properties: {},
|
|
268
259
|
headers: {},
|
|
269
260
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.DeregisterOrganizationDelegatedAdminResponseFilterSensitiveLog = exports.DeregisterOrganizationDelegatedAdminRequestFilterSensitiveLog = exports.DeleteTrailResponseFilterSensitiveLog = exports.DeleteTrailRequestFilterSensitiveLog = exports.DeleteEventDataStoreResponseFilterSensitiveLog = exports.DeleteEventDataStoreRequestFilterSensitiveLog = exports.CreateTrailResponseFilterSensitiveLog = exports.CreateTrailRequestFilterSensitiveLog = exports.CreateEventDataStoreResponseFilterSensitiveLog = exports.CreateEventDataStoreRequestFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.CancelQueryResponseFilterSensitiveLog = exports.CancelQueryRequestFilterSensitiveLog = exports.AdvancedEventSelectorFilterSensitiveLog = exports.AdvancedFieldSelectorFilterSensitiveLog = exports.AddTagsResponseFilterSensitiveLog = exports.AddTagsRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreCategoryException = exports.InvalidEventDataStoreStatusException = exports.DelegatedAdminAccountLimitExceededException = exports.InvalidInsightSelectorsException = exports.
|
|
3
|
+
exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyDisabledException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = exports.InvalidParameterCombinationException = exports.InvalidCloudWatchLogsRoleArnException = exports.InvalidCloudWatchLogsLogGroupArnException = exports.InsufficientSnsTopicPolicyException = exports.InsufficientS3BucketPolicyException = exports.CloudWatchLogsDeliveryUnavailableException = exports.CloudTrailInvalidClientTokenIdException = exports.OrganizationsNotInUseException = exports.OrganizationNotInAllFeaturesModeException = exports.KmsKeyNotFoundException = exports.KmsException = exports.InvalidKmsKeyIdException = exports.InvalidEventSelectorsException = exports.InsufficientEncryptionPolicyException = exports.InsufficientDependencyServiceAccessPermissionException = exports.EventDataStoreMaxLimitExceededException = exports.EventDataStoreAlreadyExistsException = exports.EventDataStoreStatus = exports.CloudTrailAccessNotEnabledException = exports.ChannelNotFoundException = exports.ChannelARNInvalidException = exports.CannotDelegateManagementAccountException = exports.QueryIdNotFoundException = exports.InvalidParameterException = exports.InactiveQueryException = exports.EventDataStoreARNInvalidException = exports.QueryStatus = exports.UnsupportedOperationException = exports.TagsLimitExceededException = exports.ResourceTypeNotSupportedException = exports.ResourceNotFoundException = exports.OperationNotPermittedException = exports.NotOrganizationMasterAccountException = exports.NoManagementAccountSLRExistsException = exports.InvalidTrailNameException = exports.InvalidTagParameterException = exports.InactiveEventDataStoreException = exports.EventDataStoreNotFoundException = exports.ConflictException = exports.CloudTrailARNInvalidException = exports.AccountRegisteredException = exports.AccountNotRegisteredException = exports.AccountNotFoundException = exports.AccountHasOngoingImportException = void 0;
|
|
4
|
+
exports.DeregisterOrganizationDelegatedAdminResponseFilterSensitiveLog = exports.DeregisterOrganizationDelegatedAdminRequestFilterSensitiveLog = exports.DeleteTrailResponseFilterSensitiveLog = exports.DeleteTrailRequestFilterSensitiveLog = exports.DeleteEventDataStoreResponseFilterSensitiveLog = exports.DeleteEventDataStoreRequestFilterSensitiveLog = exports.CreateTrailResponseFilterSensitiveLog = exports.CreateTrailRequestFilterSensitiveLog = exports.CreateEventDataStoreResponseFilterSensitiveLog = exports.CreateEventDataStoreRequestFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.CancelQueryResponseFilterSensitiveLog = exports.CancelQueryRequestFilterSensitiveLog = exports.AdvancedEventSelectorFilterSensitiveLog = exports.AdvancedFieldSelectorFilterSensitiveLog = exports.AddTagsResponseFilterSensitiveLog = exports.AddTagsRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreCategoryException = exports.InvalidEventDataStoreStatusException = exports.DelegatedAdminAccountLimitExceededException = exports.InvalidInsightSelectorsException = exports.LookupAttributeKey = exports.EventCategory = exports.InvalidLookupAttributesException = exports.InvalidEventCategoryException = exports.InvalidQueryStatusException = exports.InvalidDateRangeException = exports.InvalidTokenException = exports.InvalidTimeRangeException = exports.ImportFailureStatus = exports.InvalidNextTokenException = exports.InvalidMaxResultsException = exports.InsightNotEnabledException = exports.InsightType = exports.ImportNotFoundException = exports.ImportStatus = exports.ReadWriteType = exports.DestinationType = exports.DeliveryStatus = exports.NotOrganizationManagementAccountException = exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = void 0;
|
|
5
5
|
exports.ResourceTagFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListQueriesResponseFilterSensitiveLog = exports.QueryFilterSensitiveLog = exports.ListQueriesRequestFilterSensitiveLog = exports.ListPublicKeysResponseFilterSensitiveLog = exports.PublicKeyFilterSensitiveLog = exports.ListPublicKeysRequestFilterSensitiveLog = exports.ListImportsResponseFilterSensitiveLog = exports.ImportsListItemFilterSensitiveLog = exports.ListImportsRequestFilterSensitiveLog = exports.ListImportFailuresResponseFilterSensitiveLog = exports.ImportFailureListItemFilterSensitiveLog = exports.ListImportFailuresRequestFilterSensitiveLog = exports.ListEventDataStoresResponseFilterSensitiveLog = exports.EventDataStoreFilterSensitiveLog = exports.ListEventDataStoresRequestFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.ListChannelsRequestFilterSensitiveLog = exports.GetTrailStatusResponseFilterSensitiveLog = exports.GetTrailStatusRequestFilterSensitiveLog = exports.GetTrailResponseFilterSensitiveLog = exports.GetTrailRequestFilterSensitiveLog = exports.GetQueryResultsResponseFilterSensitiveLog = exports.QueryStatisticsFilterSensitiveLog = exports.GetQueryResultsRequestFilterSensitiveLog = exports.GetInsightSelectorsResponseFilterSensitiveLog = exports.InsightSelectorFilterSensitiveLog = exports.GetInsightSelectorsRequestFilterSensitiveLog = exports.GetImportResponseFilterSensitiveLog = exports.ImportStatisticsFilterSensitiveLog = exports.ImportSourceFilterSensitiveLog = exports.S3ImportSourceFilterSensitiveLog = exports.GetImportRequestFilterSensitiveLog = exports.GetEventSelectorsResponseFilterSensitiveLog = exports.EventSelectorFilterSensitiveLog = exports.DataResourceFilterSensitiveLog = exports.GetEventSelectorsRequestFilterSensitiveLog = exports.GetEventDataStoreResponseFilterSensitiveLog = exports.GetEventDataStoreRequestFilterSensitiveLog = exports.GetChannelResponseFilterSensitiveLog = exports.SourceConfigFilterSensitiveLog = exports.DestinationFilterSensitiveLog = exports.GetChannelRequestFilterSensitiveLog = exports.DescribeTrailsResponseFilterSensitiveLog = exports.TrailFilterSensitiveLog = exports.DescribeTrailsRequestFilterSensitiveLog = exports.DescribeQueryResponseFilterSensitiveLog = exports.QueryStatisticsForDescribeQueryFilterSensitiveLog = exports.DescribeQueryRequestFilterSensitiveLog = void 0;
|
|
6
6
|
exports.UpdateTrailResponseFilterSensitiveLog = exports.UpdateTrailRequestFilterSensitiveLog = exports.UpdateEventDataStoreResponseFilterSensitiveLog = exports.UpdateEventDataStoreRequestFilterSensitiveLog = exports.StopLoggingResponseFilterSensitiveLog = exports.StopLoggingRequestFilterSensitiveLog = exports.StopImportResponseFilterSensitiveLog = exports.StopImportRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.StartLoggingResponseFilterSensitiveLog = exports.StartLoggingRequestFilterSensitiveLog = exports.StartImportResponseFilterSensitiveLog = exports.StartImportRequestFilterSensitiveLog = exports.RestoreEventDataStoreResponseFilterSensitiveLog = exports.RestoreEventDataStoreRequestFilterSensitiveLog = exports.RemoveTagsResponseFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.RegisterOrganizationDelegatedAdminResponseFilterSensitiveLog = exports.RegisterOrganizationDelegatedAdminRequestFilterSensitiveLog = exports.PutInsightSelectorsResponseFilterSensitiveLog = exports.PutInsightSelectorsRequestFilterSensitiveLog = exports.PutEventSelectorsResponseFilterSensitiveLog = exports.PutEventSelectorsRequestFilterSensitiveLog = exports.LookupEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.LookupEventsRequestFilterSensitiveLog = exports.LookupAttributeFilterSensitiveLog = exports.ListTrailsResponseFilterSensitiveLog = exports.TrailInfoFilterSensitiveLog = exports.ListTrailsRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = void 0;
|
|
7
7
|
const CloudTrailServiceException_1 = require("./CloudTrailServiceException");
|
|
@@ -426,6 +426,20 @@ class InsufficientEncryptionPolicyException extends CloudTrailServiceException_1
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
exports.InsufficientEncryptionPolicyException = InsufficientEncryptionPolicyException;
|
|
429
|
+
class InvalidEventSelectorsException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
430
|
+
constructor(opts) {
|
|
431
|
+
super({
|
|
432
|
+
name: "InvalidEventSelectorsException",
|
|
433
|
+
$fault: "client",
|
|
434
|
+
...opts,
|
|
435
|
+
});
|
|
436
|
+
this.name = "InvalidEventSelectorsException";
|
|
437
|
+
this.$fault = "client";
|
|
438
|
+
Object.setPrototypeOf(this, InvalidEventSelectorsException.prototype);
|
|
439
|
+
this.Message = opts.Message;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
exports.InvalidEventSelectorsException = InvalidEventSelectorsException;
|
|
429
443
|
class InvalidKmsKeyIdException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
430
444
|
constructor(opts) {
|
|
431
445
|
super({
|
|
@@ -973,20 +987,6 @@ var LookupAttributeKey;
|
|
|
973
987
|
LookupAttributeKey["RESOURCE_TYPE"] = "ResourceType";
|
|
974
988
|
LookupAttributeKey["USERNAME"] = "Username";
|
|
975
989
|
})(LookupAttributeKey = exports.LookupAttributeKey || (exports.LookupAttributeKey = {}));
|
|
976
|
-
class InvalidEventSelectorsException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
977
|
-
constructor(opts) {
|
|
978
|
-
super({
|
|
979
|
-
name: "InvalidEventSelectorsException",
|
|
980
|
-
$fault: "client",
|
|
981
|
-
...opts,
|
|
982
|
-
});
|
|
983
|
-
this.name = "InvalidEventSelectorsException";
|
|
984
|
-
this.$fault = "client";
|
|
985
|
-
Object.setPrototypeOf(this, InvalidEventSelectorsException.prototype);
|
|
986
|
-
this.Message = opts.Message;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
exports.InvalidEventSelectorsException = InvalidEventSelectorsException;
|
|
990
990
|
class InvalidInsightSelectorsException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
991
991
|
constructor(opts) {
|
|
992
992
|
super({
|
|
@@ -556,6 +556,9 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
556
556
|
case "InsufficientEncryptionPolicyException":
|
|
557
557
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
558
558
|
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
559
|
+
case "InvalidEventSelectorsException":
|
|
560
|
+
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
561
|
+
throw await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context);
|
|
559
562
|
case "InvalidKmsKeyIdException":
|
|
560
563
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
561
564
|
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
@@ -701,6 +704,9 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
701
704
|
case "S3BucketDoesNotExistException":
|
|
702
705
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
703
706
|
throw await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context);
|
|
707
|
+
case "TagsLimitExceededException":
|
|
708
|
+
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
709
|
+
throw await deserializeAws_json1_1TagsLimitExceededExceptionResponse(parsedOutput, context);
|
|
704
710
|
case "TrailAlreadyExistsException":
|
|
705
711
|
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
706
712
|
throw await deserializeAws_json1_1TrailAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
@@ -753,6 +759,9 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
753
759
|
case "EventDataStoreTerminationProtectedException":
|
|
754
760
|
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
755
761
|
throw await deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse(parsedOutput, context);
|
|
762
|
+
case "InactiveEventDataStoreException":
|
|
763
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
764
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
756
765
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
757
766
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
758
767
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -802,6 +811,9 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
802
811
|
};
|
|
803
812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
813
|
switch (errorCode) {
|
|
814
|
+
case "CloudTrailARNInvalidException":
|
|
815
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
816
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
805
817
|
case "ConflictException":
|
|
806
818
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
807
819
|
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1111,6 +1123,9 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
1111
1123
|
};
|
|
1112
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
1125
|
switch (errorCode) {
|
|
1126
|
+
case "CloudTrailARNInvalidException":
|
|
1127
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1128
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1114
1129
|
case "InvalidTrailNameException":
|
|
1115
1130
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1116
1131
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
@@ -1200,6 +1215,9 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
1200
1215
|
};
|
|
1201
1216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
1217
|
switch (errorCode) {
|
|
1218
|
+
case "CloudTrailARNInvalidException":
|
|
1219
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1220
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1203
1221
|
case "InsightNotEnabledException":
|
|
1204
1222
|
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
1205
1223
|
throw await deserializeAws_json1_1InsightNotEnabledExceptionResponse(parsedOutput, context);
|
|
@@ -1313,6 +1331,9 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1313
1331
|
};
|
|
1314
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
1333
|
switch (errorCode) {
|
|
1334
|
+
case "CloudTrailARNInvalidException":
|
|
1335
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1336
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1316
1337
|
case "InvalidTrailNameException":
|
|
1317
1338
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1318
1339
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
@@ -1356,6 +1377,9 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1356
1377
|
};
|
|
1357
1378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
1379
|
switch (errorCode) {
|
|
1380
|
+
case "CloudTrailARNInvalidException":
|
|
1381
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1382
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1359
1383
|
case "InvalidTrailNameException":
|
|
1360
1384
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1361
1385
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
@@ -1828,6 +1852,9 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1828
1852
|
};
|
|
1829
1853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
1854
|
switch (errorCode) {
|
|
1855
|
+
case "CloudTrailARNInvalidException":
|
|
1856
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1857
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1831
1858
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1832
1859
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1833
1860
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -1886,6 +1913,9 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1886
1913
|
};
|
|
1887
1914
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1915
|
switch (errorCode) {
|
|
1916
|
+
case "CloudTrailARNInvalidException":
|
|
1917
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1918
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1889
1919
|
case "InsufficientEncryptionPolicyException":
|
|
1890
1920
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
1891
1921
|
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
@@ -2218,6 +2248,9 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
2218
2248
|
};
|
|
2219
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2220
2250
|
switch (errorCode) {
|
|
2251
|
+
case "CloudTrailARNInvalidException":
|
|
2252
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2253
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2221
2254
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2222
2255
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2223
2256
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2389,6 +2422,9 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2389
2422
|
};
|
|
2390
2423
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
2424
|
switch (errorCode) {
|
|
2425
|
+
case "CloudTrailARNInvalidException":
|
|
2426
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2427
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2392
2428
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2393
2429
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2394
2430
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2465,6 +2501,9 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
2465
2501
|
case "InsufficientEncryptionPolicyException":
|
|
2466
2502
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2467
2503
|
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
2504
|
+
case "InvalidEventSelectorsException":
|
|
2505
|
+
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
2506
|
+
throw await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context);
|
|
2468
2507
|
case "InvalidKmsKeyIdException":
|
|
2469
2508
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
2470
2509
|
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
@@ -2526,6 +2565,9 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2526
2565
|
};
|
|
2527
2566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
2567
|
switch (errorCode) {
|
|
2568
|
+
case "CloudTrailARNInvalidException":
|
|
2569
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2570
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2529
2571
|
case "CloudTrailAccessNotEnabledException":
|
|
2530
2572
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2531
2573
|
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
@@ -3,7 +3,7 @@ export const ruleSet = {
|
|
|
3
3
|
parameters: {
|
|
4
4
|
Region: {
|
|
5
5
|
builtIn: "AWS::Region",
|
|
6
|
-
required:
|
|
6
|
+
required: true,
|
|
7
7
|
documentation: "The AWS region used to dispatch the request.",
|
|
8
8
|
type: "String",
|
|
9
9
|
},
|
|
@@ -53,15 +53,6 @@ export const ruleSet = {
|
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
},
|
|
56
|
-
{
|
|
57
|
-
fn: "parseURL",
|
|
58
|
-
argv: [
|
|
59
|
-
{
|
|
60
|
-
ref: "Endpoint",
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
assign: "url",
|
|
64
|
-
},
|
|
65
56
|
],
|
|
66
57
|
type: "tree",
|
|
67
58
|
rules: [
|
|
@@ -236,12 +227,12 @@ export const ruleSet = {
|
|
|
236
227
|
{
|
|
237
228
|
ref: "Region",
|
|
238
229
|
},
|
|
239
|
-
"us-gov-
|
|
230
|
+
"us-gov-east-1",
|
|
240
231
|
],
|
|
241
232
|
},
|
|
242
233
|
],
|
|
243
234
|
endpoint: {
|
|
244
|
-
url: "https://cloudtrail.us-gov-
|
|
235
|
+
url: "https://cloudtrail.us-gov-east-1.amazonaws.com",
|
|
245
236
|
properties: {},
|
|
246
237
|
headers: {},
|
|
247
238
|
},
|
|
@@ -255,12 +246,12 @@ export const ruleSet = {
|
|
|
255
246
|
{
|
|
256
247
|
ref: "Region",
|
|
257
248
|
},
|
|
258
|
-
"us-gov-
|
|
249
|
+
"us-gov-west-1",
|
|
259
250
|
],
|
|
260
251
|
},
|
|
261
252
|
],
|
|
262
253
|
endpoint: {
|
|
263
|
-
url: "https://cloudtrail.us-gov-
|
|
254
|
+
url: "https://cloudtrail.us-gov-west-1.amazonaws.com",
|
|
264
255
|
properties: {},
|
|
265
256
|
headers: {},
|
|
266
257
|
},
|
|
@@ -391,6 +391,19 @@ export class InsufficientEncryptionPolicyException extends __BaseException {
|
|
|
391
391
|
this.Message = opts.Message;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
+
export class InvalidEventSelectorsException extends __BaseException {
|
|
395
|
+
constructor(opts) {
|
|
396
|
+
super({
|
|
397
|
+
name: "InvalidEventSelectorsException",
|
|
398
|
+
$fault: "client",
|
|
399
|
+
...opts,
|
|
400
|
+
});
|
|
401
|
+
this.name = "InvalidEventSelectorsException";
|
|
402
|
+
this.$fault = "client";
|
|
403
|
+
Object.setPrototypeOf(this, InvalidEventSelectorsException.prototype);
|
|
404
|
+
this.Message = opts.Message;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
394
407
|
export class InvalidKmsKeyIdException extends __BaseException {
|
|
395
408
|
constructor(opts) {
|
|
396
409
|
super({
|
|
@@ -903,19 +916,6 @@ export var LookupAttributeKey;
|
|
|
903
916
|
LookupAttributeKey["RESOURCE_TYPE"] = "ResourceType";
|
|
904
917
|
LookupAttributeKey["USERNAME"] = "Username";
|
|
905
918
|
})(LookupAttributeKey || (LookupAttributeKey = {}));
|
|
906
|
-
export class InvalidEventSelectorsException extends __BaseException {
|
|
907
|
-
constructor(opts) {
|
|
908
|
-
super({
|
|
909
|
-
name: "InvalidEventSelectorsException",
|
|
910
|
-
$fault: "client",
|
|
911
|
-
...opts,
|
|
912
|
-
});
|
|
913
|
-
this.name = "InvalidEventSelectorsException";
|
|
914
|
-
this.$fault = "client";
|
|
915
|
-
Object.setPrototypeOf(this, InvalidEventSelectorsException.prototype);
|
|
916
|
-
this.Message = opts.Message;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
919
|
export class InvalidInsightSelectorsException extends __BaseException {
|
|
920
920
|
constructor(opts) {
|
|
921
921
|
super({
|
|
@@ -511,6 +511,9 @@ const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, co
|
|
|
511
511
|
case "InsufficientEncryptionPolicyException":
|
|
512
512
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
513
513
|
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
514
|
+
case "InvalidEventSelectorsException":
|
|
515
|
+
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
516
|
+
throw await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context);
|
|
514
517
|
case "InvalidKmsKeyIdException":
|
|
515
518
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
516
519
|
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
@@ -655,6 +658,9 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
655
658
|
case "S3BucketDoesNotExistException":
|
|
656
659
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
657
660
|
throw await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "TagsLimitExceededException":
|
|
662
|
+
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
663
|
+
throw await deserializeAws_json1_1TagsLimitExceededExceptionResponse(parsedOutput, context);
|
|
658
664
|
case "TrailAlreadyExistsException":
|
|
659
665
|
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
660
666
|
throw await deserializeAws_json1_1TrailAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
@@ -706,6 +712,9 @@ const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, co
|
|
|
706
712
|
case "EventDataStoreTerminationProtectedException":
|
|
707
713
|
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
708
714
|
throw await deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse(parsedOutput, context);
|
|
715
|
+
case "InactiveEventDataStoreException":
|
|
716
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
717
|
+
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
709
718
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
710
719
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
711
720
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -754,6 +763,9 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
754
763
|
};
|
|
755
764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
765
|
switch (errorCode) {
|
|
766
|
+
case "CloudTrailARNInvalidException":
|
|
767
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
768
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
757
769
|
case "ConflictException":
|
|
758
770
|
case "com.amazonaws.cloudtrail#ConflictException":
|
|
759
771
|
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1057,6 +1069,9 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
1057
1069
|
};
|
|
1058
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1071
|
switch (errorCode) {
|
|
1072
|
+
case "CloudTrailARNInvalidException":
|
|
1073
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1074
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1060
1075
|
case "InvalidTrailNameException":
|
|
1061
1076
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1062
1077
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
@@ -1144,6 +1159,9 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
1144
1159
|
};
|
|
1145
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1161
|
switch (errorCode) {
|
|
1162
|
+
case "CloudTrailARNInvalidException":
|
|
1163
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1164
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1147
1165
|
case "InsightNotEnabledException":
|
|
1148
1166
|
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
1149
1167
|
throw await deserializeAws_json1_1InsightNotEnabledExceptionResponse(parsedOutput, context);
|
|
@@ -1255,6 +1273,9 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
1255
1273
|
};
|
|
1256
1274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
1275
|
switch (errorCode) {
|
|
1276
|
+
case "CloudTrailARNInvalidException":
|
|
1277
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1278
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1258
1279
|
case "InvalidTrailNameException":
|
|
1259
1280
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1260
1281
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
@@ -1297,6 +1318,9 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1297
1318
|
};
|
|
1298
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
1320
|
switch (errorCode) {
|
|
1321
|
+
case "CloudTrailARNInvalidException":
|
|
1322
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1323
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1300
1324
|
case "InvalidTrailNameException":
|
|
1301
1325
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1302
1326
|
throw await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context);
|
|
@@ -1759,6 +1783,9 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1759
1783
|
};
|
|
1760
1784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
1785
|
switch (errorCode) {
|
|
1786
|
+
case "CloudTrailARNInvalidException":
|
|
1787
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1788
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1762
1789
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1763
1790
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1764
1791
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -1816,6 +1843,9 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1816
1843
|
};
|
|
1817
1844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
1845
|
switch (errorCode) {
|
|
1846
|
+
case "CloudTrailARNInvalidException":
|
|
1847
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1848
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
1819
1849
|
case "InsufficientEncryptionPolicyException":
|
|
1820
1850
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
1821
1851
|
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
@@ -2143,6 +2173,9 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
2143
2173
|
};
|
|
2144
2174
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
2175
|
switch (errorCode) {
|
|
2176
|
+
case "CloudTrailARNInvalidException":
|
|
2177
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2178
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2146
2179
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2147
2180
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2148
2181
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2311,6 +2344,9 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
2311
2344
|
};
|
|
2312
2345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
2346
|
switch (errorCode) {
|
|
2347
|
+
case "CloudTrailARNInvalidException":
|
|
2348
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2349
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2314
2350
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2315
2351
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2316
2352
|
throw await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context);
|
|
@@ -2386,6 +2422,9 @@ const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, co
|
|
|
2386
2422
|
case "InsufficientEncryptionPolicyException":
|
|
2387
2423
|
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2388
2424
|
throw await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context);
|
|
2425
|
+
case "InvalidEventSelectorsException":
|
|
2426
|
+
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
2427
|
+
throw await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context);
|
|
2389
2428
|
case "InvalidKmsKeyIdException":
|
|
2390
2429
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
2391
2430
|
throw await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context);
|
|
@@ -2446,6 +2485,9 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
2446
2485
|
};
|
|
2447
2486
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2448
2487
|
switch (errorCode) {
|
|
2488
|
+
case "CloudTrailARNInvalidException":
|
|
2489
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2490
|
+
throw await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context);
|
|
2449
2491
|
case "CloudTrailAccessNotEnabledException":
|
|
2450
2492
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2451
2493
|
throw await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
@@ -43,7 +43,6 @@ import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/Up
|
|
|
43
43
|
* <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
|
|
44
44
|
* <p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
|
|
45
45
|
* The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>
|
|
46
|
-
*
|
|
47
46
|
* <note>
|
|
48
47
|
* <p>As an alternative to the API,
|
|
49
48
|
* you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
|
|
@@ -165,7 +165,6 @@ export interface CloudTrailClientResolvedConfig extends CloudTrailClientResolved
|
|
|
165
165
|
* <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
|
|
166
166
|
* <p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
|
|
167
167
|
* The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>
|
|
168
|
-
*
|
|
169
168
|
* <note>
|
|
170
169
|
* <p>As an alternative to the API,
|
|
171
170
|
* you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -1003,6 +1003,43 @@ export declare class InsufficientEncryptionPolicyException extends __BaseExcepti
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
constructor(opts: __ExceptionOptionType<InsufficientEncryptionPolicyException, __BaseException>);
|
|
1005
1005
|
}
|
|
1006
|
+
/**
|
|
1007
|
+
* <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called with a number of event
|
|
1008
|
+
* selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and
|
|
1009
|
+
* data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum
|
|
1010
|
+
* of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.</p>
|
|
1011
|
+
* <p>You can:</p>
|
|
1012
|
+
* <ul>
|
|
1013
|
+
* <li>
|
|
1014
|
+
* <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
|
|
1015
|
+
* </li>
|
|
1016
|
+
* <li>
|
|
1017
|
+
* <p>Specify a valid number of data resources (1 to 250) for an event selector.
|
|
1018
|
+
* The limit of number of resources on an individual event selector is configurable up to 250.
|
|
1019
|
+
* However, this upper limit is allowed only if the total number of data resources does not
|
|
1020
|
+
* exceed 250 across all event selectors for a trail.</p>
|
|
1021
|
+
* </li>
|
|
1022
|
+
* <li>
|
|
1023
|
+
* <p>Specify up to 500 values for all conditions in all advanced event selectors for a trail.</p>
|
|
1024
|
+
* </li>
|
|
1025
|
+
* <li>
|
|
1026
|
+
* <p>Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code>
|
|
1027
|
+
* parameter with a value of <code>read-only</code> is not valid.</p>
|
|
1028
|
+
* </li>
|
|
1029
|
+
* </ul>
|
|
1030
|
+
*/
|
|
1031
|
+
export declare class InvalidEventSelectorsException extends __BaseException {
|
|
1032
|
+
readonly name: "InvalidEventSelectorsException";
|
|
1033
|
+
readonly $fault: "client";
|
|
1034
|
+
/**
|
|
1035
|
+
* <p>Brief description of the exception returned by the request.</p>
|
|
1036
|
+
*/
|
|
1037
|
+
Message?: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* @internal
|
|
1040
|
+
*/
|
|
1041
|
+
constructor(opts: __ExceptionOptionType<InvalidEventSelectorsException, __BaseException>);
|
|
1042
|
+
}
|
|
1006
1043
|
/**
|
|
1007
1044
|
* <p>This exception is thrown when the KMS key ARN is not valid.</p>
|
|
1008
1045
|
*/
|
|
@@ -1705,7 +1742,6 @@ export interface DescribeTrailsRequest {
|
|
|
1705
1742
|
* <p>
|
|
1706
1743
|
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
1707
1744
|
* </p>
|
|
1708
|
-
*
|
|
1709
1745
|
* <p>If an empty list is specified, information for the trail in the current region is returned.</p>
|
|
1710
1746
|
* <ul>
|
|
1711
1747
|
* <li>
|
|
@@ -2055,7 +2091,6 @@ export interface DataResource {
|
|
|
2055
2091
|
* </p>
|
|
2056
2092
|
* </li>
|
|
2057
2093
|
* </ul>
|
|
2058
|
-
*
|
|
2059
2094
|
* <p>The following resource types are also available through <i>advanced</i> event selectors.
|
|
2060
2095
|
* Basic event selector resource types are valid in advanced event selectors, but
|
|
2061
2096
|
* advanced event selector resource types are not valid in basic event selectors.
|
|
@@ -2172,7 +2207,6 @@ export interface EventSelector {
|
|
|
2172
2207
|
* <p>Specify if you want your event selector to include management events for your trail.</p>
|
|
2173
2208
|
* <p>
|
|
2174
2209
|
* For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Management Events</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
2175
|
-
*
|
|
2176
2210
|
* <p>By default, the value is <code>true</code>.</p>
|
|
2177
2211
|
* <p>The first copy of management events is free. You are charged for additional copies of management
|
|
2178
2212
|
* events that you are logging on any subsequent trail in the same region. For more information about
|
|
@@ -2559,7 +2593,7 @@ export interface GetTrailStatusRequest {
|
|
|
2559
2593
|
/**
|
|
2560
2594
|
* <p>Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a
|
|
2561
2595
|
* shadow trail (a replication of the trail in another region), you must specify its ARN. The following is the format of a trail ARN.</p>
|
|
2562
|
-
*
|
|
2596
|
+
* <p>
|
|
2563
2597
|
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
2564
2598
|
* </p>
|
|
2565
2599
|
*/
|
|
@@ -3336,43 +3370,6 @@ export interface LookupEventsResponse {
|
|
|
3336
3370
|
*/
|
|
3337
3371
|
NextToken?: string;
|
|
3338
3372
|
}
|
|
3339
|
-
/**
|
|
3340
|
-
* <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called with a number of event
|
|
3341
|
-
* selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and
|
|
3342
|
-
* data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum
|
|
3343
|
-
* of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.</p>
|
|
3344
|
-
* <p>You can:</p>
|
|
3345
|
-
* <ul>
|
|
3346
|
-
* <li>
|
|
3347
|
-
* <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
|
|
3348
|
-
* </li>
|
|
3349
|
-
* <li>
|
|
3350
|
-
* <p>Specify a valid number of data resources (1 to 250) for an event selector.
|
|
3351
|
-
* The limit of number of resources on an individual event selector is configurable up to 250.
|
|
3352
|
-
* However, this upper limit is allowed only if the total number of data resources does not
|
|
3353
|
-
* exceed 250 across all event selectors for a trail.</p>
|
|
3354
|
-
* </li>
|
|
3355
|
-
* <li>
|
|
3356
|
-
* <p>Specify up to 500 values for all conditions in all advanced event selectors for a trail.</p>
|
|
3357
|
-
* </li>
|
|
3358
|
-
* <li>
|
|
3359
|
-
* <p>Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code>
|
|
3360
|
-
* parameter with a value of <code>read-only</code> is not valid.</p>
|
|
3361
|
-
* </li>
|
|
3362
|
-
* </ul>
|
|
3363
|
-
*/
|
|
3364
|
-
export declare class InvalidEventSelectorsException extends __BaseException {
|
|
3365
|
-
readonly name: "InvalidEventSelectorsException";
|
|
3366
|
-
readonly $fault: "client";
|
|
3367
|
-
/**
|
|
3368
|
-
* <p>Brief description of the exception returned by the request.</p>
|
|
3369
|
-
*/
|
|
3370
|
-
Message?: string;
|
|
3371
|
-
/**
|
|
3372
|
-
* @internal
|
|
3373
|
-
*/
|
|
3374
|
-
constructor(opts: __ExceptionOptionType<InvalidEventSelectorsException, __BaseException>);
|
|
3375
|
-
}
|
|
3376
3373
|
export interface PutEventSelectorsRequest {
|
|
3377
3374
|
/**
|
|
3378
3375
|
* <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
|
|
@@ -3729,7 +3726,7 @@ export interface StartLoggingRequest {
|
|
|
3729
3726
|
/**
|
|
3730
3727
|
* <p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs Amazon Web Services API calls.
|
|
3731
3728
|
* The following is the format of a trail ARN.</p>
|
|
3732
|
-
*
|
|
3729
|
+
* <p>
|
|
3733
3730
|
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
3734
3731
|
* </p>
|
|
3735
3732
|
*/
|
|
@@ -3864,7 +3861,7 @@ export interface StopLoggingRequest {
|
|
|
3864
3861
|
/**
|
|
3865
3862
|
* <p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging Amazon Web Services
|
|
3866
3863
|
* API calls. The following is the format of a trail ARN.</p>
|
|
3867
|
-
*
|
|
3864
|
+
* <p>
|
|
3868
3865
|
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
3869
3866
|
* </p>
|
|
3870
3867
|
*/
|
|
@@ -4019,7 +4016,7 @@ export interface UpdateTrailRequest {
|
|
|
4019
4016
|
* </li>
|
|
4020
4017
|
* </ul>
|
|
4021
4018
|
* <p>If <code>Name</code> is a trail ARN, it must be in the following format.</p>
|
|
4022
|
-
*
|
|
4019
|
+
* <p>
|
|
4023
4020
|
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
4024
4021
|
* </p>
|
|
4025
4022
|
*/
|
|
@@ -4160,7 +4157,6 @@ export interface UpdateTrailResponse {
|
|
|
4160
4157
|
CloudWatchLogsRoleArn?: string;
|
|
4161
4158
|
/**
|
|
4162
4159
|
* <p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
|
|
4163
|
-
*
|
|
4164
4160
|
* <p>
|
|
4165
4161
|
* <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
|
|
4166
4162
|
* </p>
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -340,6 +340,14 @@ export declare class InsufficientEncryptionPolicyException extends __BaseExcepti
|
|
|
340
340
|
>
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
+
export declare class InvalidEventSelectorsException extends __BaseException {
|
|
344
|
+
readonly name: "InvalidEventSelectorsException";
|
|
345
|
+
readonly $fault: "client";
|
|
346
|
+
Message?: string;
|
|
347
|
+
constructor(
|
|
348
|
+
opts: __ExceptionOptionType<InvalidEventSelectorsException, __BaseException>
|
|
349
|
+
);
|
|
350
|
+
}
|
|
343
351
|
export declare class InvalidKmsKeyIdException extends __BaseException {
|
|
344
352
|
readonly name: "InvalidKmsKeyIdException";
|
|
345
353
|
readonly $fault: "client";
|
|
@@ -1077,14 +1085,6 @@ export interface LookupEventsResponse {
|
|
|
1077
1085
|
Events?: Event[];
|
|
1078
1086
|
NextToken?: string;
|
|
1079
1087
|
}
|
|
1080
|
-
export declare class InvalidEventSelectorsException extends __BaseException {
|
|
1081
|
-
readonly name: "InvalidEventSelectorsException";
|
|
1082
|
-
readonly $fault: "client";
|
|
1083
|
-
Message?: string;
|
|
1084
|
-
constructor(
|
|
1085
|
-
opts: __ExceptionOptionType<InvalidEventSelectorsException, __BaseException>
|
|
1086
|
-
);
|
|
1087
|
-
}
|
|
1088
1088
|
export interface PutEventSelectorsRequest {
|
|
1089
1089
|
TrailName: string | undefined;
|
|
1090
1090
|
EventSelectors?: EventSelector[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudtrail",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudtrail Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.230.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|