errors.go 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package cloudtrail
  3. import (
  4. "github.com/aws/aws-sdk-go/private/protocol"
  5. )
  6. const (
  7. // ErrCodeARNInvalidException for service response error code
  8. // "CloudTrailARNInvalidException".
  9. //
  10. // This exception is thrown when an operation is called with a trail ARN that
  11. // is not valid. The following is the format of a trail ARN.
  12. //
  13. // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
  14. //
  15. // This exception is also thrown when you call AddTags or RemoveTags on a trail,
  16. // event data store, or channel with a resource ARN that is not valid.
  17. //
  18. // The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
  19. //
  20. // The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
  21. ErrCodeARNInvalidException = "CloudTrailARNInvalidException"
  22. // ErrCodeAccessNotEnabledException for service response error code
  23. // "CloudTrailAccessNotEnabledException".
  24. //
  25. // This exception is thrown when trusted access has not been enabled between
  26. // CloudTrail and Organizations. For more information, see Enabling Trusted
  27. // Access with Other Amazon Web Services Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)
  28. // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
  29. ErrCodeAccessNotEnabledException = "CloudTrailAccessNotEnabledException"
  30. // ErrCodeAccountHasOngoingImportException for service response error code
  31. // "AccountHasOngoingImportException".
  32. //
  33. // This exception is thrown when you start a new import and a previous import
  34. // is still in progress.
  35. ErrCodeAccountHasOngoingImportException = "AccountHasOngoingImportException"
  36. // ErrCodeAccountNotFoundException for service response error code
  37. // "AccountNotFoundException".
  38. //
  39. // This exception is thrown when the specified account is not found or not part
  40. // of an organization.
  41. ErrCodeAccountNotFoundException = "AccountNotFoundException"
  42. // ErrCodeAccountNotRegisteredException for service response error code
  43. // "AccountNotRegisteredException".
  44. //
  45. // This exception is thrown when the specified account is not registered as
  46. // the CloudTrail delegated administrator.
  47. ErrCodeAccountNotRegisteredException = "AccountNotRegisteredException"
  48. // ErrCodeAccountRegisteredException for service response error code
  49. // "AccountRegisteredException".
  50. //
  51. // This exception is thrown when the account is already registered as the CloudTrail
  52. // delegated administrator.
  53. ErrCodeAccountRegisteredException = "AccountRegisteredException"
  54. // ErrCodeCannotDelegateManagementAccountException for service response error code
  55. // "CannotDelegateManagementAccountException".
  56. //
  57. // This exception is thrown when the management account of an organization is
  58. // registered as the CloudTrail delegated administrator.
  59. ErrCodeCannotDelegateManagementAccountException = "CannotDelegateManagementAccountException"
  60. // ErrCodeChannelARNInvalidException for service response error code
  61. // "ChannelARNInvalidException".
  62. //
  63. // This exception is thrown when the specified value of ChannelARN is not valid.
  64. ErrCodeChannelARNInvalidException = "ChannelARNInvalidException"
  65. // ErrCodeChannelAlreadyExistsException for service response error code
  66. // "ChannelAlreadyExistsException".
  67. //
  68. // This exception is thrown when the provided channel already exists.
  69. ErrCodeChannelAlreadyExistsException = "ChannelAlreadyExistsException"
  70. // ErrCodeChannelExistsForEDSException for service response error code
  71. // "ChannelExistsForEDSException".
  72. //
  73. // This exception is thrown when the specified event data store cannot yet be
  74. // deleted because it is in use by a channel.
  75. ErrCodeChannelExistsForEDSException = "ChannelExistsForEDSException"
  76. // ErrCodeChannelMaxLimitExceededException for service response error code
  77. // "ChannelMaxLimitExceededException".
  78. //
  79. // This exception is thrown when the maximum number of channels limit is exceeded.
  80. ErrCodeChannelMaxLimitExceededException = "ChannelMaxLimitExceededException"
  81. // ErrCodeChannelNotFoundException for service response error code
  82. // "ChannelNotFoundException".
  83. //
  84. // This exception is thrown when CloudTrail cannot find the specified channel.
  85. ErrCodeChannelNotFoundException = "ChannelNotFoundException"
  86. // ErrCodeCloudTrailInvalidClientTokenIdException for service response error code
  87. // "CloudTrailInvalidClientTokenIdException".
  88. //
  89. // This exception is thrown when a call results in the InvalidClientTokenId
  90. // error code. This can occur when you are creating or updating a trail to send
  91. // notifications to an Amazon SNS topic that is in a suspended Amazon Web Services
  92. // account.
  93. ErrCodeCloudTrailInvalidClientTokenIdException = "CloudTrailInvalidClientTokenIdException"
  94. // ErrCodeCloudWatchLogsDeliveryUnavailableException for service response error code
  95. // "CloudWatchLogsDeliveryUnavailableException".
  96. //
  97. // Cannot set a CloudWatch Logs delivery for this region.
  98. ErrCodeCloudWatchLogsDeliveryUnavailableException = "CloudWatchLogsDeliveryUnavailableException"
  99. // ErrCodeConflictException for service response error code
  100. // "ConflictException".
  101. //
  102. // This exception is thrown when the specified resource is not ready for an
  103. // operation. This can occur when you try to run an operation on a resource
  104. // before CloudTrail has time to fully load the resource, or because another
  105. // operation is modifying the resource. If this exception occurs, wait a few
  106. // minutes, and then try the operation again.
  107. ErrCodeConflictException = "ConflictException"
  108. // ErrCodeDelegatedAdminAccountLimitExceededException for service response error code
  109. // "DelegatedAdminAccountLimitExceededException".
  110. //
  111. // This exception is thrown when the maximum number of CloudTrail delegated
  112. // administrators is reached.
  113. ErrCodeDelegatedAdminAccountLimitExceededException = "DelegatedAdminAccountLimitExceededException"
  114. // ErrCodeEventDataStoreARNInvalidException for service response error code
  115. // "EventDataStoreARNInvalidException".
  116. //
  117. // The specified event data store ARN is not valid or does not map to an event
  118. // data store in your account.
  119. ErrCodeEventDataStoreARNInvalidException = "EventDataStoreARNInvalidException"
  120. // ErrCodeEventDataStoreAlreadyExistsException for service response error code
  121. // "EventDataStoreAlreadyExistsException".
  122. //
  123. // An event data store with that name already exists.
  124. ErrCodeEventDataStoreAlreadyExistsException = "EventDataStoreAlreadyExistsException"
  125. // ErrCodeEventDataStoreHasOngoingImportException for service response error code
  126. // "EventDataStoreHasOngoingImportException".
  127. //
  128. // This exception is thrown when you try to update or delete an event data store
  129. // that currently has an import in progress.
  130. ErrCodeEventDataStoreHasOngoingImportException = "EventDataStoreHasOngoingImportException"
  131. // ErrCodeEventDataStoreMaxLimitExceededException for service response error code
  132. // "EventDataStoreMaxLimitExceededException".
  133. //
  134. // Your account has used the maximum number of event data stores.
  135. ErrCodeEventDataStoreMaxLimitExceededException = "EventDataStoreMaxLimitExceededException"
  136. // ErrCodeEventDataStoreNotFoundException for service response error code
  137. // "EventDataStoreNotFoundException".
  138. //
  139. // The specified event data store was not found.
  140. ErrCodeEventDataStoreNotFoundException = "EventDataStoreNotFoundException"
  141. // ErrCodeEventDataStoreTerminationProtectedException for service response error code
  142. // "EventDataStoreTerminationProtectedException".
  143. //
  144. // The event data store cannot be deleted because termination protection is
  145. // enabled for it.
  146. ErrCodeEventDataStoreTerminationProtectedException = "EventDataStoreTerminationProtectedException"
  147. // ErrCodeImportNotFoundException for service response error code
  148. // "ImportNotFoundException".
  149. //
  150. // The specified import was not found.
  151. ErrCodeImportNotFoundException = "ImportNotFoundException"
  152. // ErrCodeInactiveEventDataStoreException for service response error code
  153. // "InactiveEventDataStoreException".
  154. //
  155. // The event data store is inactive.
  156. ErrCodeInactiveEventDataStoreException = "InactiveEventDataStoreException"
  157. // ErrCodeInactiveQueryException for service response error code
  158. // "InactiveQueryException".
  159. //
  160. // The specified query cannot be canceled because it is in the FINISHED, FAILED,
  161. // TIMED_OUT, or CANCELLED state.
  162. ErrCodeInactiveQueryException = "InactiveQueryException"
  163. // ErrCodeInsightNotEnabledException for service response error code
  164. // "InsightNotEnabledException".
  165. //
  166. // If you run GetInsightSelectors on a trail that does not have Insights events
  167. // enabled, the operation throws the exception InsightNotEnabledException.
  168. ErrCodeInsightNotEnabledException = "InsightNotEnabledException"
  169. // ErrCodeInsufficientDependencyServiceAccessPermissionException for service response error code
  170. // "InsufficientDependencyServiceAccessPermissionException".
  171. //
  172. // This exception is thrown when the IAM user or role that is used to create
  173. // the organization resource lacks one or more required permissions for creating
  174. // an organization resource in a required service.
  175. ErrCodeInsufficientDependencyServiceAccessPermissionException = "InsufficientDependencyServiceAccessPermissionException"
  176. // ErrCodeInsufficientEncryptionPolicyException for service response error code
  177. // "InsufficientEncryptionPolicyException".
  178. //
  179. // This exception is thrown when the policy on the S3 bucket or KMS key does
  180. // not have sufficient permissions for the operation.
  181. ErrCodeInsufficientEncryptionPolicyException = "InsufficientEncryptionPolicyException"
  182. // ErrCodeInsufficientS3BucketPolicyException for service response error code
  183. // "InsufficientS3BucketPolicyException".
  184. //
  185. // This exception is thrown when the policy on the S3 bucket is not sufficient.
  186. ErrCodeInsufficientS3BucketPolicyException = "InsufficientS3BucketPolicyException"
  187. // ErrCodeInsufficientSnsTopicPolicyException for service response error code
  188. // "InsufficientSnsTopicPolicyException".
  189. //
  190. // This exception is thrown when the policy on the Amazon SNS topic is not sufficient.
  191. ErrCodeInsufficientSnsTopicPolicyException = "InsufficientSnsTopicPolicyException"
  192. // ErrCodeInvalidCloudWatchLogsLogGroupArnException for service response error code
  193. // "InvalidCloudWatchLogsLogGroupArnException".
  194. //
  195. // This exception is thrown when the provided CloudWatch Logs log group is not
  196. // valid.
  197. ErrCodeInvalidCloudWatchLogsLogGroupArnException = "InvalidCloudWatchLogsLogGroupArnException"
  198. // ErrCodeInvalidCloudWatchLogsRoleArnException for service response error code
  199. // "InvalidCloudWatchLogsRoleArnException".
  200. //
  201. // This exception is thrown when the provided role is not valid.
  202. ErrCodeInvalidCloudWatchLogsRoleArnException = "InvalidCloudWatchLogsRoleArnException"
  203. // ErrCodeInvalidDateRangeException for service response error code
  204. // "InvalidDateRangeException".
  205. //
  206. // A date range for the query was specified that is not valid. Be sure that
  207. // the start time is chronologically before the end time. For more information
  208. // about writing a query, see Create or edit a query (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html)
  209. // in the CloudTrail User Guide.
  210. ErrCodeInvalidDateRangeException = "InvalidDateRangeException"
  211. // ErrCodeInvalidEventCategoryException for service response error code
  212. // "InvalidEventCategoryException".
  213. //
  214. // Occurs if an event category that is not valid is specified as a value of
  215. // EventCategory.
  216. ErrCodeInvalidEventCategoryException = "InvalidEventCategoryException"
  217. // ErrCodeInvalidEventDataStoreCategoryException for service response error code
  218. // "InvalidEventDataStoreCategoryException".
  219. //
  220. // This exception is thrown when event categories of specified event data stores
  221. // are not valid.
  222. ErrCodeInvalidEventDataStoreCategoryException = "InvalidEventDataStoreCategoryException"
  223. // ErrCodeInvalidEventDataStoreStatusException for service response error code
  224. // "InvalidEventDataStoreStatusException".
  225. //
  226. // The event data store is not in a status that supports the operation.
  227. ErrCodeInvalidEventDataStoreStatusException = "InvalidEventDataStoreStatusException"
  228. // ErrCodeInvalidEventSelectorsException for service response error code
  229. // "InvalidEventSelectorsException".
  230. //
  231. // This exception is thrown when the PutEventSelectors operation is called with
  232. // a number of event selectors, advanced event selectors, or data resources
  233. // that is not valid. The combination of event selectors or advanced event selectors
  234. // and data resources is not valid. A trail can have up to 5 event selectors.
  235. // If a trail uses advanced event selectors, a maximum of 500 total values for
  236. // all conditions in all advanced event selectors is allowed. A trail is limited
  237. // to 250 data resources. These data resources can be distributed across event
  238. // selectors, but the overall total cannot exceed 250.
  239. //
  240. // You can:
  241. //
  242. // * Specify a valid number of event selectors (1 to 5) for a trail.
  243. //
  244. // * Specify a valid number of data resources (1 to 250) for an event selector.
  245. // The limit of number of resources on an individual event selector is configurable
  246. // up to 250. However, this upper limit is allowed only if the total number
  247. // of data resources does not exceed 250 across all event selectors for a
  248. // trail.
  249. //
  250. // * Specify up to 500 values for all conditions in all advanced event selectors
  251. // for a trail.
  252. //
  253. // * Specify a valid value for a parameter. For example, specifying the ReadWriteType
  254. // parameter with a value of read-only is not valid.
  255. ErrCodeInvalidEventSelectorsException = "InvalidEventSelectorsException"
  256. // ErrCodeInvalidHomeRegionException for service response error code
  257. // "InvalidHomeRegionException".
  258. //
  259. // This exception is thrown when an operation is called on a trail from a region
  260. // other than the region in which the trail was created.
  261. ErrCodeInvalidHomeRegionException = "InvalidHomeRegionException"
  262. // ErrCodeInvalidImportSourceException for service response error code
  263. // "InvalidImportSourceException".
  264. //
  265. // This exception is thrown when the provided source S3 bucket is not valid
  266. // for import.
  267. ErrCodeInvalidImportSourceException = "InvalidImportSourceException"
  268. // ErrCodeInvalidInsightSelectorsException for service response error code
  269. // "InvalidInsightSelectorsException".
  270. //
  271. // The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors
  272. // or GetInsightSelectors request is not valid, or the specified insight type
  273. // in the InsightSelectors statement is not a valid insight type.
  274. ErrCodeInvalidInsightSelectorsException = "InvalidInsightSelectorsException"
  275. // ErrCodeInvalidKmsKeyIdException for service response error code
  276. // "InvalidKmsKeyIdException".
  277. //
  278. // This exception is thrown when the KMS key ARN is not valid.
  279. ErrCodeInvalidKmsKeyIdException = "InvalidKmsKeyIdException"
  280. // ErrCodeInvalidLookupAttributesException for service response error code
  281. // "InvalidLookupAttributesException".
  282. //
  283. // Occurs when a lookup attribute is specified that is not valid.
  284. ErrCodeInvalidLookupAttributesException = "InvalidLookupAttributesException"
  285. // ErrCodeInvalidMaxResultsException for service response error code
  286. // "InvalidMaxResultsException".
  287. //
  288. // This exception is thrown if the limit specified is not valid.
  289. ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException"
  290. // ErrCodeInvalidNextTokenException for service response error code
  291. // "InvalidNextTokenException".
  292. //
  293. // A token that is not valid, or a token that was previously used in a request
  294. // with different parameters. This exception is thrown if the token is not valid.
  295. ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
  296. // ErrCodeInvalidParameterCombinationException for service response error code
  297. // "InvalidParameterCombinationException".
  298. //
  299. // This exception is thrown when the combination of parameters provided is not
  300. // valid.
  301. ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException"
  302. // ErrCodeInvalidParameterException for service response error code
  303. // "InvalidParameterException".
  304. //
  305. // The request includes a parameter that is not valid.
  306. ErrCodeInvalidParameterException = "InvalidParameterException"
  307. // ErrCodeInvalidQueryStatementException for service response error code
  308. // "InvalidQueryStatementException".
  309. //
  310. // The query that was submitted has validation errors, or uses incorrect syntax
  311. // or unsupported keywords. For more information about writing a query, see
  312. // Create or edit a query (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html)
  313. // in the CloudTrail User Guide.
  314. ErrCodeInvalidQueryStatementException = "InvalidQueryStatementException"
  315. // ErrCodeInvalidQueryStatusException for service response error code
  316. // "InvalidQueryStatusException".
  317. //
  318. // The query status is not valid for the operation.
  319. ErrCodeInvalidQueryStatusException = "InvalidQueryStatusException"
  320. // ErrCodeInvalidS3BucketNameException for service response error code
  321. // "InvalidS3BucketNameException".
  322. //
  323. // This exception is thrown when the provided S3 bucket name is not valid.
  324. ErrCodeInvalidS3BucketNameException = "InvalidS3BucketNameException"
  325. // ErrCodeInvalidS3PrefixException for service response error code
  326. // "InvalidS3PrefixException".
  327. //
  328. // This exception is thrown when the provided S3 prefix is not valid.
  329. ErrCodeInvalidS3PrefixException = "InvalidS3PrefixException"
  330. // ErrCodeInvalidSnsTopicNameException for service response error code
  331. // "InvalidSnsTopicNameException".
  332. //
  333. // This exception is thrown when the provided SNS topic name is not valid.
  334. ErrCodeInvalidSnsTopicNameException = "InvalidSnsTopicNameException"
  335. // ErrCodeInvalidSourceException for service response error code
  336. // "InvalidSourceException".
  337. //
  338. // This exception is thrown when the specified value of Source is not valid.
  339. ErrCodeInvalidSourceException = "InvalidSourceException"
  340. // ErrCodeInvalidTagParameterException for service response error code
  341. // "InvalidTagParameterException".
  342. //
  343. // This exception is thrown when the specified tag key or values are not valid.
  344. // It can also occur if there are duplicate tags or too many tags on the resource.
  345. ErrCodeInvalidTagParameterException = "InvalidTagParameterException"
  346. // ErrCodeInvalidTimeRangeException for service response error code
  347. // "InvalidTimeRangeException".
  348. //
  349. // Occurs if the timestamp values are not valid. Either the start time occurs
  350. // after the end time, or the time range is outside the range of possible values.
  351. ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException"
  352. // ErrCodeInvalidTokenException for service response error code
  353. // "InvalidTokenException".
  354. //
  355. // Reserved for future use.
  356. ErrCodeInvalidTokenException = "InvalidTokenException"
  357. // ErrCodeInvalidTrailNameException for service response error code
  358. // "InvalidTrailNameException".
  359. //
  360. // This exception is thrown when the provided trail name is not valid. Trail
  361. // names must meet the following requirements:
  362. //
  363. // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  364. // (_), or dashes (-)
  365. //
  366. // * Start with a letter or number, and end with a letter or number
  367. //
  368. // * Be between 3 and 128 characters
  369. //
  370. // * Have no adjacent periods, underscores or dashes. Names like my-_namespace
  371. // and my--namespace are not valid.
  372. //
  373. // * Not be in IP address format (for example, 192.168.5.4)
  374. ErrCodeInvalidTrailNameException = "InvalidTrailNameException"
  375. // ErrCodeKmsException for service response error code
  376. // "KmsException".
  377. //
  378. // This exception is thrown when there is an issue with the specified KMS key
  379. // and the trail or event data store can't be updated.
  380. ErrCodeKmsException = "KmsException"
  381. // ErrCodeKmsKeyDisabledException for service response error code
  382. // "KmsKeyDisabledException".
  383. //
  384. // This exception is no longer in use.
  385. ErrCodeKmsKeyDisabledException = "KmsKeyDisabledException"
  386. // ErrCodeKmsKeyNotFoundException for service response error code
  387. // "KmsKeyNotFoundException".
  388. //
  389. // This exception is thrown when the KMS key does not exist, when the S3 bucket
  390. // and the KMS key are not in the same region, or when the KMS key associated
  391. // with the Amazon SNS topic either does not exist or is not in the same region.
  392. ErrCodeKmsKeyNotFoundException = "KmsKeyNotFoundException"
  393. // ErrCodeMaxConcurrentQueriesException for service response error code
  394. // "MaxConcurrentQueriesException".
  395. //
  396. // You are already running the maximum number of concurrent queries. Wait a
  397. // minute for some queries to finish, and then run the query again.
  398. ErrCodeMaxConcurrentQueriesException = "MaxConcurrentQueriesException"
  399. // ErrCodeMaximumNumberOfTrailsExceededException for service response error code
  400. // "MaximumNumberOfTrailsExceededException".
  401. //
  402. // This exception is thrown when the maximum number of trails is reached.
  403. ErrCodeMaximumNumberOfTrailsExceededException = "MaximumNumberOfTrailsExceededException"
  404. // ErrCodeNoManagementAccountSLRExistsException for service response error code
  405. // "NoManagementAccountSLRExistsException".
  406. //
  407. // This exception is thrown when the management account does not have a service-linked
  408. // role.
  409. ErrCodeNoManagementAccountSLRExistsException = "NoManagementAccountSLRExistsException"
  410. // ErrCodeNotOrganizationManagementAccountException for service response error code
  411. // "NotOrganizationManagementAccountException".
  412. //
  413. // This exception is thrown when the account making the request is not the organization's
  414. // management account.
  415. ErrCodeNotOrganizationManagementAccountException = "NotOrganizationManagementAccountException"
  416. // ErrCodeNotOrganizationMasterAccountException for service response error code
  417. // "NotOrganizationMasterAccountException".
  418. //
  419. // This exception is thrown when the Amazon Web Services account making the
  420. // request to create or update an organization trail or event data store is
  421. // not the management account for an organization in Organizations. For more
  422. // information, see Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html)
  423. // or Create an event data store (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html).
  424. ErrCodeNotOrganizationMasterAccountException = "NotOrganizationMasterAccountException"
  425. // ErrCodeOperationNotPermittedException for service response error code
  426. // "OperationNotPermittedException".
  427. //
  428. // This exception is thrown when the requested operation is not permitted.
  429. ErrCodeOperationNotPermittedException = "OperationNotPermittedException"
  430. // ErrCodeOrganizationNotInAllFeaturesModeException for service response error code
  431. // "OrganizationNotInAllFeaturesModeException".
  432. //
  433. // This exception is thrown when Organizations is not configured to support
  434. // all features. All features must be enabled in Organizations to support creating
  435. // an organization trail or event data store.
  436. ErrCodeOrganizationNotInAllFeaturesModeException = "OrganizationNotInAllFeaturesModeException"
  437. // ErrCodeOrganizationsNotInUseException for service response error code
  438. // "OrganizationsNotInUseException".
  439. //
  440. // This exception is thrown when the request is made from an Amazon Web Services
  441. // account that is not a member of an organization. To make this request, sign
  442. // in using the credentials of an account that belongs to an organization.
  443. ErrCodeOrganizationsNotInUseException = "OrganizationsNotInUseException"
  444. // ErrCodeQueryIdNotFoundException for service response error code
  445. // "QueryIdNotFoundException".
  446. //
  447. // The query ID does not exist or does not map to a query.
  448. ErrCodeQueryIdNotFoundException = "QueryIdNotFoundException"
  449. // ErrCodeResourceARNNotValidException for service response error code
  450. // "ResourceARNNotValidException".
  451. //
  452. // This exception is thrown when the provided resource does not exist, or the
  453. // ARN format of the resource is not valid. The following is the valid format
  454. // for a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.
  455. ErrCodeResourceARNNotValidException = "ResourceARNNotValidException"
  456. // ErrCodeResourceNotFoundException for service response error code
  457. // "ResourceNotFoundException".
  458. //
  459. // This exception is thrown when the specified resource is not found.
  460. ErrCodeResourceNotFoundException = "ResourceNotFoundException"
  461. // ErrCodeResourcePolicyNotFoundException for service response error code
  462. // "ResourcePolicyNotFoundException".
  463. //
  464. // This exception is thrown when the specified resource policy is not found.
  465. ErrCodeResourcePolicyNotFoundException = "ResourcePolicyNotFoundException"
  466. // ErrCodeResourcePolicyNotValidException for service response error code
  467. // "ResourcePolicyNotValidException".
  468. //
  469. // This exception is thrown when the resouce-based policy has syntax errors,
  470. // or contains a principal that is not valid.
  471. //
  472. // The following are requirements for the resource policy:
  473. //
  474. // * Contains only one action: cloudtrail-data:PutAuditEvents
  475. //
  476. // * Contains at least one statement. The policy can have a maximum of 20
  477. // statements.
  478. //
  479. // * Each statement contains at least one principal. A statement can have
  480. // a maximum of 50 principals.
  481. ErrCodeResourcePolicyNotValidException = "ResourcePolicyNotValidException"
  482. // ErrCodeResourceTypeNotSupportedException for service response error code
  483. // "ResourceTypeNotSupportedException".
  484. //
  485. // This exception is thrown when the specified resource type is not supported
  486. // by CloudTrail.
  487. ErrCodeResourceTypeNotSupportedException = "ResourceTypeNotSupportedException"
  488. // ErrCodeS3BucketDoesNotExistException for service response error code
  489. // "S3BucketDoesNotExistException".
  490. //
  491. // This exception is thrown when the specified S3 bucket does not exist.
  492. ErrCodeS3BucketDoesNotExistException = "S3BucketDoesNotExistException"
  493. // ErrCodeTagsLimitExceededException for service response error code
  494. // "TagsLimitExceededException".
  495. //
  496. // The number of tags per trail, event data store, or channel has exceeded the
  497. // permitted amount. Currently, the limit is 50.
  498. ErrCodeTagsLimitExceededException = "TagsLimitExceededException"
  499. // ErrCodeTrailAlreadyExistsException for service response error code
  500. // "TrailAlreadyExistsException".
  501. //
  502. // This exception is thrown when the specified trail already exists.
  503. ErrCodeTrailAlreadyExistsException = "TrailAlreadyExistsException"
  504. // ErrCodeTrailNotFoundException for service response error code
  505. // "TrailNotFoundException".
  506. //
  507. // This exception is thrown when the trail with the given name is not found.
  508. ErrCodeTrailNotFoundException = "TrailNotFoundException"
  509. // ErrCodeTrailNotProvidedException for service response error code
  510. // "TrailNotProvidedException".
  511. //
  512. // This exception is no longer in use.
  513. ErrCodeTrailNotProvidedException = "TrailNotProvidedException"
  514. // ErrCodeUnsupportedOperationException for service response error code
  515. // "UnsupportedOperationException".
  516. //
  517. // This exception is thrown when the requested operation is not supported.
  518. ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
  519. )
  520. var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
  521. "CloudTrailARNInvalidException": newErrorARNInvalidException,
  522. "CloudTrailAccessNotEnabledException": newErrorAccessNotEnabledException,
  523. "AccountHasOngoingImportException": newErrorAccountHasOngoingImportException,
  524. "AccountNotFoundException": newErrorAccountNotFoundException,
  525. "AccountNotRegisteredException": newErrorAccountNotRegisteredException,
  526. "AccountRegisteredException": newErrorAccountRegisteredException,
  527. "CannotDelegateManagementAccountException": newErrorCannotDelegateManagementAccountException,
  528. "ChannelARNInvalidException": newErrorChannelARNInvalidException,
  529. "ChannelAlreadyExistsException": newErrorChannelAlreadyExistsException,
  530. "ChannelExistsForEDSException": newErrorChannelExistsForEDSException,
  531. "ChannelMaxLimitExceededException": newErrorChannelMaxLimitExceededException,
  532. "ChannelNotFoundException": newErrorChannelNotFoundException,
  533. "CloudTrailInvalidClientTokenIdException": newErrorCloudTrailInvalidClientTokenIdException,
  534. "CloudWatchLogsDeliveryUnavailableException": newErrorCloudWatchLogsDeliveryUnavailableException,
  535. "ConflictException": newErrorConflictException,
  536. "DelegatedAdminAccountLimitExceededException": newErrorDelegatedAdminAccountLimitExceededException,
  537. "EventDataStoreARNInvalidException": newErrorEventDataStoreARNInvalidException,
  538. "EventDataStoreAlreadyExistsException": newErrorEventDataStoreAlreadyExistsException,
  539. "EventDataStoreHasOngoingImportException": newErrorEventDataStoreHasOngoingImportException,
  540. "EventDataStoreMaxLimitExceededException": newErrorEventDataStoreMaxLimitExceededException,
  541. "EventDataStoreNotFoundException": newErrorEventDataStoreNotFoundException,
  542. "EventDataStoreTerminationProtectedException": newErrorEventDataStoreTerminationProtectedException,
  543. "ImportNotFoundException": newErrorImportNotFoundException,
  544. "InactiveEventDataStoreException": newErrorInactiveEventDataStoreException,
  545. "InactiveQueryException": newErrorInactiveQueryException,
  546. "InsightNotEnabledException": newErrorInsightNotEnabledException,
  547. "InsufficientDependencyServiceAccessPermissionException": newErrorInsufficientDependencyServiceAccessPermissionException,
  548. "InsufficientEncryptionPolicyException": newErrorInsufficientEncryptionPolicyException,
  549. "InsufficientS3BucketPolicyException": newErrorInsufficientS3BucketPolicyException,
  550. "InsufficientSnsTopicPolicyException": newErrorInsufficientSnsTopicPolicyException,
  551. "InvalidCloudWatchLogsLogGroupArnException": newErrorInvalidCloudWatchLogsLogGroupArnException,
  552. "InvalidCloudWatchLogsRoleArnException": newErrorInvalidCloudWatchLogsRoleArnException,
  553. "InvalidDateRangeException": newErrorInvalidDateRangeException,
  554. "InvalidEventCategoryException": newErrorInvalidEventCategoryException,
  555. "InvalidEventDataStoreCategoryException": newErrorInvalidEventDataStoreCategoryException,
  556. "InvalidEventDataStoreStatusException": newErrorInvalidEventDataStoreStatusException,
  557. "InvalidEventSelectorsException": newErrorInvalidEventSelectorsException,
  558. "InvalidHomeRegionException": newErrorInvalidHomeRegionException,
  559. "InvalidImportSourceException": newErrorInvalidImportSourceException,
  560. "InvalidInsightSelectorsException": newErrorInvalidInsightSelectorsException,
  561. "InvalidKmsKeyIdException": newErrorInvalidKmsKeyIdException,
  562. "InvalidLookupAttributesException": newErrorInvalidLookupAttributesException,
  563. "InvalidMaxResultsException": newErrorInvalidMaxResultsException,
  564. "InvalidNextTokenException": newErrorInvalidNextTokenException,
  565. "InvalidParameterCombinationException": newErrorInvalidParameterCombinationException,
  566. "InvalidParameterException": newErrorInvalidParameterException,
  567. "InvalidQueryStatementException": newErrorInvalidQueryStatementException,
  568. "InvalidQueryStatusException": newErrorInvalidQueryStatusException,
  569. "InvalidS3BucketNameException": newErrorInvalidS3BucketNameException,
  570. "InvalidS3PrefixException": newErrorInvalidS3PrefixException,
  571. "InvalidSnsTopicNameException": newErrorInvalidSnsTopicNameException,
  572. "InvalidSourceException": newErrorInvalidSourceException,
  573. "InvalidTagParameterException": newErrorInvalidTagParameterException,
  574. "InvalidTimeRangeException": newErrorInvalidTimeRangeException,
  575. "InvalidTokenException": newErrorInvalidTokenException,
  576. "InvalidTrailNameException": newErrorInvalidTrailNameException,
  577. "KmsException": newErrorKmsException,
  578. "KmsKeyDisabledException": newErrorKmsKeyDisabledException,
  579. "KmsKeyNotFoundException": newErrorKmsKeyNotFoundException,
  580. "MaxConcurrentQueriesException": newErrorMaxConcurrentQueriesException,
  581. "MaximumNumberOfTrailsExceededException": newErrorMaximumNumberOfTrailsExceededException,
  582. "NoManagementAccountSLRExistsException": newErrorNoManagementAccountSLRExistsException,
  583. "NotOrganizationManagementAccountException": newErrorNotOrganizationManagementAccountException,
  584. "NotOrganizationMasterAccountException": newErrorNotOrganizationMasterAccountException,
  585. "OperationNotPermittedException": newErrorOperationNotPermittedException,
  586. "OrganizationNotInAllFeaturesModeException": newErrorOrganizationNotInAllFeaturesModeException,
  587. "OrganizationsNotInUseException": newErrorOrganizationsNotInUseException,
  588. "QueryIdNotFoundException": newErrorQueryIdNotFoundException,
  589. "ResourceARNNotValidException": newErrorResourceARNNotValidException,
  590. "ResourceNotFoundException": newErrorResourceNotFoundException,
  591. "ResourcePolicyNotFoundException": newErrorResourcePolicyNotFoundException,
  592. "ResourcePolicyNotValidException": newErrorResourcePolicyNotValidException,
  593. "ResourceTypeNotSupportedException": newErrorResourceTypeNotSupportedException,
  594. "S3BucketDoesNotExistException": newErrorS3BucketDoesNotExistException,
  595. "TagsLimitExceededException": newErrorTagsLimitExceededException,
  596. "TrailAlreadyExistsException": newErrorTrailAlreadyExistsException,
  597. "TrailNotFoundException": newErrorTrailNotFoundException,
  598. "TrailNotProvidedException": newErrorTrailNotProvidedException,
  599. "UnsupportedOperationException": newErrorUnsupportedOperationException,
  600. }