package types
import "github.com/aws/aws-sdk-go-v2/service/kms/types"
Index ¶
- type AlgorithmSpec
- type AliasListEntry
- type AlreadyExistsException
- func (e *AlreadyExistsException) Error() string
- func (e *AlreadyExistsException) ErrorCode() string
- func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault
- func (e *AlreadyExistsException) ErrorMessage() string
- type CloudHsmClusterInUseException
- func (e *CloudHsmClusterInUseException) Error() string
- func (e *CloudHsmClusterInUseException) ErrorCode() string
- func (e *CloudHsmClusterInUseException) ErrorFault() smithy.ErrorFault
- func (e *CloudHsmClusterInUseException) ErrorMessage() string
- type CloudHsmClusterInvalidConfigurationException
- func (e *CloudHsmClusterInvalidConfigurationException) Error() string
- func (e *CloudHsmClusterInvalidConfigurationException) ErrorCode() string
- func (e *CloudHsmClusterInvalidConfigurationException) ErrorFault() smithy.ErrorFault
- func (e *CloudHsmClusterInvalidConfigurationException) ErrorMessage() string
- type CloudHsmClusterNotActiveException
- func (e *CloudHsmClusterNotActiveException) Error() string
- func (e *CloudHsmClusterNotActiveException) ErrorCode() string
- func (e *CloudHsmClusterNotActiveException) ErrorFault() smithy.ErrorFault
- func (e *CloudHsmClusterNotActiveException) ErrorMessage() string
- type CloudHsmClusterNotFoundException
- func (e *CloudHsmClusterNotFoundException) Error() string
- func (e *CloudHsmClusterNotFoundException) ErrorCode() string
- func (e *CloudHsmClusterNotFoundException) ErrorFault() smithy.ErrorFault
- func (e *CloudHsmClusterNotFoundException) ErrorMessage() string
- type CloudHsmClusterNotRelatedException
- func (e *CloudHsmClusterNotRelatedException) Error() string
- func (e *CloudHsmClusterNotRelatedException) ErrorCode() string
- func (e *CloudHsmClusterNotRelatedException) ErrorFault() smithy.ErrorFault
- func (e *CloudHsmClusterNotRelatedException) ErrorMessage() string
- type ConnectionErrorCodeType
- type ConnectionStateType
- type CustomKeyStoreHasCMKsException
- func (e *CustomKeyStoreHasCMKsException) Error() string
- func (e *CustomKeyStoreHasCMKsException) ErrorCode() string
- func (e *CustomKeyStoreHasCMKsException) ErrorFault() smithy.ErrorFault
- func (e *CustomKeyStoreHasCMKsException) ErrorMessage() string
- type CustomKeyStoreInvalidStateException
- func (e *CustomKeyStoreInvalidStateException) Error() string
- func (e *CustomKeyStoreInvalidStateException) ErrorCode() string
- func (e *CustomKeyStoreInvalidStateException) ErrorFault() smithy.ErrorFault
- func (e *CustomKeyStoreInvalidStateException) ErrorMessage() string
- type CustomKeyStoreNameInUseException
- func (e *CustomKeyStoreNameInUseException) Error() string
- func (e *CustomKeyStoreNameInUseException) ErrorCode() string
- func (e *CustomKeyStoreNameInUseException) ErrorFault() smithy.ErrorFault
- func (e *CustomKeyStoreNameInUseException) ErrorMessage() string
- type CustomKeyStoreNotFoundException
- func (e *CustomKeyStoreNotFoundException) Error() string
- func (e *CustomKeyStoreNotFoundException) ErrorCode() string
- func (e *CustomKeyStoreNotFoundException) ErrorFault() smithy.ErrorFault
- func (e *CustomKeyStoreNotFoundException) ErrorMessage() string
- type CustomKeyStoresListEntry
- type CustomerMasterKeySpec
- type DataKeyPairSpec
- type DataKeySpec
- type DependencyTimeoutException
- func (e *DependencyTimeoutException) Error() string
- func (e *DependencyTimeoutException) ErrorCode() string
- func (e *DependencyTimeoutException) ErrorFault() smithy.ErrorFault
- func (e *DependencyTimeoutException) ErrorMessage() string
- type DisabledException
- func (e *DisabledException) Error() string
- func (e *DisabledException) ErrorCode() string
- func (e *DisabledException) ErrorFault() smithy.ErrorFault
- func (e *DisabledException) ErrorMessage() string
- type EncryptionAlgorithmSpec
- type ExpirationModelType
- type ExpiredImportTokenException
- func (e *ExpiredImportTokenException) Error() string
- func (e *ExpiredImportTokenException) ErrorCode() string
- func (e *ExpiredImportTokenException) ErrorFault() smithy.ErrorFault
- func (e *ExpiredImportTokenException) ErrorMessage() string
- type GrantConstraints
- type GrantListEntry
- type GrantOperation
- type IncorrectKeyException
- func (e *IncorrectKeyException) Error() string
- func (e *IncorrectKeyException) ErrorCode() string
- func (e *IncorrectKeyException) ErrorFault() smithy.ErrorFault
- func (e *IncorrectKeyException) ErrorMessage() string
- type IncorrectKeyMaterialException
- func (e *IncorrectKeyMaterialException) Error() string
- func (e *IncorrectKeyMaterialException) ErrorCode() string
- func (e *IncorrectKeyMaterialException) ErrorFault() smithy.ErrorFault
- func (e *IncorrectKeyMaterialException) ErrorMessage() string
- type IncorrectTrustAnchorException
- func (e *IncorrectTrustAnchorException) Error() string
- func (e *IncorrectTrustAnchorException) ErrorCode() string
- func (e *IncorrectTrustAnchorException) ErrorFault() smithy.ErrorFault
- func (e *IncorrectTrustAnchorException) ErrorMessage() string
- type InvalidAliasNameException
- func (e *InvalidAliasNameException) Error() string
- func (e *InvalidAliasNameException) ErrorCode() string
- func (e *InvalidAliasNameException) ErrorFault() smithy.ErrorFault
- func (e *InvalidAliasNameException) ErrorMessage() string
- type InvalidArnException
- func (e *InvalidArnException) Error() string
- func (e *InvalidArnException) ErrorCode() string
- func (e *InvalidArnException) ErrorFault() smithy.ErrorFault
- func (e *InvalidArnException) ErrorMessage() string
- type InvalidCiphertextException
- func (e *InvalidCiphertextException) Error() string
- func (e *InvalidCiphertextException) ErrorCode() string
- func (e *InvalidCiphertextException) ErrorFault() smithy.ErrorFault
- func (e *InvalidCiphertextException) ErrorMessage() string
- type InvalidGrantIdException
- func (e *InvalidGrantIdException) Error() string
- func (e *InvalidGrantIdException) ErrorCode() string
- func (e *InvalidGrantIdException) ErrorFault() smithy.ErrorFault
- func (e *InvalidGrantIdException) ErrorMessage() string
- type InvalidGrantTokenException
- func (e *InvalidGrantTokenException) Error() string
- func (e *InvalidGrantTokenException) ErrorCode() string
- func (e *InvalidGrantTokenException) ErrorFault() smithy.ErrorFault
- func (e *InvalidGrantTokenException) ErrorMessage() string
- type InvalidImportTokenException
- func (e *InvalidImportTokenException) Error() string
- func (e *InvalidImportTokenException) ErrorCode() string
- func (e *InvalidImportTokenException) ErrorFault() smithy.ErrorFault
- func (e *InvalidImportTokenException) ErrorMessage() string
- type InvalidKeyUsageException
- func (e *InvalidKeyUsageException) Error() string
- func (e *InvalidKeyUsageException) ErrorCode() string
- func (e *InvalidKeyUsageException) ErrorFault() smithy.ErrorFault
- func (e *InvalidKeyUsageException) ErrorMessage() string
- type InvalidMarkerException
- func (e *InvalidMarkerException) Error() string
- func (e *InvalidMarkerException) ErrorCode() string
- func (e *InvalidMarkerException) ErrorFault() smithy.ErrorFault
- func (e *InvalidMarkerException) ErrorMessage() string
- type KMSInternalException
- func (e *KMSInternalException) Error() string
- func (e *KMSInternalException) ErrorCode() string
- func (e *KMSInternalException) ErrorFault() smithy.ErrorFault
- func (e *KMSInternalException) ErrorMessage() string
- type KMSInvalidSignatureException
- func (e *KMSInvalidSignatureException) Error() string
- func (e *KMSInvalidSignatureException) ErrorCode() string
- func (e *KMSInvalidSignatureException) ErrorFault() smithy.ErrorFault
- func (e *KMSInvalidSignatureException) ErrorMessage() string
- type KMSInvalidStateException
- func (e *KMSInvalidStateException) Error() string
- func (e *KMSInvalidStateException) ErrorCode() string
- func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault
- func (e *KMSInvalidStateException) ErrorMessage() string
- type KeyListEntry
- type KeyManagerType
- type KeyMetadata
- type KeyState
- type KeyUnavailableException
- func (e *KeyUnavailableException) Error() string
- func (e *KeyUnavailableException) ErrorCode() string
- func (e *KeyUnavailableException) ErrorFault() smithy.ErrorFault
- func (e *KeyUnavailableException) ErrorMessage() string
- type KeyUsageType
- type LimitExceededException
- func (e *LimitExceededException) Error() string
- func (e *LimitExceededException) ErrorCode() string
- func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
- func (e *LimitExceededException) ErrorMessage() string
- type MalformedPolicyDocumentException
- func (e *MalformedPolicyDocumentException) Error() string
- func (e *MalformedPolicyDocumentException) ErrorCode() string
- func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault
- func (e *MalformedPolicyDocumentException) ErrorMessage() string
- type MessageType
- type NotFoundException
- func (e *NotFoundException) Error() string
- func (e *NotFoundException) ErrorCode() string
- func (e *NotFoundException) ErrorFault() smithy.ErrorFault
- func (e *NotFoundException) ErrorMessage() string
- type OriginType
- type SigningAlgorithmSpec
- type Tag
- type TagException
- func (e *TagException) Error() string
- func (e *TagException) ErrorCode() string
- func (e *TagException) ErrorFault() smithy.ErrorFault
- func (e *TagException) ErrorMessage() string
- type UnsupportedOperationException
- func (e *UnsupportedOperationException) Error() string
- func (e *UnsupportedOperationException) ErrorCode() string
- func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault
- func (e *UnsupportedOperationException) ErrorMessage() string
- type WrappingKeySpec
Types ¶
type AlgorithmSpec ¶
type AlgorithmSpec string
const ( AlgorithmSpecRsaes_pkcs1_v1_5 AlgorithmSpec = "RSAES_PKCS1_V1_5" AlgorithmSpecRsaes_oaep_sha_1 AlgorithmSpec = "RSAES_OAEP_SHA_1" AlgorithmSpecRsaes_oaep_sha_256 AlgorithmSpec = "RSAES_OAEP_SHA_256" )
Enum values for AlgorithmSpec
type AliasListEntry ¶
type AliasListEntry struct { // String that contains the alias. This value begins with alias/. AliasName *string // String that contains the key identifier referred to by the alias. TargetKeyId *string // String that contains the key ARN. AliasArn *string }
Contains information about an alias.
type AlreadyExistsException ¶
type AlreadyExistsException struct { Message *string }
The request was rejected because it attempted to create a resource that already exists.
func (*AlreadyExistsException) Error ¶
func (e *AlreadyExistsException) Error() string
func (*AlreadyExistsException) ErrorCode ¶
func (e *AlreadyExistsException) ErrorCode() string
func (*AlreadyExistsException) ErrorFault ¶
func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault
func (*AlreadyExistsException) ErrorMessage ¶
func (e *AlreadyExistsException) ErrorMessage() string
type CloudHsmClusterInUseException ¶
type CloudHsmClusterInUseException struct { Message *string }
The request was rejected because the specified AWS CloudHSM cluster is already associated with a custom key store or it shares a backup history with a cluster that is associated with a custom key store. Each custom key store must be associated with a different AWS CloudHSM cluster. Clusters that share a backup history have the same cluster certificate. To view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) operation.
func (*CloudHsmClusterInUseException) Error ¶
func (e *CloudHsmClusterInUseException) Error() string
func (*CloudHsmClusterInUseException) ErrorCode ¶
func (e *CloudHsmClusterInUseException) ErrorCode() string
func (*CloudHsmClusterInUseException) ErrorFault ¶
func (e *CloudHsmClusterInUseException) ErrorFault() smithy.ErrorFault
func (*CloudHsmClusterInUseException) ErrorMessage ¶
func (e *CloudHsmClusterInUseException) ErrorMessage() string
type CloudHsmClusterInvalidConfigurationException ¶
type CloudHsmClusterInvalidConfigurationException struct { Message *string }
The request was rejected because the associated AWS CloudHSM cluster did not meet the configuration requirements for a custom key store. <ul> <li> <p>The cluster must be configured with private subnets in at least two different Availability Zones in the Region.</p> </li> <li> <p>The <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">security group for the cluster</a> (cloudhsm-cluster-<i><cluster-id></i>-sg) must include inbound rules and outbound rules that allow TCP traffic on ports 2223-2225. The <b>Source</b> in the inbound rules and the <b>Destination</b> in the outbound rules must match the security group ID. These rules are set by default when you create the cluster. Do not delete or change them. To get information about a particular security group, use the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html">DescribeSecurityGroups</a> operation.</p> </li> <li> <p>The cluster must contain at least as many HSMs as the operation requires. To add HSMs, use the AWS CloudHSM <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html">CreateHsm</a> operation.</p> <p>For the <a>CreateCustomKeyStore</a>, <a>UpdateCustomKeyStore</a>, and <a>CreateKey</a> operations, the AWS CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the <a>ConnectCustomKeyStore</a> operation, the AWS CloudHSM must contain at least one active HSM.</p> </li> </ul> <p>For information about the requirements for an AWS CloudHSM cluster that is associated with a custom key store, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore">Assemble the Prerequisites</a> in the <i>AWS Key Management Service Developer Guide</i>. For information about creating a private subnet for an AWS CloudHSM cluster, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html">Create a Private Subnet</a> in the <i>AWS CloudHSM User Guide</i>. For information about cluster security groups, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html">Configure a Default Security Group</a> in the <i> <i>AWS CloudHSM User Guide</i> </i>. </p>
func (*CloudHsmClusterInvalidConfigurationException) Error ¶
func (e *CloudHsmClusterInvalidConfigurationException) Error() string
func (*CloudHsmClusterInvalidConfigurationException) ErrorCode ¶
func (e *CloudHsmClusterInvalidConfigurationException) ErrorCode() string
func (*CloudHsmClusterInvalidConfigurationException) ErrorFault ¶
func (e *CloudHsmClusterInvalidConfigurationException) ErrorFault() smithy.ErrorFault
func (*CloudHsmClusterInvalidConfigurationException) ErrorMessage ¶
func (e *CloudHsmClusterInvalidConfigurationException) ErrorMessage() string
type CloudHsmClusterNotActiveException ¶
type CloudHsmClusterNotActiveException struct { Message *string }
The request was rejected because the AWS CloudHSM cluster that is associated with the custom key store is not active. Initialize and activate the cluster and try the command again. For detailed instructions, see Getting Started (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) in the AWS CloudHSM User Guide.
func (*CloudHsmClusterNotActiveException) Error ¶
func (e *CloudHsmClusterNotActiveException) Error() string
func (*CloudHsmClusterNotActiveException) ErrorCode ¶
func (e *CloudHsmClusterNotActiveException) ErrorCode() string
func (*CloudHsmClusterNotActiveException) ErrorFault ¶
func (e *CloudHsmClusterNotActiveException) ErrorFault() smithy.ErrorFault
func (*CloudHsmClusterNotActiveException) ErrorMessage ¶
func (e *CloudHsmClusterNotActiveException) ErrorMessage() string
type CloudHsmClusterNotFoundException ¶
type CloudHsmClusterNotFoundException struct { Message *string }
The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster with the specified cluster ID. Retry the request with a different cluster ID.
func (*CloudHsmClusterNotFoundException) Error ¶
func (e *CloudHsmClusterNotFoundException) Error() string
func (*CloudHsmClusterNotFoundException) ErrorCode ¶
func (e *CloudHsmClusterNotFoundException) ErrorCode() string
func (*CloudHsmClusterNotFoundException) ErrorFault ¶
func (e *CloudHsmClusterNotFoundException) ErrorFault() smithy.ErrorFault
func (*CloudHsmClusterNotFoundException) ErrorMessage ¶
func (e *CloudHsmClusterNotFoundException) ErrorMessage() string
type CloudHsmClusterNotRelatedException ¶
type CloudHsmClusterNotRelatedException struct { Message *string }
The request was rejected because the specified AWS CloudHSM cluster has a different cluster certificate than the original cluster. You cannot use the operation to specify an unrelated cluster. Specify a cluster that shares a backup history with the original cluster. This includes clusters that were created from a backup of the current cluster, and clusters that were created from the same backup that produced the current cluster. Clusters that share a backup history have the same cluster certificate. To view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) operation.
func (*CloudHsmClusterNotRelatedException) Error ¶
func (e *CloudHsmClusterNotRelatedException) Error() string
func (*CloudHsmClusterNotRelatedException) ErrorCode ¶
func (e *CloudHsmClusterNotRelatedException) ErrorCode() string
func (*CloudHsmClusterNotRelatedException) ErrorFault ¶
func (e *CloudHsmClusterNotRelatedException) ErrorFault() smithy.ErrorFault
func (*CloudHsmClusterNotRelatedException) ErrorMessage ¶
func (e *CloudHsmClusterNotRelatedException) ErrorMessage() string
type ConnectionErrorCodeType ¶
type ConnectionErrorCodeType string
const ( ConnectionErrorCodeTypeInvalid_credentials ConnectionErrorCodeType = "INVALID_CREDENTIALS" ConnectionErrorCodeTypeCluster_not_found ConnectionErrorCodeType = "CLUSTER_NOT_FOUND" ConnectionErrorCodeTypeNetwork_errors ConnectionErrorCodeType = "NETWORK_ERRORS" ConnectionErrorCodeTypeInternal_error ConnectionErrorCodeType = "INTERNAL_ERROR" ConnectionErrorCodeTypeInsufficient_cloudhsm_hsms ConnectionErrorCodeType = "INSUFFICIENT_CLOUDHSM_HSMS" ConnectionErrorCodeTypeUser_locked_out ConnectionErrorCodeType = "USER_LOCKED_OUT" ConnectionErrorCodeTypeUser_not_found ConnectionErrorCodeType = "USER_NOT_FOUND" ConnectionErrorCodeTypeUser_logged_in ConnectionErrorCodeType = "USER_LOGGED_IN" ConnectionErrorCodeTypeSubnet_not_found ConnectionErrorCodeType = "SUBNET_NOT_FOUND" )
Enum values for ConnectionErrorCodeType
type ConnectionStateType ¶
type ConnectionStateType string
const ( ConnectionStateTypeConnected ConnectionStateType = "CONNECTED" ConnectionStateTypeConnecting ConnectionStateType = "CONNECTING" ConnectionStateTypeFailed ConnectionStateType = "FAILED" ConnectionStateTypeDisconnected ConnectionStateType = "DISCONNECTED" ConnectionStateTypeDisconnecting ConnectionStateType = "DISCONNECTING" )
Enum values for ConnectionStateType
type CustomKeyStoreHasCMKsException ¶
type CustomKeyStoreHasCMKsException struct { Message *string }
The request was rejected because the custom key store contains AWS KMS customer master keys (CMKs). After verifying that you do not need to use the CMKs, use the ScheduleKeyDeletion () operation to delete the CMKs. After they are deleted, you can delete the custom key store.
func (*CustomKeyStoreHasCMKsException) Error ¶
func (e *CustomKeyStoreHasCMKsException) Error() string
func (*CustomKeyStoreHasCMKsException) ErrorCode ¶
func (e *CustomKeyStoreHasCMKsException) ErrorCode() string
func (*CustomKeyStoreHasCMKsException) ErrorFault ¶
func (e *CustomKeyStoreHasCMKsException) ErrorFault() smithy.ErrorFault
func (*CustomKeyStoreHasCMKsException) ErrorMessage ¶
func (e *CustomKeyStoreHasCMKsException) ErrorMessage() string
type CustomKeyStoreInvalidStateException ¶
type CustomKeyStoreInvalidStateException struct { Message *string }
The request was rejected because of the ConnectionState of the custom key store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores () operation. This exception is thrown under the following conditions:
- You requested the CreateKey () or GenerateRandom ()
operation in a custom key store that is not connected. These operations are valid only when the custom key store ConnectionState is CONNECTED.
- You
requested the UpdateCustomKeyStore () or DeleteCustomKeyStore () operation on a custom key store that is not disconnected. This operation is valid only when the custom key store ConnectionState is DISCONNECTED.
- You requested the
ConnectCustomKeyStore () operation on a custom key store with a ConnectionState of DISCONNECTING or FAILED. This operation is valid for all other ConnectionState values.
func (*CustomKeyStoreInvalidStateException) Error ¶
func (e *CustomKeyStoreInvalidStateException) Error() string
func (*CustomKeyStoreInvalidStateException) ErrorCode ¶
func (e *CustomKeyStoreInvalidStateException) ErrorCode() string
func (*CustomKeyStoreInvalidStateException) ErrorFault ¶
func (e *CustomKeyStoreInvalidStateException) ErrorFault() smithy.ErrorFault
func (*CustomKeyStoreInvalidStateException) ErrorMessage ¶
func (e *CustomKeyStoreInvalidStateException) ErrorMessage() string
type CustomKeyStoreNameInUseException ¶
type CustomKeyStoreNameInUseException struct { Message *string }
The request was rejected because the specified custom key store name is already assigned to another custom key store in the account. Try again with a custom key store name that is unique in the account.
func (*CustomKeyStoreNameInUseException) Error ¶
func (e *CustomKeyStoreNameInUseException) Error() string
func (*CustomKeyStoreNameInUseException) ErrorCode ¶
func (e *CustomKeyStoreNameInUseException) ErrorCode() string
func (*CustomKeyStoreNameInUseException) ErrorFault ¶
func (e *CustomKeyStoreNameInUseException) ErrorFault() smithy.ErrorFault
func (*CustomKeyStoreNameInUseException) ErrorMessage ¶
func (e *CustomKeyStoreNameInUseException) ErrorMessage() string
type CustomKeyStoreNotFoundException ¶
type CustomKeyStoreNotFoundException struct { Message *string }
The request was rejected because AWS KMS cannot find a custom key store with the specified key store name or ID.
func (*CustomKeyStoreNotFoundException) Error ¶
func (e *CustomKeyStoreNotFoundException) Error() string
func (*CustomKeyStoreNotFoundException) ErrorCode ¶
func (e *CustomKeyStoreNotFoundException) ErrorCode() string
func (*CustomKeyStoreNotFoundException) ErrorFault ¶
func (e *CustomKeyStoreNotFoundException) ErrorFault() smithy.ErrorFault
func (*CustomKeyStoreNotFoundException) ErrorMessage ¶
func (e *CustomKeyStoreNotFoundException) ErrorMessage() string
type CustomKeyStoresListEntry ¶
type CustomKeyStoresListEntry struct { // The date and time when the custom key store was created. CreationDate *time.Time // The user-specified friendly name for the custom key store. CustomKeyStoreName *string // Describes the connection error. This field appears in the response only when the // ConnectionState is FAILED. For help resolving these errors, see How to Fix a // Connection Failure // (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed) // in AWS Key Management Service Developer Guide. Valid values are: // // * // CLUSTER_NOT_FOUND - AWS KMS cannot find the AWS CloudHSM cluster with the // specified cluster ID. // // * INSUFFICIENT_CLOUDHSM_HSMS - The associated AWS // CloudHSM cluster does not contain any active HSMs. To connect a custom key store // to its AWS CloudHSM cluster, the cluster must contain at least one active HSM. // // // * INTERNAL_ERROR - AWS KMS could not complete the request due to an internal // error. Retry the request. For ConnectCustomKeyStore requests, disconnect the // custom key store before trying to connect again. // // * INVALID_CREDENTIALS - // AWS KMS does not have the correct password for the kmsuser crypto user in the // AWS CloudHSM cluster. Before you can connect your custom key store to its AWS // CloudHSM cluster, you must change the kmsuser account password and update the // key store password value for the custom key store. // // * NETWORK_ERRORS - // Network errors are preventing AWS KMS from connecting to the custom key store. // // // * SUBNET_NOT_FOUND - A subnet in the AWS CloudHSM cluster configuration was // deleted. If AWS KMS cannot find all of the subnets in the cluster configuration, // attempts to connect the custom key store to the AWS CloudHSM cluster fail. To // fix this error, create a cluster from a recent backup and associate it with your // custom key store. (This process creates a new cluster configuration with a VPC // and private subnets.) For details, see How to Fix a Connection Failure // (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-failed) // in the AWS Key Management Service Developer Guide. // // * USER_LOCKED_OUT - The // kmsuser CU account is locked out of the associated AWS CloudHSM cluster due to // too many failed password attempts. Before you can connect your custom key store // to its AWS CloudHSM cluster, you must change the kmsuser account password and // update the key store password value for the custom key store. // // * // USER_LOGGED_IN - The kmsuser CU account is logged into the the associated AWS // CloudHSM cluster. This prevents AWS KMS from rotating the kmsuser account // password and logging into the cluster. Before you can connect your custom key // store to its AWS CloudHSM cluster, you must log the kmsuser CU out of the // cluster. If you changed the kmsuser password to log into the cluster, you must // also and update the key store password value for the custom key store. For help, // see How to Log Out and Reconnect // (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#login-kmsuser-2) // in the AWS Key Management Service Developer Guide. // // * USER_NOT_FOUND - AWS // KMS cannot find a kmsuser CU account in the associated AWS CloudHSM cluster. // Before you can connect your custom key store to its AWS CloudHSM cluster, you // must create a kmsuser CU account in the cluster, and then update the key store // password value for the custom key store. ConnectionErrorCode ConnectionErrorCodeType // A unique identifier for the custom key store. CustomKeyStoreId *string // The trust anchor certificate of the associated AWS CloudHSM cluster. When you // initialize the cluster // (https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), // you create this certificate and save it in the customerCA.crt file. TrustAnchorCertificate *string // Indicates whether the custom key store is connected to its AWS CloudHSM cluster. // You can create and use CMKs in your custom key stores only when its connection // state is CONNECTED. The value is DISCONNECTED if the key store has never been // connected or you use the DisconnectCustomKeyStore () operation to disconnect it. // If the value is CONNECTED but you are having trouble using the custom key store, // make sure that its associated AWS CloudHSM cluster is active and contains at // least one active HSM. A value of FAILED indicates that an attempt to connect was // unsuccessful. The ConnectionErrorCode field in the response indicates the cause // of the failure. For help resolving a connection failure, see Troubleshooting a // Custom Key Store // (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) in the // AWS Key Management Service Developer Guide. ConnectionState ConnectionStateType // A unique identifier for the AWS CloudHSM cluster that is associated with the // custom key store. CloudHsmClusterId *string }
Contains information about each custom key store in the custom key store list.
type CustomerMasterKeySpec ¶
type CustomerMasterKeySpec string
const ( CustomerMasterKeySpecRsa_2048 CustomerMasterKeySpec = "RSA_2048" CustomerMasterKeySpecRsa_3072 CustomerMasterKeySpec = "RSA_3072" CustomerMasterKeySpecRsa_4096 CustomerMasterKeySpec = "RSA_4096" CustomerMasterKeySpecEcc_nist_p256 CustomerMasterKeySpec = "ECC_NIST_P256" CustomerMasterKeySpecEcc_nist_p384 CustomerMasterKeySpec = "ECC_NIST_P384" CustomerMasterKeySpecEcc_nist_p521 CustomerMasterKeySpec = "ECC_NIST_P521" CustomerMasterKeySpecEcc_secg_p256k1 CustomerMasterKeySpec = "ECC_SECG_P256K1" CustomerMasterKeySpecSymmetric_default CustomerMasterKeySpec = "SYMMETRIC_DEFAULT" )
Enum values for CustomerMasterKeySpec
type DataKeyPairSpec ¶
type DataKeyPairSpec string
const ( DataKeyPairSpecRsa_2048 DataKeyPairSpec = "RSA_2048" DataKeyPairSpecRsa_3072 DataKeyPairSpec = "RSA_3072" DataKeyPairSpecRsa_4096 DataKeyPairSpec = "RSA_4096" DataKeyPairSpecEcc_nist_p256 DataKeyPairSpec = "ECC_NIST_P256" DataKeyPairSpecEcc_nist_p384 DataKeyPairSpec = "ECC_NIST_P384" DataKeyPairSpecEcc_nist_p521 DataKeyPairSpec = "ECC_NIST_P521" DataKeyPairSpecEcc_secg_p256k1 DataKeyPairSpec = "ECC_SECG_P256K1" )
Enum values for DataKeyPairSpec
type DataKeySpec ¶
type DataKeySpec string
const ( DataKeySpecAes_256 DataKeySpec = "AES_256" DataKeySpecAes_128 DataKeySpec = "AES_128" )
Enum values for DataKeySpec
type DependencyTimeoutException ¶
type DependencyTimeoutException struct { Message *string }
The system timed out while trying to fulfill the request. The request can be retried.
func (*DependencyTimeoutException) Error ¶
func (e *DependencyTimeoutException) Error() string
func (*DependencyTimeoutException) ErrorCode ¶
func (e *DependencyTimeoutException) ErrorCode() string
func (*DependencyTimeoutException) ErrorFault ¶
func (e *DependencyTimeoutException) ErrorFault() smithy.ErrorFault
func (*DependencyTimeoutException) ErrorMessage ¶
func (e *DependencyTimeoutException) ErrorMessage() string
type DisabledException ¶
type DisabledException struct { Message *string }
The request was rejected because the specified CMK is not enabled.
func (*DisabledException) Error ¶
func (e *DisabledException) Error() string
func (*DisabledException) ErrorCode ¶
func (e *DisabledException) ErrorCode() string
func (*DisabledException) ErrorFault ¶
func (e *DisabledException) ErrorFault() smithy.ErrorFault
func (*DisabledException) ErrorMessage ¶
func (e *DisabledException) ErrorMessage() string
type EncryptionAlgorithmSpec ¶
type EncryptionAlgorithmSpec string
const ( EncryptionAlgorithmSpecSymmetric_default EncryptionAlgorithmSpec = "SYMMETRIC_DEFAULT" EncryptionAlgorithmSpecRsaes_oaep_sha_1 EncryptionAlgorithmSpec = "RSAES_OAEP_SHA_1" EncryptionAlgorithmSpecRsaes_oaep_sha_256 EncryptionAlgorithmSpec = "RSAES_OAEP_SHA_256" )
Enum values for EncryptionAlgorithmSpec
type ExpirationModelType ¶
type ExpirationModelType string
const ( ExpirationModelTypeKey_material_expires ExpirationModelType = "KEY_MATERIAL_EXPIRES" ExpirationModelTypeKey_material_does_not_expire ExpirationModelType = "KEY_MATERIAL_DOES_NOT_EXPIRE" )
Enum values for ExpirationModelType
type ExpiredImportTokenException ¶
type ExpiredImportTokenException struct { Message *string }
The request was rejected because the specified import token is expired. Use GetParametersForImport () to get a new import token and public key, use the new public key to encrypt the key material, and then try the request again.
func (*ExpiredImportTokenException) Error ¶
func (e *ExpiredImportTokenException) Error() string
func (*ExpiredImportTokenException) ErrorCode ¶
func (e *ExpiredImportTokenException) ErrorCode() string
func (*ExpiredImportTokenException) ErrorFault ¶
func (e *ExpiredImportTokenException) ErrorFault() smithy.ErrorFault
func (*ExpiredImportTokenException) ErrorMessage ¶
func (e *ExpiredImportTokenException) ErrorMessage() string
type GrantConstraints ¶
type GrantConstraints struct { // A list of key-value pairs that must match the encryption context in the // cryptographic operation // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) // request. The grant allows the operation only when the encryption context in the // request is the same as the encryption context specified in this constraint. EncryptionContextEquals map[string]*string // A list of key-value pairs that must be included in the encryption context of the // cryptographic operation // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) // request. The grant allows the cryptographic operation only when the encryption // context in the request includes the key-value pairs specified in this // constraint, although it can include additional key-value pairs. EncryptionContextSubset map[string]*string }
Use this structure to allow cryptographic operations (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) in the grant only when the operation request includes the specified encryption context (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context). AWS KMS applies the grant constraints only to cryptographic operations that support an encryption context, that is, all cryptographic operations with a symmetric CMK (https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#symmetric-cmks). Grant constraints are not applied to operations that do not support an encryption context, such as cryptographic operations with asymmetric CMKs and management operations, such as DescribeKey () or ScheduleKeyDeletion (). In a cryptographic operation, the encryption context in the decryption operation must be an exact, case-sensitive match for the keys and values in the encryption context of the encryption operation. Only the order of the pairs can vary. However, in a grant constraint, the key in each key-value pair is not case sensitive, but the value is case sensitive. To avoid confusion, do not use multiple encryption context pairs that differ only by case. To require a fully case-sensitive encryption context, use the kms:EncryptionContext: and kms:EncryptionContextKeys conditions in an IAM or key policy. For details, see kms:EncryptionContext: (https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-context) in the AWS Key Management Service Developer Guide .
type GrantListEntry ¶
type GrantListEntry struct { // The AWS account under which the grant was issued. IssuingAccount *string // The identity that gets the permissions in the grant. The GranteePrincipal field // in the ListGrants response usually contains the user or role designated as the // grantee principal in the grant. However, when the grantee principal in the grant // is an AWS service, the GranteePrincipal field contains the service principal // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services), // which might represent several different grantee principals. GranteePrincipal *string // The list of operations permitted by the grant. Operations []GrantOperation // The friendly name that identifies the grant. If a name was provided in the // CreateGrant () request, that name is returned. Otherwise this value is null. Name *string // The principal that can retire the grant. RetiringPrincipal *string // The unique identifier for the customer master key (CMK) to which the grant // applies. KeyId *string // The unique identifier for the grant. GrantId *string // A list of key-value pairs that must be present in the encryption context of // certain subsequent operations that the grant allows. Constraints *GrantConstraints // The date and time when the grant was created. CreationDate *time.Time }
Contains information about a grant.
type GrantOperation ¶
type GrantOperation string
const ( GrantOperationDecrypt GrantOperation = "Decrypt" GrantOperationEncrypt GrantOperation = "Encrypt" GrantOperationGeneratedatakey GrantOperation = "GenerateDataKey" GrantOperationGeneratedatakeywithoutplaintext GrantOperation = "GenerateDataKeyWithoutPlaintext" GrantOperationReencryptfrom GrantOperation = "ReEncryptFrom" GrantOperationReencryptto GrantOperation = "ReEncryptTo" GrantOperationSign GrantOperation = "Sign" GrantOperationVerify GrantOperation = "Verify" GrantOperationGetpublickey GrantOperation = "GetPublicKey" GrantOperationCreategrant GrantOperation = "CreateGrant" GrantOperationRetiregrant GrantOperation = "RetireGrant" GrantOperationDescribekey GrantOperation = "DescribeKey" GrantOperationGeneratedatakeypair GrantOperation = "GenerateDataKeyPair" GrantOperationGeneratedatakeypairwithoutplaintext GrantOperation = "GenerateDataKeyPairWithoutPlaintext" )
Enum values for GrantOperation
type IncorrectKeyException ¶
type IncorrectKeyException struct { Message *string }
The request was rejected because the specified CMK cannot decrypt the data. The KeyId in a Decrypt () request and the SourceKeyId in a ReEncrypt () request must identify the same CMK that was used to encrypt the ciphertext.
func (*IncorrectKeyException) Error ¶
func (e *IncorrectKeyException) Error() string
func (*IncorrectKeyException) ErrorCode ¶
func (e *IncorrectKeyException) ErrorCode() string
func (*IncorrectKeyException) ErrorFault ¶
func (e *IncorrectKeyException) ErrorFault() smithy.ErrorFault
func (*IncorrectKeyException) ErrorMessage ¶
func (e *IncorrectKeyException) ErrorMessage() string
type IncorrectKeyMaterialException ¶
type IncorrectKeyMaterialException struct { Message *string }
The request was rejected because the key material in the request is, expired, invalid, or is not the same key material that was previously imported into this customer master key (CMK).
func (*IncorrectKeyMaterialException) Error ¶
func (e *IncorrectKeyMaterialException) Error() string
func (*IncorrectKeyMaterialException) ErrorCode ¶
func (e *IncorrectKeyMaterialException) ErrorCode() string
func (*IncorrectKeyMaterialException) ErrorFault ¶
func (e *IncorrectKeyMaterialException) ErrorFault() smithy.ErrorFault
func (*IncorrectKeyMaterialException) ErrorMessage ¶
func (e *IncorrectKeyMaterialException) ErrorMessage() string
type IncorrectTrustAnchorException ¶
type IncorrectTrustAnchorException struct { Message *string }
The request was rejected because the trust anchor certificate in the request is not the trust anchor certificate for the specified AWS CloudHSM cluster. When you initialize the cluster (https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), you create the trust anchor certificate and save it in the customerCA.crt file.
func (*IncorrectTrustAnchorException) Error ¶
func (e *IncorrectTrustAnchorException) Error() string
func (*IncorrectTrustAnchorException) ErrorCode ¶
func (e *IncorrectTrustAnchorException) ErrorCode() string
func (*IncorrectTrustAnchorException) ErrorFault ¶
func (e *IncorrectTrustAnchorException) ErrorFault() smithy.ErrorFault
func (*IncorrectTrustAnchorException) ErrorMessage ¶
func (e *IncorrectTrustAnchorException) ErrorMessage() string
type InvalidAliasNameException ¶
type InvalidAliasNameException struct { Message *string }
The request was rejected because the specified alias name is not valid.
func (*InvalidAliasNameException) Error ¶
func (e *InvalidAliasNameException) Error() string
func (*InvalidAliasNameException) ErrorCode ¶
func (e *InvalidAliasNameException) ErrorCode() string
func (*InvalidAliasNameException) ErrorFault ¶
func (e *InvalidAliasNameException) ErrorFault() smithy.ErrorFault
func (*InvalidAliasNameException) ErrorMessage ¶
func (e *InvalidAliasNameException) ErrorMessage() string
type InvalidArnException ¶
type InvalidArnException struct { Message *string }
The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
func (*InvalidArnException) Error ¶
func (e *InvalidArnException) Error() string
func (*InvalidArnException) ErrorCode ¶
func (e *InvalidArnException) ErrorCode() string
func (*InvalidArnException) ErrorFault ¶
func (e *InvalidArnException) ErrorFault() smithy.ErrorFault
func (*InvalidArnException) ErrorMessage ¶
func (e *InvalidArnException) ErrorMessage() string
type InvalidCiphertextException ¶
type InvalidCiphertextException struct { Message *string }
From the Decrypt () or ReEncrypt () operation, the request was rejected because the specified ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid. From the ImportKeyMaterial () operation, the request was rejected because AWS KMS could not decrypt the encrypted (wrapped) key material.
func (*InvalidCiphertextException) Error ¶
func (e *InvalidCiphertextException) Error() string
func (*InvalidCiphertextException) ErrorCode ¶
func (e *InvalidCiphertextException) ErrorCode() string
func (*InvalidCiphertextException) ErrorFault ¶
func (e *InvalidCiphertextException) ErrorFault() smithy.ErrorFault
func (*InvalidCiphertextException) ErrorMessage ¶
func (e *InvalidCiphertextException) ErrorMessage() string
type InvalidGrantIdException ¶
type InvalidGrantIdException struct { Message *string }
The request was rejected because the specified GrantId is not valid.
func (*InvalidGrantIdException) Error ¶
func (e *InvalidGrantIdException) Error() string
func (*InvalidGrantIdException) ErrorCode ¶
func (e *InvalidGrantIdException) ErrorCode() string
func (*InvalidGrantIdException) ErrorFault ¶
func (e *InvalidGrantIdException) ErrorFault() smithy.ErrorFault
func (*InvalidGrantIdException) ErrorMessage ¶
func (e *InvalidGrantIdException) ErrorMessage() string
type InvalidGrantTokenException ¶
type InvalidGrantTokenException struct { Message *string }
The request was rejected because the specified grant token is not valid.
func (*InvalidGrantTokenException) Error ¶
func (e *InvalidGrantTokenException) Error() string
func (*InvalidGrantTokenException) ErrorCode ¶
func (e *InvalidGrantTokenException) ErrorCode() string
func (*InvalidGrantTokenException) ErrorFault ¶
func (e *InvalidGrantTokenException) ErrorFault() smithy.ErrorFault
func (*InvalidGrantTokenException) ErrorMessage ¶
func (e *InvalidGrantTokenException) ErrorMessage() string
type InvalidImportTokenException ¶
type InvalidImportTokenException struct { Message *string }
The request was rejected because the provided import token is invalid or is associated with a different customer master key (CMK).
func (*InvalidImportTokenException) Error ¶
func (e *InvalidImportTokenException) Error() string
func (*InvalidImportTokenException) ErrorCode ¶
func (e *InvalidImportTokenException) ErrorCode() string
func (*InvalidImportTokenException) ErrorFault ¶
func (e *InvalidImportTokenException) ErrorFault() smithy.ErrorFault
func (*InvalidImportTokenException) ErrorMessage ¶
func (e *InvalidImportTokenException) ErrorMessage() string
type InvalidKeyUsageException ¶
type InvalidKeyUsageException struct { Message *string }
The request was rejected for one of the following reasons:
- The KeyUsage
value of the CMK is incompatible with the API operation.
- The encryption
algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the CMK (CustomerMasterKeySpec).
For encrypting, decrypting, re-encrypting, and generating data keys, the KeyUsage must be ENCRYPT_DECRYPT. For signing and verifying, the KeyUsage must be SIGN_VERIFY. To find the KeyUsage of a CMK, use the DescribeKey () operation. To find the encryption or signing algorithms supported for a particular CMK, use the DescribeKey () operation.
func (*InvalidKeyUsageException) Error ¶
func (e *InvalidKeyUsageException) Error() string
func (*InvalidKeyUsageException) ErrorCode ¶
func (e *InvalidKeyUsageException) ErrorCode() string
func (*InvalidKeyUsageException) ErrorFault ¶
func (e *InvalidKeyUsageException) ErrorFault() smithy.ErrorFault
func (*InvalidKeyUsageException) ErrorMessage ¶
func (e *InvalidKeyUsageException) ErrorMessage() string
type InvalidMarkerException ¶
type InvalidMarkerException struct { Message *string }
The request was rejected because the marker that specifies where pagination should next begin is not valid.
func (*InvalidMarkerException) Error ¶
func (e *InvalidMarkerException) Error() string
func (*InvalidMarkerException) ErrorCode ¶
func (e *InvalidMarkerException) ErrorCode() string
func (*InvalidMarkerException) ErrorFault ¶
func (e *InvalidMarkerException) ErrorFault() smithy.ErrorFault
func (*InvalidMarkerException) ErrorMessage ¶
func (e *InvalidMarkerException) ErrorMessage() string
type KMSInternalException ¶
type KMSInternalException struct { Message *string }
The request was rejected because an internal exception occurred. The request can be retried.
func (*KMSInternalException) Error ¶
func (e *KMSInternalException) Error() string
func (*KMSInternalException) ErrorCode ¶
func (e *KMSInternalException) ErrorCode() string
func (*KMSInternalException) ErrorFault ¶
func (e *KMSInternalException) ErrorFault() smithy.ErrorFault
func (*KMSInternalException) ErrorMessage ¶
func (e *KMSInternalException) ErrorMessage() string
type KMSInvalidSignatureException ¶
type KMSInvalidSignatureException struct { Message *string }
The request was rejected because the signature verification failed. Signature verification fails when it cannot confirm that signature was produced by signing the specified message with the specified CMK and signing algorithm.
func (*KMSInvalidSignatureException) Error ¶
func (e *KMSInvalidSignatureException) Error() string
func (*KMSInvalidSignatureException) ErrorCode ¶
func (e *KMSInvalidSignatureException) ErrorCode() string
func (*KMSInvalidSignatureException) ErrorFault ¶
func (e *KMSInvalidSignatureException) ErrorFault() smithy.ErrorFault
func (*KMSInvalidSignatureException) ErrorMessage ¶
func (e *KMSInvalidSignatureException) ErrorMessage() string
type KMSInvalidStateException ¶
type KMSInvalidStateException struct { Message *string }
The request was rejected because the state of the specified resource is not valid for this request. For more information about how key state affects the use of a CMK, see How Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the AWS Key Management Service Developer Guide .
func (*KMSInvalidStateException) Error ¶
func (e *KMSInvalidStateException) Error() string
func (*KMSInvalidStateException) ErrorCode ¶
func (e *KMSInvalidStateException) ErrorCode() string
func (*KMSInvalidStateException) ErrorFault ¶
func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault
func (*KMSInvalidStateException) ErrorMessage ¶
func (e *KMSInvalidStateException) ErrorMessage() string
type KeyListEntry ¶
type KeyListEntry struct { // ARN of the key. KeyArn *string // Unique identifier of the key. KeyId *string }
Contains information about each entry in the key list.
type KeyManagerType ¶
type KeyManagerType string
const ( KeyManagerTypeAws KeyManagerType = "AWS" KeyManagerTypeCustomer KeyManagerType = "CUSTOMER" )
Enum values for KeyManagerType
type KeyMetadata ¶
type KeyMetadata struct { // Specifies whether the CMK's key material expires. This value is present only // when Origin is EXTERNAL, otherwise this value is omitted. ExpirationModel ExpirationModelType // The globally unique identifier for the CMK. // // This member is required. KeyId *string // The date and time when the CMK was created. CreationDate *time.Time // The cluster ID of the AWS CloudHSM cluster that contains the key material for // the CMK. When you create a CMK in a custom key store // (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html), // AWS KMS creates the key material for the CMK in the associated AWS CloudHSM // cluster. This value is present only when the CMK is created in a custom key // store. CloudHsmClusterId *string // The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key Management // Service (AWS KMS) // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms) // in the Example ARNs section of the AWS General Reference. Arn *string // The manager of the CMK. CMKs in your AWS account are either customer managed or // AWS managed. For more information about the difference, see Customer Master Keys // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys) // in the AWS Key Management Service Developer Guide. KeyManager KeyManagerType // The current status of the CMK. For more information about how key state affects // the use of a CMK, see Key state: Effect on your CMK // (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the // AWS Key Management Service Developer Guide. KeyState KeyState // The cryptographic operations // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) // for which you can use the CMK. KeyUsage KeyUsageType // A unique identifier for the custom key store // (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) // that contains the CMK. This value is present only when the CMK is created in a // custom key store. CustomKeyStoreId *string // The twelve-digit account ID of the AWS account that owns the CMK. AWSAccountId *string // The description of the CMK. Description *string // The encryption algorithms that the CMK supports. You cannot use the CMK with // other encryption algorithms within AWS KMS. This field appears only when the // KeyUsage of the CMK is ENCRYPT_DECRYPT. EncryptionAlgorithms []EncryptionAlgorithmSpec // The time at which the imported key material expires. When the key material // expires, AWS KMS deletes the key material and the CMK becomes unusable. This // value is present only for CMKs whose Origin is EXTERNAL and whose // ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this value is omitted. ValidTo *time.Time // Specifies whether the CMK is enabled. When KeyState is Enabled this value is // true, otherwise it is false. Enabled *bool // The signing algorithms that the CMK supports. You cannot use the CMK with other // signing algorithms within AWS KMS. This field appears only when the KeyUsage of // the CMK is SIGN_VERIFY. SigningAlgorithms []SigningAlgorithmSpec // Describes the type of key material in the CMK. CustomerMasterKeySpec CustomerMasterKeySpec // The source of the CMK's key material. When this value is AWS_KMS, AWS KMS // created the key material. When this value is EXTERNAL, the key material was // imported from your existing key management infrastructure or the CMK lacks key // material. When this value is AWS_CLOUDHSM, the key material was created in the // AWS CloudHSM cluster associated with a custom key store. Origin OriginType // The date and time after which AWS KMS deletes the CMK. This value is present // only when KeyState is PendingDeletion. DeletionDate *time.Time }
Contains metadata about a customer master key (CMK). This data type is used as a response element for the CreateKey () and DescribeKey () operations.
type KeyState ¶
type KeyState string
const ( KeyStateEnabled KeyState = "Enabled" KeyStateDisabled KeyState = "Disabled" KeyStatePendingdeletion KeyState = "PendingDeletion" KeyStatePendingimport KeyState = "PendingImport" KeyState = "Unavailable" )
Enum values for KeyState
type KeyUnavailableException ¶
type KeyUnavailableException struct { string }*
The request was rejected because the specified CMK was not available. You can retry the request.
func (*KeyUnavailableException) Error ¶
func (e *KeyUnavailableException) Error() string
func (*KeyUnavailableException) ErrorCode ¶
func (e *KeyUnavailableException) ErrorCode() string
func (*KeyUnavailableException) ErrorFault ¶
func (e *KeyUnavailableException) ErrorFault() smithy.ErrorFault
func (*KeyUnavailableException) ErrorMessage ¶
func (e *KeyUnavailableException) ErrorMessage() string
type KeyUsageType ¶
type KeyUsageType string
const ( KeyUsageTypeSign_verify KeyUsageType = "SIGN_VERIFY" KeyUsageTypeEncrypt_decrypt KeyUsageType = "ENCRYPT_DECRYPT" )
Enum values for KeyUsageType
type LimitExceededException ¶
type LimitExceededException struct { Message *string }
The request was rejected because a quota was exceeded. For more information, see Quotas (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) in the AWS Key Management Service Developer Guide.
func (*LimitExceededException) Error ¶
func (e *LimitExceededException) Error() string
func (*LimitExceededException) ErrorCode ¶
func (e *LimitExceededException) ErrorCode() string
func (*LimitExceededException) ErrorFault ¶
func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
func (*LimitExceededException) ErrorMessage ¶
func (e *LimitExceededException) ErrorMessage() string
type MalformedPolicyDocumentException ¶
type MalformedPolicyDocumentException struct { Message *string }
The request was rejected because the specified policy is not syntactically or semantically correct.
func (*MalformedPolicyDocumentException) Error ¶
func (e *MalformedPolicyDocumentException) Error() string
func (*MalformedPolicyDocumentException) ErrorCode ¶
func (e *MalformedPolicyDocumentException) ErrorCode() string
func (*MalformedPolicyDocumentException) ErrorFault ¶
func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault
func (*MalformedPolicyDocumentException) ErrorMessage ¶
func (e *MalformedPolicyDocumentException) ErrorMessage() string
type MessageType ¶
type MessageType string
const ( MessageTypeRaw MessageType = "RAW" MessageTypeDigest MessageType = "DIGEST" )
Enum values for MessageType
type NotFoundException ¶
type NotFoundException struct { Message *string }
The request was rejected because the specified entity or resource could not be found.
func (*NotFoundException) Error ¶
func (e *NotFoundException) Error() string
func (*NotFoundException) ErrorCode ¶
func (e *NotFoundException) ErrorCode() string
func (*NotFoundException) ErrorFault ¶
func (e *NotFoundException) ErrorFault() smithy.ErrorFault
func (*NotFoundException) ErrorMessage ¶
func (e *NotFoundException) ErrorMessage() string
type OriginType ¶
type OriginType string
const ( OriginTypeAws_kms OriginType = "AWS_KMS" OriginTypeExternal OriginType = "EXTERNAL" OriginTypeAws_cloudhsm OriginType = "AWS_CLOUDHSM" )
Enum values for OriginType
type SigningAlgorithmSpec ¶
type SigningAlgorithmSpec string
const ( SigningAlgorithmSpecRsassa_pss_sha_256 SigningAlgorithmSpec = "RSASSA_PSS_SHA_256" SigningAlgorithmSpecRsassa_pss_sha_384 SigningAlgorithmSpec = "RSASSA_PSS_SHA_384" SigningAlgorithmSpecRsassa_pss_sha_512 SigningAlgorithmSpec = "RSASSA_PSS_SHA_512" SigningAlgorithmSpecRsassa_pkcs1_v1_5_sha_256 SigningAlgorithmSpec = "RSASSA_PKCS1_V1_5_SHA_256" SigningAlgorithmSpecRsassa_pkcs1_v1_5_sha_384 SigningAlgorithmSpec = "RSASSA_PKCS1_V1_5_SHA_384" SigningAlgorithmSpecRsassa_pkcs1_v1_5_sha_512 SigningAlgorithmSpec = "RSASSA_PKCS1_V1_5_SHA_512" SigningAlgorithmSpecEcdsa_sha_256 SigningAlgorithmSpec = "ECDSA_SHA_256" SigningAlgorithmSpecEcdsa_sha_384 SigningAlgorithmSpec = "ECDSA_SHA_384" SigningAlgorithmSpecEcdsa_sha_512 SigningAlgorithmSpec = "ECDSA_SHA_512" )
Enum values for SigningAlgorithmSpec
type Tag ¶
type Tag struct { // The key of the tag. // // This member is required. TagKey *string // The value of the tag. // // This member is required. TagValue *string }
A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings. For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) in the AWS Billing and Cost Management User Guide.
type TagException ¶
type TagException struct { Message *string }
The request was rejected because one or more tags are not valid.
func (*TagException) Error ¶
func (e *TagException) Error() string
func (*TagException) ErrorCode ¶
func (e *TagException) ErrorCode() string
func (*TagException) ErrorFault ¶
func (e *TagException) ErrorFault() smithy.ErrorFault
func (*TagException) ErrorMessage ¶
func (e *TagException) ErrorMessage() string
type UnsupportedOperationException ¶
type UnsupportedOperationException struct { Message *string }
The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
func (*UnsupportedOperationException) Error ¶
func (e *UnsupportedOperationException) Error() string
func (*UnsupportedOperationException) ErrorCode ¶
func (e *UnsupportedOperationException) ErrorCode() string
func (*UnsupportedOperationException) ErrorFault ¶
func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault
func (*UnsupportedOperationException) ErrorMessage ¶
func (e *UnsupportedOperationException) ErrorMessage() string
type WrappingKeySpec ¶
type WrappingKeySpec string
const ( WrappingKeySpecRsa_2048 WrappingKeySpec = "RSA_2048" )
Enum values for WrappingKeySpec
Source Files ¶
- Version
- v0.26.0
- Published
- Oct 1, 2020
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 7 hours ago –
Tools for package owners.