@aws-sdk/client-cloudtrail 3.398.0 → 3.400.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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.InvalidSourceException = exports.InvalidEventDataStoreCategoryException = exports.DestinationType = exports.ChannelMaxLimitExceededException = exports.ChannelExistsForEDSException = exports.ChannelAlreadyExistsException = exports.CannotDelegateManagementAccountException = exports.QueryIdNotFoundException = exports.InvalidParameterException = exports.InactiveQueryException = 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.EventDataStoreARNInvalidException = exports.ConflictException = exports.CloudTrailARNInvalidException = exports.ChannelNotFoundException = exports.ChannelARNInvalidException = exports.AccountRegisteredException = exports.AccountNotRegisteredException = exports.AccountNotFoundException = exports.AccountHasOngoingImportException = void 0;
4
- exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreStatusException = exports.DelegatedAdminAccountLimitExceededException = exports.ResourcePolicyNotValidException = 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.DeliveryStatus = exports.NotOrganizationManagementAccountException = exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.ResourcePolicyNotFoundException = exports.ResourceARNNotValidException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyDisabledException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = void 0;
4
+ exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreStatusException = exports.DelegatedAdminAccountLimitExceededException = exports.ResourcePolicyNotValidException = 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.DeliveryStatus = exports.NotOrganizationManagementAccountException = exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.ResourcePolicyNotFoundException = exports.ResourceARNNotValidException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.ThrottlingException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyDisabledException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = void 0;
5
5
  const CloudTrailServiceException_1 = require("./CloudTrailServiceException");
6
6
  class AccountHasOngoingImportException extends CloudTrailServiceException_1.CloudTrailServiceException {
7
7
  constructor(opts) {
@@ -765,6 +765,20 @@ class S3BucketDoesNotExistException extends CloudTrailServiceException_1.CloudTr
765
765
  }
766
766
  }
767
767
  exports.S3BucketDoesNotExistException = S3BucketDoesNotExistException;
