errors.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package cloudtrail
  3. const (
  4. // ErrCodeARNInvalidException for service response error code
  5. // "CloudTrailARNInvalidException".
  6. //
  7. // This exception is thrown when an operation is called with an invalid trail
  8. // ARN. The format of a trail ARN is:
  9. //
  10. // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
  11. ErrCodeARNInvalidException = "CloudTrailARNInvalidException"
  12. // ErrCodeAccessNotEnabledException for service response error code
  13. // "CloudTrailAccessNotEnabledException".
  14. //
  15. // This exception is thrown when trusted access has not been enabled between
  16. // AWS CloudTrail and AWS Organizations. For more information, see Enabling
  17. // Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)
  18. // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
  19. ErrCodeAccessNotEnabledException = "CloudTrailAccessNotEnabledException"
  20. // ErrCodeCloudWatchLogsDeliveryUnavailableException for service response error code
  21. // "CloudWatchLogsDeliveryUnavailableException".
  22. //
  23. // Cannot set a CloudWatch Logs delivery for this region.
  24. ErrCodeCloudWatchLogsDeliveryUnavailableException = "CloudWatchLogsDeliveryUnavailableException"
  25. // ErrCodeInsufficientDependencyServiceAccessPermissionException for service response error code
  26. // "InsufficientDependencyServiceAccessPermissionException".
  27. //
  28. // This exception is thrown when the IAM user or role that is used to create
  29. // the organization trail is lacking one or more required permissions for creating
  30. // an organization trail in a required service. For more information, see Prepare
  31. // For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
  32. ErrCodeInsufficientDependencyServiceAccessPermissionException = "InsufficientDependencyServiceAccessPermissionException"
  33. // ErrCodeInsufficientEncryptionPolicyException for service response error code
  34. // "InsufficientEncryptionPolicyException".
  35. //
  36. // This exception is thrown when the policy on the S3 bucket or KMS key is not
  37. // sufficient.
  38. ErrCodeInsufficientEncryptionPolicyException = "InsufficientEncryptionPolicyException"
  39. // ErrCodeInsufficientS3BucketPolicyException for service response error code
  40. // "InsufficientS3BucketPolicyException".
  41. //
  42. // This exception is thrown when the policy on the S3 bucket is not sufficient.
  43. ErrCodeInsufficientS3BucketPolicyException = "InsufficientS3BucketPolicyException"
  44. // ErrCodeInsufficientSnsTopicPolicyException for service response error code
  45. // "InsufficientSnsTopicPolicyException".
  46. //
  47. // This exception is thrown when the policy on the SNS topic is not sufficient.
  48. ErrCodeInsufficientSnsTopicPolicyException = "InsufficientSnsTopicPolicyException"
  49. // ErrCodeInvalidCloudWatchLogsLogGroupArnException for service response error code
  50. // "InvalidCloudWatchLogsLogGroupArnException".
  51. //
  52. // This exception is thrown when the provided CloudWatch log group is not valid.
  53. ErrCodeInvalidCloudWatchLogsLogGroupArnException = "InvalidCloudWatchLogsLogGroupArnException"
  54. // ErrCodeInvalidCloudWatchLogsRoleArnException for service response error code
  55. // "InvalidCloudWatchLogsRoleArnException".
  56. //
  57. // This exception is thrown when the provided role is not valid.
  58. ErrCodeInvalidCloudWatchLogsRoleArnException = "InvalidCloudWatchLogsRoleArnException"
  59. // ErrCodeInvalidEventSelectorsException for service response error code
  60. // "InvalidEventSelectorsException".
  61. //
  62. // This exception is thrown when the PutEventSelectors operation is called with
  63. // a number of event selectors or data resources that is not valid. The combination
  64. // of event selectors and data resources is not valid. A trail can have up to
  65. // 5 event selectors. A trail is limited to 250 data resources. These data resources
  66. // can be distributed across event selectors, but the overall total cannot exceed
  67. // 250.
  68. //
  69. // You can:
  70. //
  71. // * Specify a valid number of event selectors (1 to 5) for a trail.
  72. //
  73. // * Specify a valid number of data resources (1 to 250) for an event selector.
  74. // The limit of number of resources on an individual event selector is configurable
  75. // up to 250. However, this upper limit is allowed only if the total number
  76. // of data resources does not exceed 250 across all event selectors for a
  77. // trail.
  78. //
  79. // * Specify a valid value for a parameter. For example, specifying the ReadWriteType
  80. // parameter with a value of read-only is invalid.
  81. ErrCodeInvalidEventSelectorsException = "InvalidEventSelectorsException"
  82. // ErrCodeInvalidHomeRegionException for service response error code
  83. // "InvalidHomeRegionException".
  84. //
  85. // This exception is thrown when an operation is called on a trail from a region
  86. // other than the region in which the trail was created.
  87. ErrCodeInvalidHomeRegionException = "InvalidHomeRegionException"
  88. // ErrCodeInvalidKmsKeyIdException for service response error code
  89. // "InvalidKmsKeyIdException".
  90. //
  91. // This exception is thrown when the KMS key ARN is invalid.
  92. ErrCodeInvalidKmsKeyIdException = "InvalidKmsKeyIdException"
  93. // ErrCodeInvalidLookupAttributesException for service response error code
  94. // "InvalidLookupAttributesException".
  95. //
  96. // Occurs when an invalid lookup attribute is specified.
  97. ErrCodeInvalidLookupAttributesException = "InvalidLookupAttributesException"
  98. // ErrCodeInvalidMaxResultsException for service response error code
  99. // "InvalidMaxResultsException".
  100. //
  101. // This exception is thrown if the limit specified is invalid.
  102. ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException"
  103. // ErrCodeInvalidNextTokenException for service response error code
  104. // "InvalidNextTokenException".
  105. //
  106. // Invalid token or token that was previously used in a request with different
  107. // parameters. This exception is thrown if the token is invalid.
  108. ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
  109. // ErrCodeInvalidParameterCombinationException for service response error code
  110. // "InvalidParameterCombinationException".
  111. //
  112. // This exception is thrown when the combination of parameters provided is not
  113. // valid.
  114. ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException"
  115. // ErrCodeInvalidS3BucketNameException for service response error code
  116. // "InvalidS3BucketNameException".
  117. //
  118. // This exception is thrown when the provided S3 bucket name is not valid.
  119. ErrCodeInvalidS3BucketNameException = "InvalidS3BucketNameException"
  120. // ErrCodeInvalidS3PrefixException for service response error code
  121. // "InvalidS3PrefixException".
  122. //
  123. // This exception is thrown when the provided S3 prefix is not valid.
  124. ErrCodeInvalidS3PrefixException = "InvalidS3PrefixException"
  125. // ErrCodeInvalidSnsTopicNameException for service response error code
  126. // "InvalidSnsTopicNameException".
  127. //
  128. // This exception is thrown when the provided SNS topic name is not valid.
  129. ErrCodeInvalidSnsTopicNameException = "InvalidSnsTopicNameException"
  130. // ErrCodeInvalidTagParameterException for service response error code
  131. // "InvalidTagParameterException".
  132. //
  133. // This exception is thrown when the key or value specified for the tag does
  134. // not match the regular expression ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$.
  135. ErrCodeInvalidTagParameterException = "InvalidTagParameterException"
  136. // ErrCodeInvalidTimeRangeException for service response error code
  137. // "InvalidTimeRangeException".
  138. //
  139. // Occurs if the timestamp values are invalid. Either the start time occurs
  140. // after the end time or the time range is outside the range of possible values.
  141. ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException"
  142. // ErrCodeInvalidTokenException for service response error code
  143. // "InvalidTokenException".
  144. //
  145. // Reserved for future use.
  146. ErrCodeInvalidTokenException = "InvalidTokenException"
  147. // ErrCodeInvalidTrailNameException for service response error code
  148. // "InvalidTrailNameException".
  149. //
  150. // This exception is thrown when the provided trail name is not valid. Trail
  151. // names must meet the following requirements:
  152. //
  153. // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  154. // (_), or dashes (-)
  155. //
  156. // * Start with a letter or number, and end with a letter or number
  157. //
  158. // * Be between 3 and 128 characters
  159. //
  160. // * Have no adjacent periods, underscores or dashes. Names like my-_namespace
  161. // and my--namespace are invalid.
  162. //
  163. // * Not be in IP address format (for example, 192.168.5.4)
  164. ErrCodeInvalidTrailNameException = "InvalidTrailNameException"
  165. // ErrCodeKmsException for service response error code
  166. // "KmsException".
  167. //
  168. // This exception is thrown when there is an issue with the specified KMS key
  169. // and the trail can’t be updated.
  170. ErrCodeKmsException = "KmsException"
  171. // ErrCodeKmsKeyDisabledException for service response error code
  172. // "KmsKeyDisabledException".
  173. //
  174. // This exception is deprecated.
  175. ErrCodeKmsKeyDisabledException = "KmsKeyDisabledException"
  176. // ErrCodeKmsKeyNotFoundException for service response error code
  177. // "KmsKeyNotFoundException".
  178. //
  179. // This exception is thrown when the KMS key does not exist, or when the S3
  180. // bucket and the KMS key are not in the same region.
  181. ErrCodeKmsKeyNotFoundException = "KmsKeyNotFoundException"
  182. // ErrCodeMaximumNumberOfTrailsExceededException for service response error code
  183. // "MaximumNumberOfTrailsExceededException".
  184. //
  185. // This exception is thrown when the maximum number of trails is reached.
  186. ErrCodeMaximumNumberOfTrailsExceededException = "MaximumNumberOfTrailsExceededException"
  187. // ErrCodeNotOrganizationMasterAccountException for service response error code
  188. // "NotOrganizationMasterAccountException".
  189. //
  190. // This exception is thrown when the AWS account making the request to create
  191. // or update an organization trail is not the master account for an organization
  192. // in AWS Organizations. For more information, see Prepare For Creating a Trail
  193. // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
  194. ErrCodeNotOrganizationMasterAccountException = "NotOrganizationMasterAccountException"
  195. // ErrCodeOperationNotPermittedException for service response error code
  196. // "OperationNotPermittedException".
  197. //
  198. // This exception is thrown when the requested operation is not permitted.
  199. ErrCodeOperationNotPermittedException = "OperationNotPermittedException"
  200. // ErrCodeOrganizationNotInAllFeaturesModeException for service response error code
  201. // "OrganizationNotInAllFeaturesModeException".
  202. //
  203. // This exception is thrown when AWS Organizations is not configured to support
  204. // all features. All features must be enabled in AWS Organization to support
  205. // creating an organization trail. For more information, see Prepare For Creating
  206. // a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
  207. ErrCodeOrganizationNotInAllFeaturesModeException = "OrganizationNotInAllFeaturesModeException"
  208. // ErrCodeOrganizationsNotInUseException for service response error code
  209. // "OrganizationsNotInUseException".
  210. //
  211. // This exception is thrown when the request is made from an AWS account that
  212. // is not a member of an organization. To make this request, sign in using the
  213. // credentials of an account that belongs to an organization.
  214. ErrCodeOrganizationsNotInUseException = "OrganizationsNotInUseException"
  215. // ErrCodeResourceNotFoundException for service response error code
  216. // "ResourceNotFoundException".
  217. //
  218. // This exception is thrown when the specified resource is not found.
  219. ErrCodeResourceNotFoundException = "ResourceNotFoundException"
  220. // ErrCodeResourceTypeNotSupportedException for service response error code
  221. // "ResourceTypeNotSupportedException".
  222. //
  223. // This exception is thrown when the specified resource type is not supported
  224. // by CloudTrail.
  225. ErrCodeResourceTypeNotSupportedException = "ResourceTypeNotSupportedException"
  226. // ErrCodeS3BucketDoesNotExistException for service response error code
  227. // "S3BucketDoesNotExistException".
  228. //
  229. // This exception is thrown when the specified S3 bucket does not exist.
  230. ErrCodeS3BucketDoesNotExistException = "S3BucketDoesNotExistException"
  231. // ErrCodeTagsLimitExceededException for service response error code
  232. // "TagsLimitExceededException".
  233. //
  234. // The number of tags per trail has exceeded the permitted amount. Currently,
  235. // the limit is 50.
  236. ErrCodeTagsLimitExceededException = "TagsLimitExceededException"
  237. // ErrCodeTrailAlreadyExistsException for service response error code
  238. // "TrailAlreadyExistsException".
  239. //
  240. // This exception is thrown when the specified trail already exists.
  241. ErrCodeTrailAlreadyExistsException = "TrailAlreadyExistsException"
  242. // ErrCodeTrailNotFoundException for service response error code
  243. // "TrailNotFoundException".
  244. //
  245. // This exception is thrown when the trail with the given name is not found.
  246. ErrCodeTrailNotFoundException = "TrailNotFoundException"
  247. // ErrCodeTrailNotProvidedException for service response error code
  248. // "TrailNotProvidedException".
  249. //
  250. // This exception is deprecated.
  251. ErrCodeTrailNotProvidedException = "TrailNotProvidedException"
  252. // ErrCodeUnsupportedOperationException for service response error code
  253. // "UnsupportedOperationException".
  254. //
  255. // This exception is thrown when the requested operation is not supported.
  256. ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
  257. )