Package: types
Constants
-
const AlgorithmSpecRsaesPkcs1V15 AlgorithmSpec = readonly
-
Value:
"RSAES_PKCS1_V1_5" -
const AlgorithmSpecRsaesOaepSha1 AlgorithmSpec = readonly
-
Value:
"RSAES_OAEP_SHA_1" -
const AlgorithmSpecRsaesOaepSha256 AlgorithmSpec = readonly
-
Value:
"RSAES_OAEP_SHA_256" -
const AlgorithmSpecRsaAesKeyWrapSha1 AlgorithmSpec = readonly
-
Value:
"RSA_AES_KEY_WRAP_SHA_1" -
const AlgorithmSpecRsaAesKeyWrapSha256 AlgorithmSpec = readonly
-
Value:
"RSA_AES_KEY_WRAP_SHA_256" -
const AlgorithmSpecSm2pke AlgorithmSpec = readonly
-
Value:
"SM2PKE" -
const ConnectionErrorCodeTypeInvalidCredentials ConnectionErrorCodeType = readonly
-
Value:
"INVALID_CREDENTIALS" -
const ConnectionErrorCodeTypeClusterNotFound ConnectionErrorCodeType = readonly
-
Value:
"CLUSTER_NOT_FOUND" -
const ConnectionErrorCodeTypeNetworkErrors ConnectionErrorCodeType = readonly
-
Value:
"NETWORK_ERRORS" -
const ConnectionErrorCodeTypeInternalError ConnectionErrorCodeType = readonly
-
Value:
"INTERNAL_ERROR" -
const ConnectionErrorCodeTypeInsufficientCloudhsmHsms ConnectionErrorCodeType = readonly
-
Value:
"INSUFFICIENT_CLOUDHSM_HSMS" -
const ConnectionErrorCodeTypeUserLockedOut ConnectionErrorCodeType = readonly
-
Value:
"USER_LOCKED_OUT" -
const ConnectionErrorCodeTypeUserNotFound ConnectionErrorCodeType = readonly
-
Value:
"USER_NOT_FOUND" -
const ConnectionErrorCodeTypeUserLoggedIn ConnectionErrorCodeType = readonly
-
Value:
"USER_LOGGED_IN" -
const ConnectionErrorCodeTypeSubnetNotFound ConnectionErrorCodeType = readonly
-
Value:
"SUBNET_NOT_FOUND" -
const ConnectionErrorCodeTypeInsufficientFreeAddressesInSubnet ConnectionErrorCodeType = readonly
-
Value:
"INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET" -
const ConnectionErrorCodeTypeXksProxyAccessDenied ConnectionErrorCodeType = readonly
-
Value:
"XKS_PROXY_ACCESS_DENIED" -
const ConnectionErrorCodeTypeXksProxyNotReachable ConnectionErrorCodeType = readonly
-
Value:
"XKS_PROXY_NOT_REACHABLE" -
const ConnectionErrorCodeTypeXksVpcEndpointServiceNotFound ConnectionErrorCodeType = readonly
-
Value:
"XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND" -
const ConnectionErrorCodeTypeXksProxyInvalidResponse ConnectionErrorCodeType = readonly
-
Value:
"XKS_PROXY_INVALID_RESPONSE" -
const ConnectionErrorCodeTypeXksProxyInvalidConfiguration ConnectionErrorCodeType = readonly
-
Value:
"XKS_PROXY_INVALID_CONFIGURATION" -
const ConnectionErrorCodeTypeXksVpcEndpointServiceInvalidConfiguration ConnectionErrorCodeType = readonly
-
Value:
"XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION" -
const ConnectionErrorCodeTypeXksProxyTimedOut ConnectionErrorCodeType = readonly
-
Value:
"XKS_PROXY_TIMED_OUT" -
const ConnectionErrorCodeTypeXksProxyInvalidTlsConfiguration ConnectionErrorCodeType = readonly
-
Value:
"XKS_PROXY_INVALID_TLS_CONFIGURATION" -
const ConnectionStateTypeConnected ConnectionStateType = readonly
-
Value:
"CONNECTED" -
const ConnectionStateTypeConnecting ConnectionStateType = readonly
-
Value:
"CONNECTING" -
const ConnectionStateTypeFailed ConnectionStateType = readonly
-
Value:
"FAILED" -
const ConnectionStateTypeDisconnected ConnectionStateType = readonly
-
Value:
"DISCONNECTED" -
const ConnectionStateTypeDisconnecting ConnectionStateType = readonly
-
Value:
"DISCONNECTING" -
const CustomerMasterKeySpecRsa2048 CustomerMasterKeySpec = readonly
-
Value:
"RSA_2048" -
const CustomerMasterKeySpecRsa3072 CustomerMasterKeySpec = readonly
-
Value:
"RSA_3072" -
const CustomerMasterKeySpecRsa4096 CustomerMasterKeySpec = readonly
-
Value:
"RSA_4096" -
const CustomerMasterKeySpecEccNistP256 CustomerMasterKeySpec = readonly
-
Value:
"ECC_NIST_P256" -
const CustomerMasterKeySpecEccNistP384 CustomerMasterKeySpec = readonly
-
Value:
"ECC_NIST_P384" -
const CustomerMasterKeySpecEccNistP521 CustomerMasterKeySpec = readonly
-
Value:
"ECC_NIST_P521" -
const CustomerMasterKeySpecEccSecgP256k1 CustomerMasterKeySpec = readonly
-
Value:
"ECC_SECG_P256K1" -
const CustomerMasterKeySpecSymmetricDefault CustomerMasterKeySpec = readonly
-
Value:
"SYMMETRIC_DEFAULT" -
const CustomerMasterKeySpecHmac224 CustomerMasterKeySpec = readonly
-
Value:
"HMAC_224" -
const CustomerMasterKeySpecHmac256 CustomerMasterKeySpec = readonly
-
Value:
"HMAC_256" -
const CustomerMasterKeySpecHmac384 CustomerMasterKeySpec = readonly
-
Value:
"HMAC_384" -
const CustomerMasterKeySpecHmac512 CustomerMasterKeySpec = readonly
-
Value:
"HMAC_512" -
const CustomerMasterKeySpecSm2 CustomerMasterKeySpec = readonly
-
Value:
"SM2" -
const CustomKeyStoreTypeAwsCloudhsm CustomKeyStoreType = readonly
-
Value:
"AWS_CLOUDHSM" -
const CustomKeyStoreTypeExternalKeyStore CustomKeyStoreType = readonly
-
Value:
"EXTERNAL_KEY_STORE" -
const DataKeyPairSpecRsa2048 DataKeyPairSpec = readonly
-
Value:
"RSA_2048" -
const DataKeyPairSpecRsa3072 DataKeyPairSpec = readonly
-
Value:
"RSA_3072" -
const DataKeyPairSpecRsa4096 DataKeyPairSpec = readonly
-
Value:
"RSA_4096" -
const DataKeyPairSpecEccNistP256 DataKeyPairSpec = readonly
-
Value:
"ECC_NIST_P256" -
const DataKeyPairSpecEccNistP384 DataKeyPairSpec = readonly
-
Value:
"ECC_NIST_P384" -
const DataKeyPairSpecEccNistP521 DataKeyPairSpec = readonly
-
Value:
"ECC_NIST_P521" -
const DataKeyPairSpecEccSecgP256k1 DataKeyPairSpec = readonly
-
Value:
"ECC_SECG_P256K1" -
const DataKeyPairSpecSm2 DataKeyPairSpec = readonly
-
Value:
"SM2" -
const DataKeySpecAes256 DataKeySpec = readonly
-
Value:
"AES_256" -
const DataKeySpecAes128 DataKeySpec = readonly
-
Value:
"AES_128" -
const EncryptionAlgorithmSpecSymmetricDefault EncryptionAlgorithmSpec = readonly
-
Value:
"SYMMETRIC_DEFAULT" -
const EncryptionAlgorithmSpecRsaesOaepSha1 EncryptionAlgorithmSpec = readonly
-
Value:
"RSAES_OAEP_SHA_1" -
const EncryptionAlgorithmSpecRsaesOaepSha256 EncryptionAlgorithmSpec = readonly
-
Value:
"RSAES_OAEP_SHA_256" -
const EncryptionAlgorithmSpecSm2pke EncryptionAlgorithmSpec = readonly
-
Value:
"SM2PKE" -
const ExpirationModelTypeKeyMaterialExpires ExpirationModelType = readonly
-
Value:
"KEY_MATERIAL_EXPIRES" -
const ExpirationModelTypeKeyMaterialDoesNotExpire ExpirationModelType = readonly
-
Value:
"KEY_MATERIAL_DOES_NOT_EXPIRE" -
const GrantOperationDecrypt GrantOperation = readonly
-
Value:
"Decrypt" -
const GrantOperationEncrypt GrantOperation = readonly
-
Value:
"Encrypt" -
const GrantOperationGenerateDataKey GrantOperation = readonly
-
Value:
"GenerateDataKey" -
const GrantOperationGenerateDataKeyWithoutPlaintext GrantOperation = readonly
-
Value:
"GenerateDataKeyWithoutPlaintext" -
const GrantOperationReEncryptFrom GrantOperation = readonly
-
Value:
"ReEncryptFrom" -
const GrantOperationReEncryptTo GrantOperation = readonly
-
Value:
"ReEncryptTo" -
const GrantOperationSign GrantOperation = readonly
-
Value:
"Sign" -
const GrantOperationVerify GrantOperation = readonly
-
Value:
"Verify" -
const GrantOperationGetPublicKey GrantOperation = readonly
-
Value:
"GetPublicKey" -
const GrantOperationCreateGrant GrantOperation = readonly
-
Value:
"CreateGrant" -
const GrantOperationRetireGrant GrantOperation = readonly
-
Value:
"RetireGrant" -
const GrantOperationDescribeKey GrantOperation = readonly
-
Value:
"DescribeKey" -
const GrantOperationGenerateDataKeyPair GrantOperation = readonly
-
Value:
"GenerateDataKeyPair" -
const GrantOperationGenerateDataKeyPairWithoutPlaintext GrantOperation = readonly
-
Value:
"GenerateDataKeyPairWithoutPlaintext" -
const GrantOperationGenerateMac GrantOperation = readonly
-
Value:
"GenerateMac" -
const GrantOperationVerifyMac GrantOperation = readonly
-
Value:
"VerifyMac" -
Value:
"DeriveSharedSecret" -
const KeyAgreementAlgorithmSpecEcdh KeyAgreementAlgorithmSpec = readonly
-
Value:
"ECDH" -
const KeyEncryptionMechanismRsaesOaepSha256 KeyEncryptionMechanism = readonly
-
Value:
"RSAES_OAEP_SHA_256" -
const KeyManagerTypeAws KeyManagerType = readonly
-
Value:
"AWS" -
const KeyManagerTypeCustomer KeyManagerType = readonly
-
Value:
"CUSTOMER" -
const KeySpecRsa2048 KeySpec = readonly
-
Value:
"RSA_2048" -
const KeySpecRsa3072 KeySpec = readonly
-
Value:
"RSA_3072" -
const KeySpecRsa4096 KeySpec = readonly
-
Value:
"RSA_4096" -
const KeySpecEccNistP256 KeySpec = readonly
-
Value:
"ECC_NIST_P256" -
const KeySpecEccNistP384 KeySpec = readonly
-
Value:
"ECC_NIST_P384" -
const KeySpecEccNistP521 KeySpec = readonly
-
Value:
"ECC_NIST_P521" -
const KeySpecEccSecgP256k1 KeySpec = readonly
-
Value:
"ECC_SECG_P256K1" -
const KeySpecSymmetricDefault KeySpec = readonly
-
Value:
"SYMMETRIC_DEFAULT" -
const KeySpecHmac224 KeySpec = readonly
-
Value:
"HMAC_224" -
const KeySpecHmac256 KeySpec = readonly
-
Value:
"HMAC_256" -
const KeySpecHmac384 KeySpec = readonly
-
Value:
"HMAC_384" -
const KeySpecHmac512 KeySpec = readonly
-
Value:
"HMAC_512" -
const KeySpecSm2 KeySpec = readonly
-
Value:
"SM2" -
const KeyStateCreating KeyState = readonly
-
Value:
"Creating" -
const KeyStateEnabled KeyState = readonly
-
Value:
"Enabled" -
const KeyStateDisabled KeyState = readonly
-
Value:
"Disabled" -
const KeyStatePendingDeletion KeyState = readonly
-
Value:
"PendingDeletion" -
const KeyStatePendingImport KeyState = readonly
-
Value:
"PendingImport" -
const KeyStatePendingReplicaDeletion KeyState = readonly
-
Value:
"PendingReplicaDeletion" -
Value:
"Unavailable" -
const KeyStateUpdating KeyState = readonly
-
Value:
"Updating" -
const KeyUsageTypeSignVerify KeyUsageType = readonly
-
Value:
"SIGN_VERIFY" -
const KeyUsageTypeEncryptDecrypt KeyUsageType = readonly
-
Value:
"ENCRYPT_DECRYPT" -
const KeyUsageTypeGenerateVerifyMac KeyUsageType = readonly
-
Value:
"GENERATE_VERIFY_MAC" -
const KeyUsageTypeKeyAgreement KeyUsageType = readonly
-
Value:
"KEY_AGREEMENT" -
const MacAlgorithmSpecHmacSha224 MacAlgorithmSpec = readonly
-
Value:
"HMAC_SHA_224" -
const MacAlgorithmSpecHmacSha256 MacAlgorithmSpec = readonly
-
Value:
"HMAC_SHA_256" -
const MacAlgorithmSpecHmacSha384 MacAlgorithmSpec = readonly
-
Value:
"HMAC_SHA_384" -
const MacAlgorithmSpecHmacSha512 MacAlgorithmSpec = readonly
-
Value:
"HMAC_SHA_512" -
const MessageTypeRaw MessageType = readonly
-
Value:
"RAW" -
const MessageTypeDigest MessageType = readonly
-
Value:
"DIGEST" -
const MultiRegionKeyTypePrimary MultiRegionKeyType = readonly
-
Value:
"PRIMARY" -
const MultiRegionKeyTypeReplica MultiRegionKeyType = readonly
-
Value:
"REPLICA" -
const OriginTypeAwsKms OriginType = readonly
-
Value:
"AWS_KMS" -
const OriginTypeExternal OriginType = readonly
-
Value:
"EXTERNAL" -
const OriginTypeAwsCloudhsm OriginType = readonly
-
Value:
"AWS_CLOUDHSM" -
const OriginTypeExternalKeyStore OriginType = readonly
-
Value:
"EXTERNAL_KEY_STORE" -
const RotationTypeAutomatic RotationType = readonly
-
Value:
"AUTOMATIC" -
const RotationTypeOnDemand RotationType = readonly
-
Value:
"ON_DEMAND" -
const SigningAlgorithmSpecRsassaPssSha256 SigningAlgorithmSpec = readonly
-
Value:
"RSASSA_PSS_SHA_256" -
const SigningAlgorithmSpecRsassaPssSha384 SigningAlgorithmSpec = readonly
-
Value:
"RSASSA_PSS_SHA_384" -
const SigningAlgorithmSpecRsassaPssSha512 SigningAlgorithmSpec = readonly
-
Value:
"RSASSA_PSS_SHA_512" -
const SigningAlgorithmSpecRsassaPkcs1V15Sha256 SigningAlgorithmSpec = readonly
-
Value:
"RSASSA_PKCS1_V1_5_SHA_256" -
const SigningAlgorithmSpecRsassaPkcs1V15Sha384 SigningAlgorithmSpec = readonly
-
Value:
"RSASSA_PKCS1_V1_5_SHA_384" -
const SigningAlgorithmSpecRsassaPkcs1V15Sha512 SigningAlgorithmSpec = readonly
-
Value:
"RSASSA_PKCS1_V1_5_SHA_512" -
const SigningAlgorithmSpecEcdsaSha256 SigningAlgorithmSpec = readonly
-
Value:
"ECDSA_SHA_256" -
const SigningAlgorithmSpecEcdsaSha384 SigningAlgorithmSpec = readonly
-
Value:
"ECDSA_SHA_384" -
const SigningAlgorithmSpecEcdsaSha512 SigningAlgorithmSpec = readonly
-
Value:
"ECDSA_SHA_512" -
const SigningAlgorithmSpecSm2dsa SigningAlgorithmSpec = readonly
-
Value:
"SM2DSA" -
const WrappingKeySpecRsa2048 WrappingKeySpec = readonly
-
Value:
"RSA_2048" -
const WrappingKeySpecRsa3072 WrappingKeySpec = readonly
-
Value:
"RSA_3072" -
const WrappingKeySpecRsa4096 WrappingKeySpec = readonly
-
Value:
"RSA_4096" -
const WrappingKeySpecSm2 WrappingKeySpec = readonly
-
Value:
"SM2" -
const XksProxyConnectivityTypePublicEndpoint XksProxyConnectivityType = readonly
-
Value:
"PUBLIC_ENDPOINT" -
const XksProxyConnectivityTypeVpcEndpointService XksProxyConnectivityType = readonly
-
Value:
"VPC_ENDPOINT_SERVICE"
Type Summary collapse
-
AliasListEntry
struct
Contains information about an alias.
-
AlreadyExistsException
struct
The request was rejected because it attempted to create a resource that already exists.
- CloudHsmClusterInUseException struct
- CloudHsmClusterInvalidConfigurationException struct
-
CloudHsmClusterNotActiveException
struct
The request was rejected because the CloudHSM cluster associated with the CloudHSM key store is not active.
- CloudHsmClusterNotFoundException struct
- CloudHsmClusterNotRelatedException struct
-
ConflictException
struct
The request was rejected because an automatic rotation of this key is currently in progress or scheduled to begin within the next 20 minutes.
- CustomKeyStoreHasCMKsException struct
- CustomKeyStoreInvalidStateException struct
-
CustomKeyStoreNameInUseException
struct
The request was rejected because the specified custom key store name is already assigned to another custom key store in the account.
- CustomKeyStoreNotFoundException struct
-
CustomKeyStoresListEntry
struct
Contains information about each custom key store in the custom key store list.
- DependencyTimeoutException struct
- DisabledException struct
- DryRunOperationException struct
- ExpiredImportTokenException struct
-
GrantConstraints
struct
Use this structure to allow [cryptographic operations] in the grant only when the operation request includes the specified [encryption context].
-
GrantListEntry
struct
Contains information about a grant.
- IncorrectKeyException struct
- IncorrectKeyMaterialException struct
- IncorrectTrustAnchorException struct
- InvalidAliasNameException struct
- InvalidArnException struct
- InvalidCiphertextException struct
- InvalidGrantIdException struct
- InvalidGrantTokenException struct
- InvalidImportTokenException struct
- InvalidKeyUsageException struct
- InvalidMarkerException struct
- KMSInternalException struct
- KMSInvalidMacException struct
- KMSInvalidSignatureException struct
- KMSInvalidStateException struct
-
KeyListEntry
struct
Contains information about each entry in the key list.
-
KeyMetadata
struct
Contains metadata about a KMS key.
- KeyUnavailableException struct
- LimitExceededException struct
- MalformedPolicyDocumentException struct
-
MultiRegionConfiguration
struct
Describes the configuration of this multi-Region key.
-
MultiRegionKey
struct
Describes the primary or replica key in a multi-Region key.
- NotFoundException struct
-
RecipientInfo
struct
Contains information about the party that receives the response from the API operation.
-
RotationsListEntry
struct
Contains information about completed key material rotations.
-
Tag
struct
A key-value pair.
- TagException struct
- UnsupportedOperationException struct
- XksKeyAlreadyInUseException struct
-
XksKeyConfigurationType
struct
Information about the [external key]that is associated with a KMS key in an external key store.
- XksKeyInvalidConfigurationException struct
-
XksKeyNotFoundException
struct
The request was rejected because the external key store proxy could not find the external key.
-
XksProxyAuthenticationCredentialType
struct
KMS uses the authentication credential to sign requests that it sends to the external key store proxy (XKS proxy) on your behalf.
-
XksProxyConfigurationType
struct
Detailed information about the external key store proxy (XKS proxy).
- XksProxyIncorrectAuthenticationCredentialException struct
-
XksProxyInvalidConfigurationException
struct
The request was rejected because the external key store proxy is not configured correctly.
-
XksProxyInvalidResponseException
struct
KMS cannot interpret the response it received from the external key store proxy.
- XksProxyUriEndpointInUseException struct
- XksProxyUriInUseException struct
- XksProxyUriUnreachableException struct
- XksProxyVpcEndpointServiceInUseException struct
-
XksProxyVpcEndpointServiceInvalidConfigurationException
struct
The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for an external key store.
-
XksProxyVpcEndpointServiceNotFoundException
struct
The request was rejected because KMS could not find the specified VPC endpoint service.
Type Details
AliasListEntry struct
Contains information about an alias.
CustomKeyStoresListEntry struct
Contains information about each custom key store in the custom key store list.
GrantConstraints struct
Use this structure to allow cryptographic operations in the grant only when the operation request includes the specified encryption context.
KMS applies the grant constraints only to cryptographic operations that support an encryption context, that is, all cryptographic operations with a symmetric KMS key. Grant constraints are not applied to operations that do not support an encryption context, such as cryptographic operations with asymmetric KMS keys and management operations, such as DescribeKeyor RetireGrant.
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 service/kms/types.GrantConstraintskms:EncryptionContext:[https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-context]in the Key Management Service Developer Guide .
GrantListEntry struct
Contains information about a grant.
KeyListEntry struct
Contains information about each entry in the key list.
KeyMetadata struct
Contains metadata about a KMS key.
This data type is used as a response element for the CreateKey, DescribeKey, and ReplicateKey operations.
MultiRegionConfiguration struct
Describes the configuration of this multi-Region key. This field appears only when the KMS key is a primary or replica of a multi-Region key.
For more information about any listed KMS key, use the DescribeKey operation.
MultiRegionKey struct
Describes the primary or replica key in a multi-Region key.
RecipientInfo struct
Contains information about the party that receives the response from the API operation.
This data type is designed to support Amazon Web Services Nitro Enclaves, which lets you create an isolated compute environment in Amazon EC2. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
RotationsListEntry struct
Contains information about completed key material rotations.
Tag struct
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.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the Amazon Web Services Billing and Cost Management User Guide.
XksKeyConfigurationType struct
Information about the key[https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key]that is associated with a KMS key in an external key store.
This element appears in a CreateKey or DescribeKey response only for a KMS key in an external key store.
The external key is a symmetric encryption key that is hosted by an external key manager outside of Amazon Web Services. When you use the KMS key in an external key store in a cryptographic operation, the cryptographic operation is performed in the external key manager using the specified external key. For more information, see key[https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key]in the Key Management Service Developer Guide.
XksProxyAuthenticationCredentialType struct
KMS uses the authentication credential to sign requests that it sends to the external key store proxy (XKS proxy) on your behalf. You establish these credentials on your external key store proxy and report them to KMS.
The XksProxyAuthenticationCredential includes two required elements.
XksProxyConfigurationType struct
Detailed information about the external key store proxy (XKS proxy). Your external key store proxy translates KMS requests into a format that your external key manager can understand. These fields appear in a DescribeCustomKeyStoresresponse only when the CustomKeyStoreType is EXTERNAL_KEY_STORE .