errors.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package kms
  3. const (
  4. // ErrCodeAlreadyExistsException for service response error code
  5. // "AlreadyExistsException".
  6. //
  7. // The request was rejected because it attempted to create a resource that already
  8. // exists.
  9. ErrCodeAlreadyExistsException = "AlreadyExistsException"
  10. // ErrCodeCloudHsmClusterInUseException for service response error code
  11. // "CloudHsmClusterInUseException".
  12. //
  13. // The request was rejected because the specified AWS CloudHSM cluster is already
  14. // associated with a custom key store or it shares a backup history with a cluster
  15. // that is associated with a custom key store. Each custom key store must be
  16. // associated with a different AWS CloudHSM cluster.
  17. //
  18. // Clusters that share a backup history have the same cluster certificate. To
  19. // view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html)
  20. // operation.
  21. ErrCodeCloudHsmClusterInUseException = "CloudHsmClusterInUseException"
  22. // ErrCodeCloudHsmClusterInvalidConfigurationException for service response error code
  23. // "CloudHsmClusterInvalidConfigurationException".
  24. //
  25. // The request was rejected because the associated AWS CloudHSM cluster did
  26. // not meet the configuration requirements for a custom key store. The cluster
  27. // must be configured with private subnets in at least two different Availability
  28. // Zones in the Region. Also, it must contain at least as many HSMs as the operation
  29. // requires.
  30. //
  31. // For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations,
  32. // the AWS CloudHSM cluster must have at least two active HSMs, each in a different
  33. // Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM
  34. // must contain at least one active HSM.
  35. //
  36. // For information about creating a private subnet for a AWS CloudHSM cluster,
  37. // see Create a Private Subnet (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html)
  38. // in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm
  39. // (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html)
  40. // operation.
  41. ErrCodeCloudHsmClusterInvalidConfigurationException = "CloudHsmClusterInvalidConfigurationException"
  42. // ErrCodeCloudHsmClusterNotActiveException for service response error code
  43. // "CloudHsmClusterNotActiveException".
  44. //
  45. // The request was rejected because the AWS CloudHSM cluster that is associated
  46. // with the custom key store is not active. Initialize and activate the cluster
  47. // and try the command again. For detailed instructions, see Getting Started
  48. // (http://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html)
  49. // in the AWS CloudHSM User Guide.
  50. ErrCodeCloudHsmClusterNotActiveException = "CloudHsmClusterNotActiveException"
  51. // ErrCodeCloudHsmClusterNotFoundException for service response error code
  52. // "CloudHsmClusterNotFoundException".
  53. //
  54. // The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster
  55. // with the specified cluster ID. Retry the request with a different cluster
  56. // ID.
  57. ErrCodeCloudHsmClusterNotFoundException = "CloudHsmClusterNotFoundException"
  58. // ErrCodeCloudHsmClusterNotRelatedException for service response error code
  59. // "CloudHsmClusterNotRelatedException".
  60. //
  61. // The request was rejected because the specified AWS CloudHSM cluster has a
  62. // different cluster certificate than the original cluster. You cannot use the
  63. // operation to specify an unrelated cluster.
  64. //
  65. // Specify a cluster that shares a backup history with the original cluster.
  66. // This includes clusters that were created from a backup of the current cluster,
  67. // and clusters that were created from the same backup that produced the current
  68. // cluster.
  69. //
  70. // Clusters that share a backup history have the same cluster certificate. To
  71. // view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html)
  72. // operation.
  73. ErrCodeCloudHsmClusterNotRelatedException = "CloudHsmClusterNotRelatedException"
  74. // ErrCodeCustomKeyStoreHasCMKsException for service response error code
  75. // "CustomKeyStoreHasCMKsException".
  76. //
  77. // The request was rejected because the custom key store contains AWS KMS customer
  78. // master keys (CMKs). After verifying that you do not need to use the CMKs,
  79. // use the ScheduleKeyDeletion operation to delete the CMKs. After they are
  80. // deleted, you can delete the custom key store.
  81. ErrCodeCustomKeyStoreHasCMKsException = "CustomKeyStoreHasCMKsException"
  82. // ErrCodeCustomKeyStoreInvalidStateException for service response error code
  83. // "CustomKeyStoreInvalidStateException".
  84. //
  85. // The request was rejected because of the ConnectionState of the custom key
  86. // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores
  87. // operation.
  88. //
  89. // This exception is thrown under the following conditions:
  90. //
  91. // * You requested the CreateKey or GenerateRandom operation in a custom
  92. // key store that is not connected. These operations are valid only when
  93. // the custom key store ConnectionState is CONNECTED.
  94. //
  95. // * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation
  96. // on a custom key store that is not disconnected. This operation is valid
  97. // only when the custom key store ConnectionState is DISCONNECTED.
  98. //
  99. // * You requested the ConnectCustomKeyStore operation on a custom key store
  100. // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid
  101. // for all other ConnectionState values.
  102. ErrCodeCustomKeyStoreInvalidStateException = "CustomKeyStoreInvalidStateException"
  103. // ErrCodeCustomKeyStoreNameInUseException for service response error code
  104. // "CustomKeyStoreNameInUseException".
  105. //
  106. // The request was rejected because the specified custom key store name is already
  107. // assigned to another custom key store in the account. Try again with a custom
  108. // key store name that is unique in the account.
  109. ErrCodeCustomKeyStoreNameInUseException = "CustomKeyStoreNameInUseException"
  110. // ErrCodeCustomKeyStoreNotFoundException for service response error code
  111. // "CustomKeyStoreNotFoundException".
  112. //
  113. // The request was rejected because AWS KMS cannot find a custom key store with
  114. // the specified key store name or ID.
  115. ErrCodeCustomKeyStoreNotFoundException = "CustomKeyStoreNotFoundException"
  116. // ErrCodeDependencyTimeoutException for service response error code
  117. // "DependencyTimeoutException".
  118. //
  119. // The system timed out while trying to fulfill the request. The request can
  120. // be retried.
  121. ErrCodeDependencyTimeoutException = "DependencyTimeoutException"
  122. // ErrCodeDisabledException for service response error code
  123. // "DisabledException".
  124. //
  125. // The request was rejected because the specified CMK is not enabled.
  126. ErrCodeDisabledException = "DisabledException"
  127. // ErrCodeExpiredImportTokenException for service response error code
  128. // "ExpiredImportTokenException".
  129. //
  130. // The request was rejected because the provided import token is expired. Use
  131. // GetParametersForImport to get a new import token and public key, use the
  132. // new public key to encrypt the key material, and then try the request again.
  133. ErrCodeExpiredImportTokenException = "ExpiredImportTokenException"
  134. // ErrCodeIncorrectKeyMaterialException for service response error code
  135. // "IncorrectKeyMaterialException".
  136. //
  137. // The request was rejected because the provided key material is invalid or
  138. // is not the same key material that was previously imported into this customer
  139. // master key (CMK).
  140. ErrCodeIncorrectKeyMaterialException = "IncorrectKeyMaterialException"
  141. // ErrCodeIncorrectTrustAnchorException for service response error code
  142. // "IncorrectTrustAnchorException".
  143. //
  144. // The request was rejected because the trust anchor certificate in the request
  145. // is not the trust anchor certificate for the specified AWS CloudHSM cluster.
  146. //
  147. // When you initialize the cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr),
  148. // you create the trust anchor certificate and save it in the customerCA.crt
  149. // file.
  150. ErrCodeIncorrectTrustAnchorException = "IncorrectTrustAnchorException"
  151. // ErrCodeInternalException for service response error code
  152. // "KMSInternalException".
  153. //
  154. // The request was rejected because an internal exception occurred. The request
  155. // can be retried.
  156. ErrCodeInternalException = "KMSInternalException"
  157. // ErrCodeInvalidAliasNameException for service response error code
  158. // "InvalidAliasNameException".
  159. //
  160. // The request was rejected because the specified alias name is not valid.
  161. ErrCodeInvalidAliasNameException = "InvalidAliasNameException"
  162. // ErrCodeInvalidArnException for service response error code
  163. // "InvalidArnException".
  164. //
  165. // The request was rejected because a specified ARN was not valid.
  166. ErrCodeInvalidArnException = "InvalidArnException"
  167. // ErrCodeInvalidCiphertextException for service response error code
  168. // "InvalidCiphertextException".
  169. //
  170. // The request was rejected because the specified ciphertext, or additional
  171. // authenticated data incorporated into the ciphertext, such as the encryption
  172. // context, is corrupted, missing, or otherwise invalid.
  173. ErrCodeInvalidCiphertextException = "InvalidCiphertextException"
  174. // ErrCodeInvalidGrantIdException for service response error code
  175. // "InvalidGrantIdException".
  176. //
  177. // The request was rejected because the specified GrantId is not valid.
  178. ErrCodeInvalidGrantIdException = "InvalidGrantIdException"
  179. // ErrCodeInvalidGrantTokenException for service response error code
  180. // "InvalidGrantTokenException".
  181. //
  182. // The request was rejected because the specified grant token is not valid.
  183. ErrCodeInvalidGrantTokenException = "InvalidGrantTokenException"
  184. // ErrCodeInvalidImportTokenException for service response error code
  185. // "InvalidImportTokenException".
  186. //
  187. // The request was rejected because the provided import token is invalid or
  188. // is associated with a different customer master key (CMK).
  189. ErrCodeInvalidImportTokenException = "InvalidImportTokenException"
  190. // ErrCodeInvalidKeyUsageException for service response error code
  191. // "InvalidKeyUsageException".
  192. //
  193. // The request was rejected because the specified KeySpec value is not valid.
  194. ErrCodeInvalidKeyUsageException = "InvalidKeyUsageException"
  195. // ErrCodeInvalidMarkerException for service response error code
  196. // "InvalidMarkerException".
  197. //
  198. // The request was rejected because the marker that specifies where pagination
  199. // should next begin is not valid.
  200. ErrCodeInvalidMarkerException = "InvalidMarkerException"
  201. // ErrCodeInvalidStateException for service response error code
  202. // "KMSInvalidStateException".
  203. //
  204. // The request was rejected because the state of the specified resource is not
  205. // valid for this request.
  206. //
  207. // For more information about how key state affects the use of a CMK, see How
  208. // Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
  209. // in the AWS Key Management Service Developer Guide.
  210. ErrCodeInvalidStateException = "KMSInvalidStateException"
  211. // ErrCodeKeyUnavailableException for service response error code
  212. // "KeyUnavailableException".
  213. //
  214. // The request was rejected because the specified CMK was not available. The
  215. // request can be retried.
  216. ErrCodeKeyUnavailableException = "KeyUnavailableException"
  217. // ErrCodeLimitExceededException for service response error code
  218. // "LimitExceededException".
  219. //
  220. // The request was rejected because a limit was exceeded. For more information,
  221. // see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html)
  222. // in the AWS Key Management Service Developer Guide.
  223. ErrCodeLimitExceededException = "LimitExceededException"
  224. // ErrCodeMalformedPolicyDocumentException for service response error code
  225. // "MalformedPolicyDocumentException".
  226. //
  227. // The request was rejected because the specified policy is not syntactically
  228. // or semantically correct.
  229. ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocumentException"
  230. // ErrCodeNotFoundException for service response error code
  231. // "NotFoundException".
  232. //
  233. // The request was rejected because the specified entity or resource could not
  234. // be found.
  235. ErrCodeNotFoundException = "NotFoundException"
  236. // ErrCodeTagException for service response error code
  237. // "TagException".
  238. //
  239. // The request was rejected because one or more tags are not valid.
  240. ErrCodeTagException = "TagException"
  241. // ErrCodeUnsupportedOperationException for service response error code
  242. // "UnsupportedOperationException".
  243. //
  244. // The request was rejected because a specified parameter is not supported or
  245. // a specified resource is not valid for this operation.
  246. ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
  247. )