KMSClient.create_custom_key_store
rboto-kms==0.4.0 · Service index · Types
Model summary (excerpt): Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of...
Install and imports
from rboto import KMSClient
from rboto_kms.types import (
CreateCustomKeyStoreOutput,
CustomKeyStoreType,
XksProxyAuthenticationCredentialType,
XksProxyConnectivityType,
)
Signature
async def create_custom_key_store(
*,
custom_key_store_name: str,
cloud_hsm_cluster_id: str | None = None,
trust_anchor_certificate: str | None = None,
key_store_password: str | None = None,
custom_key_store_type: CustomKeyStoreType | None = None,
xks_proxy_uri_endpoint: str | None = None,
xks_proxy_uri_path: str | None = None,
xks_proxy_vpc_endpoint_service_name: str | None = None,
xks_proxy_vpc_endpoint_service_owner: str | None = None,
xks_proxy_authentication_credential: XksProxyAuthenticationCredentialType | None = None,
xks_proxy_connectivity: XksProxyConnectivityType | None = None,
) -> CreateCustomKeyStoreOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
custom_key_store_name |
Yes | Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account and Region. This parameter is required for all custom key stores. Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output. |
cloud_hsm_cluster_id |
No | Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key stores with CustomKeyStoreType of AWS_CLOUDHSM . Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key store. To find the cluster ID, use the DescribeClusters operation. |
trust_anchor_certificate |
No | Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType of AWS_CLOUDHSM . Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the customerCA.crt file that you created when you initialized the cluster . |
key_store_password |
No | Specifies the kmsuser password for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType of AWS_CLOUDHSM . Enter the password of the kmsuser crypto user (CU) account in the specified CloudHSM cluster. KMS logs into the cluster as this user to manage key material on your behalf. The password must be a string of 7 to 32 characters. Its value is case... |
custom_key_store_type |
No | Specifies the type of custom key store. The default value is AWS_CLOUDHSM . For a custom key store backed by an CloudHSM cluster, omit the parameter or enter AWS_CLOUDHSM . For a custom key store backed by an external key manager outside of Amazon Web Services, enter EXTERNAL_KEY_STORE . You cannot change this property after the key store is created. |
xks_proxy_uri_endpoint |
No | Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This parameter is required for custom key stores with a CustomKeyStoreType of EXTERNAL_KEY_STORE . The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the XksProxyUriEndpoint value. For external key stores with XksProxyConnectivity value of VPC_ENDPOINT_SERVICE ,... |
xks_proxy_uri_path |
No | Specifies the base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. This parameter is required for all custom key stores with a CustomKeyStoreType of EXTERNAL_KEY_STORE . The value must start with / and must end with /kms/xks/v1 where v1 represents the version of the KMS external key store proxy API. This path can... |
xks_proxy_vpc_endpoint_service_name |
No | Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). This parameter is required when the value of CustomKeyStoreType is EXTERNAL_KEY_STORE and the value of XksProxyConnectivity is VPC_ENDPOINT_SERVICE . The Amazon VPC endpoint service must fulfill all requirements for use with an external key... |
xks_proxy_vpc_endpoint_service_owner |
No | Specifies the Amazon Web Services account ID that owns the Amazon VPC service endpoint for the interface that is used to communicate with your external key store proxy (XKS proxy). This parameter is optional. If not provided, the Amazon Web Services account ID calling the action will be used. |
xks_proxy_authentication_credential |
No | Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is required for all custom key stores with a CustomKeyStoreType of EXTERNAL_KEY_STORE . The XksProxyAuthenticationCredential has two required elements: RawSecretAccessKey , a secret key, and AccessKeyId , a unique identifier for the RawSecretAccessKey . For character requirements, see... |
xks_proxy_connectivity |
No | Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key stores with a CustomKeyStoreType of EXTERNAL_KEY_STORE . If the external key store proxy uses a public endpoint, specify PUBLIC_ENDPOINT . If the external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify VPC_ENDPOINT_SERVICE . For help making this... |
Output
CreateCustomKeyStoreOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
custom_key_store_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreateCustomKeyStoreOutput, CustomKeyStoreType, XksProxyAuthenticationCredentialType, XksProxyConnectivityType
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_kms.exceptions:
CloudHsmClusterInUseError, CloudHsmClusterInvalidConfigurationError, CloudHsmClusterNotActiveError, CloudHsmClusterNotFoundError, CustomKeyStoreNameInUseError, IncorrectTrustAnchorError, KMSInternalError, LimitExceededError, XksProxyIncorrectAuthenticationCredentialError, XksProxyInvalidConfigurationError, XksProxyInvalidResponseError, XksProxyUriEndpointInUseError, XksProxyUriInUseError, XksProxyUriUnreachableError, XksProxyVpcEndpointServiceInUseError, XksProxyVpcEndpointServiceInvalidConfigurationError, XksProxyVpcEndpointServiceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.