768
+ class ThrottlingException extends CloudTrailServiceException_1.CloudTrailServiceException {
769
+ constructor(opts) {
770
+ super({
771
+ name: "ThrottlingException",
772
+ $fault: "client",
773
+ ...opts,
774
+ });
775
+ this.name = "ThrottlingException";
776
+ this.$fault = "client";
777
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
778
+ this.Message = opts.Message;
779
+ }
780
+ }
781
+ exports.ThrottlingException = ThrottlingException;
768
782
  class TrailAlreadyExistsException extends CloudTrailServiceException_1.CloudTrailServiceException {
769
783
  constructor(opts) {
770
784
  super({
@@ -721,6 +721,9 @@ const de_CreateTrailCommandError = async (output, context) => {
721
721
  case "TagsLimitExceededException":
722
722
  case "com.amazonaws.cloudtrail#TagsLimitExceededException":
723
723
  throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
724
+ case "ThrottlingException":
725
+ case "com.amazonaws.cloudtrail#ThrottlingException":
726
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
724
727
  case "TrailAlreadyExistsException":
725
728
  case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
726
729
  throw await de_TrailAlreadyExistsExceptionRes(parsedOutput, context);
@@ -940,6 +943,9 @@ const de_DeleteTrailCommandError = async (output, context) => {
940
943
  case "OperationNotPermittedException":
941
944
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
942
945
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
946
+ case "ThrottlingException":
947
+ case "com.amazonaws.cloudtrail#ThrottlingException":
948
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
943
949
  case "TrailNotFoundException":
944
950
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
945
951
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -1330,6 +1336,9 @@ const de_GetInsightSelectorsCommandError = async (output, context) => {
1330
1336
  case "OperationNotPermittedException":
1331
1337
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
1332
1338
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1339
+ case "ThrottlingException":
1340
+ case "com.amazonaws.cloudtrail#ThrottlingException":
1341
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1333
1342
  case "TrailNotFoundException":
1334
1343
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
1335
1344
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2020,6 +2029,9 @@ const de_PutEventSelectorsCommandError = async (output, context) => {
2020
2029
  case "OperationNotPermittedException":
2021
2030
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
2022
2031
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2032
+ case "ThrottlingException":
2033
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2034
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2023
2035
  case "TrailNotFoundException":
2024
2036
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2025
2037
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2089,6 +2101,9 @@ const de_PutInsightSelectorsCommandError = async (output, context) => {
2089
2101
  case "S3BucketDoesNotExistException":
2090
2102
  case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
2091
2103
  throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
2104
+ case "ThrottlingException":
2105
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2106
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2092
2107
  case "TrailNotFoundException":
2093
2108
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2094
2109
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2533,6 +2548,9 @@ const de_StartLoggingCommandError = async (output, context) => {
2533
2548
  case "OperationNotPermittedException":
2534
2549
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
2535
2550
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2551
+ case "ThrottlingException":
2552
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2553
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2536
2554
  case "TrailNotFoundException":
2537
2555
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2538
2556
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2767,6 +2785,9 @@ const de_StopLoggingCommandError = async (output, context) => {
2767
2785
  case "OperationNotPermittedException":
2768
2786
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
2769
2787
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2788
+ case "ThrottlingException":
2789
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2790
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2770
2791
  case "TrailNotFoundException":
2771
2792
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2772
2793
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -3037,6 +3058,9 @@ const de_UpdateTrailCommandError = async (output, context) => {
3037
3058
  case "S3BucketDoesNotExistException":
3038
3059
  case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
3039
3060
  throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
3061
+ case "ThrottlingException":
3062
+ case "com.amazonaws.cloudtrail#ThrottlingException":
3063
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3040
3064
  case "TrailNotFoundException":
3041
3065
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
3042
3066
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -3730,6 +3754,15 @@ const de_TagsLimitExceededExceptionRes = async (parsedOutput, context) => {
3730
3754
  });
3731
3755
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3732
3756
  };
3757
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3758
+ const body = parsedOutput.body;
3759
+ const deserialized = (0, smithy_client_1._json)(body);
3760
+ const exception = new models_0_1.ThrottlingException({
3761
+ $metadata: deserializeMetadata(parsedOutput),
3762
+ ...deserialized,
3763
+ });
3764
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
3765
+ };
3733
3766
  const de_TrailAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3734
3767
  const body = parsedOutput.body;
3735
3768
  const deserialized = (0, smithy_client_1._json)(body);
@@ -708,6 +708,19 @@ export class S3BucketDoesNotExistException extends __BaseException {
708
708
  this.Message = opts.Message;
709
709
  }
710
710
  }
711
+ export class ThrottlingException extends __BaseException {
712
+ constructor(opts) {
713
+ super({
714
+ name: "ThrottlingException",
715
+ $fault: "client",
716
+ ...opts,
717
+ });
718
+ this.name = "ThrottlingException";
719
+ this.$fault = "client";
720
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
721
+ this.Message = opts.Message;
722
+ }
723
+ }
711
724
  export class TrailAlreadyExistsException extends __BaseException {
712
725
  constructor(opts) {
713
726
  super({
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
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";
3
3
  import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
4
- import { AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelAlreadyExistsException, ChannelARNInvalidException, ChannelExistsForEDSException, ChannelMaxLimitExceededException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, 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, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
4
+ import { AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelAlreadyExistsException, ChannelARNInvalidException, ChannelExistsForEDSException, ChannelMaxLimitExceededException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, 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) => {
6
6
  const headers = sharedHeaders("AddTags");
7
7
  let body;
@@ -666,6 +666,9 @@ const de_CreateTrailCommandError = async (output, context) => {
666
666
  case "TagsLimitExceededException":
667
667
  case "com.amazonaws.cloudtrail#TagsLimitExceededException":
668
668
  throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
669
+ case "ThrottlingException":
670
+ case "com.amazonaws.cloudtrail#ThrottlingException":
671
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
669
672
  case "TrailAlreadyExistsException":
670
673
  case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
671
674
  throw await de_TrailAlreadyExistsExceptionRes(parsedOutput, context);
@@ -881,6 +884,9 @@ const de_DeleteTrailCommandError = async (output, context) => {
881
884
  case "OperationNotPermittedException":
882
885
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
883
886
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
887
+ case "ThrottlingException":
888
+ case "com.amazonaws.cloudtrail#ThrottlingException":
889
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
884
890
  case "TrailNotFoundException":
885
891
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
886
892
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -1263,6 +1269,9 @@ const de_GetInsightSelectorsCommandError = async (output, context) => {
1263
1269
  case "OperationNotPermittedException":
1264
1270
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
1265
1271
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1272
+ case "ThrottlingException":
1273
+ case "com.amazonaws.cloudtrail#ThrottlingException":
1274
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1266
1275
  case "TrailNotFoundException":
1267
1276
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
1268
1277
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -1939,6 +1948,9 @@ const de_PutEventSelectorsCommandError = async (output, context) => {
1939
1948
  case "OperationNotPermittedException":
1940
1949
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
1941
1950
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1951
+ case "ThrottlingException":
1952
+ case "com.amazonaws.cloudtrail#ThrottlingException":
1953
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1942
1954
  case "TrailNotFoundException":
1943
1955
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
1944
1956
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2007,6 +2019,9 @@ const de_PutInsightSelectorsCommandError = async (output, context) => {
2007
2019
  case "S3BucketDoesNotExistException":
2008
2020
  case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
2009
2021
  throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
2022
+ case "ThrottlingException":
2023
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2024
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2010
2025
  case "TrailNotFoundException":
2011
2026
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2012
2027
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2444,6 +2459,9 @@ const de_StartLoggingCommandError = async (output, context) => {
2444
2459
  case "OperationNotPermittedException":
2445
2460
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
2446
2461
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2462
+ case "ThrottlingException":
2463
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2464
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2447
2465
  case "TrailNotFoundException":
2448
2466
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2449
2467
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2674,6 +2692,9 @@ const de_StopLoggingCommandError = async (output, context) => {
2674
2692
  case "OperationNotPermittedException":
2675
2693
  case "com.amazonaws.cloudtrail#OperationNotPermittedException":
2676
2694
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2695
+ case "ThrottlingException":
2696
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2697
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2677
2698
  case "TrailNotFoundException":
2678
2699
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2679
2700
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -2941,6 +2962,9 @@ const de_UpdateTrailCommandError = async (output, context) => {
2941
2962
  case "S3BucketDoesNotExistException":
2942
2963
  case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
2943
2964
  throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
2965
+ case "ThrottlingException":
2966
+ case "com.amazonaws.cloudtrail#ThrottlingException":
2967
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2944
2968
  case "TrailNotFoundException":
2945
2969
  case "com.amazonaws.cloudtrail#TrailNotFoundException":
2946
2970
  throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
@@ -3634,6 +3658,15 @@ const de_TagsLimitExceededExceptionRes = async (parsedOutput, context) => {
3634
3658
  });
3635
3659
  return __decorateServiceException(exception, body);
3636
3660
  };
3661
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3662
+ const body = parsedOutput.body;
3663
+ const deserialized = _json(body);
3664
+ const exception = new ThrottlingException({
3665
+ $metadata: deserializeMetadata(parsedOutput),
3666
+ ...deserialized,
3667
+ });
3668
+ return __decorateServiceException(exception, body);
3669
+ };
3637
3670
  const de_TrailAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3638
3671
  const body = parsedOutput.body;
3639
3672
  const deserialized = _json(body);
@@ -203,6 +203,11 @@ export interface CreateTrailCommandOutput extends CreateTrailResponse, __Metadat
203
203
  * <p>The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is
204
204
  * 50.</p>
205
205
  *
206
+ * @throws {@link ThrottlingException} (client fault)
207
+ * <p>
208
+ * This exception is thrown when the request rate exceeds the limit.
209
+ * </p>
210
+ *
206
211
  * @throws {@link TrailAlreadyExistsException} (client fault)
207
212
  * <p>This exception is thrown when the specified trail already exists.</p>
208
213
  *
@@ -111,6 +111,11 @@ export interface DeleteTrailCommandOutput extends DeleteTrailResponse, __Metadat
111
111
  * @throws {@link OperationNotPermittedException} (client fault)
112
112
  * <p>This exception is thrown when the requested operation is not permitted.</p>
113
113
  *
114
+ * @throws {@link ThrottlingException} (client fault)
115
+ * <p>
116
+ * This exception is thrown when the request rate exceeds the limit.
117
+ * </p>
118
+ *
114
119
  * @throws {@link TrailNotFoundException} (client fault)
115
120
  * <p>This exception is thrown when the trail with the given name is not found.</p>
116
121
  *
@@ -107,6 +107,11 @@ export interface GetInsightSelectorsCommandOutput extends GetInsightSelectorsRes
107
107
  * @throws {@link OperationNotPermittedException} (client fault)
108
108
  * <p>This exception is thrown when the requested operation is not permitted.</p>
109
109
  *
110
+ * @throws {@link ThrottlingException} (client fault)
111
+ * <p>
112
+ * This exception is thrown when the request rate exceeds the limit.
113
+ * </p>
114
+ *
110
115
  * @throws {@link TrailNotFoundException} (client fault)
111
116
  * <p>This exception is thrown when the trail with the given name is not found.</p>
112
117
  *
@@ -271,6 +271,11 @@ export interface PutEventSelectorsCommandOutput extends PutEventSelectorsRespons
271
271
  * @throws {@link OperationNotPermittedException} (client fault)
272
272
  * <p>This exception is thrown when the requested operation is not permitted.</p>
273
273
  *
274
+ * @throws {@link ThrottlingException} (client fault)
275
+ * <p>
276
+ * This exception is thrown when the request rate exceeds the limit.
277
+ * </p>
278
+ *
274
279
  * @throws {@link TrailNotFoundException} (client fault)
275
280
  * <p>This exception is thrown when the trail with the given name is not found.</p>
276
281
  *
@@ -139,6 +139,11 @@ export interface PutInsightSelectorsCommandOutput extends PutInsightSelectorsRes
139
139
  * @throws {@link S3BucketDoesNotExistException} (client fault)
140
140
  * <p>This exception is thrown when the specified S3 bucket does not exist.</p>
141
141
  *
142
+ * @throws {@link ThrottlingException} (client fault)
143
+ * <p>
144
+ * This exception is thrown when the request rate exceeds the limit.
145
+ * </p>
146
+ *
142
147
  * @throws {@link TrailNotFoundException} (client fault)
143
148
  * <p>This exception is thrown when the trail with the given name is not found.</p>
144
149
  *
@@ -112,6 +112,11 @@ export interface StartLoggingCommandOutput extends StartLoggingResponse, __Metad
112
112
  * @throws {@link OperationNotPermittedException} (client fault)
113
113
  * <p>This exception is thrown when the requested operation is not permitted.</p>
114
114
  *
115
+ * @throws {@link ThrottlingException} (client fault)
116
+ * <p>
117
+ * This exception is thrown when the request rate exceeds the limit.
118
+ * </p>
119
+ *
115
120
  * @throws {@link TrailNotFoundException} (client fault)
116
121
  * <p>This exception is thrown when the trail with the given name is not found.</p>
117
122
  *
@@ -115,6 +115,11 @@ export interface StopLoggingCommandOutput extends StopLoggingResponse, __Metadat
115
115
  * @throws {@link OperationNotPermittedException} (client fault)
116
116
  * <p>This exception is thrown when the requested operation is not permitted.</p>
117
117
  *
118
+ * @throws {@link ThrottlingException} (client fault)
119
+ * <p>
120
+ * This exception is thrown when the request rate exceeds the limit.
121
+ * </p>
122
+ *
118
123
  * @throws {@link TrailNotFoundException} (client fault)
119
124
  * <p>This exception is thrown when the trail with the given name is not found.</p>
120
125
  *
@@ -241,6 +241,11 @@ export interface UpdateTrailCommandOutput extends UpdateTrailResponse, __Metadat
241
241
  * @throws {@link S3BucketDoesNotExistException} (client fault)
242
242
  * <p>This exception is thrown when the specified S3 bucket does not exist.</p>
243
243
  *
244
+ * @throws {@link ThrottlingException} (client fault)
245
+ * <p>
246
+ * This exception is thrown when the request rate exceeds the limit.
247
+ * </p>
248
+ *
244
249
  * @throws {@link TrailNotFoundException} (client fault)
245
250
  * <p>This exception is thrown when the trail with the given name is not found.</p>
246
251
  *
@@ -2184,6 +2184,25 @@ export declare class S3BucketDoesNotExistException extends __BaseException {
2184
2184
  */
2185
2185
  constructor(opts: __ExceptionOptionType<S3BucketDoesNotExistException, __BaseException>);
2186
2186
  }
2187
+ /**
2188
+ * @public
2189
+ * <p>
2190
+ * This exception is thrown when the request rate exceeds the limit.
2191
+ * </p>
2192
+ */
2193
+ export declare class ThrottlingException extends __BaseException {
2194
+ readonly name: "ThrottlingException";
2195
+ readonly $fault: "client";
2196
+ /**
2197
+ * @public
2198
+ * <p>Brief description of the exception returned by the request.</p>
2199
+ */
2200
+ Message?: string;
2201
+ /**
2202
+ * @internal
2203
+ */
2204
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
2205
+ }
2187
2206
  /**
2188
2207
  * @public
2189
2208
  * <p>This exception is thrown when the specified trail already exists.</p>
@@ -622,6 +622,14 @@ export declare class S3BucketDoesNotExistException extends __BaseException {
622
622
  opts: __ExceptionOptionType<S3BucketDoesNotExistException, __BaseException>
623
623
  );
624
624
  }
625
+ export declare class ThrottlingException extends __BaseException {
626
+ readonly name: "ThrottlingException";
627
+ readonly $fault: "client";
628
+ Message?: string;
629
+ constructor(
630
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
631
+ );
632
+ }
625
633
  export declare class TrailAlreadyExistsException extends __BaseException {
626
634
  readonly name: "TrailAlreadyExistsException";
627
635
  readonly $fault: "client";
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.398.0",
4
+ "version": "3.400.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",