libZSservicesZSamazonka-kmsZSamazonka-kms
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.KMS.CreateCustomKeyStore

Description

Creates a custom key store that is associated with an CloudHSM cluster that you own and manage.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

Before you create the custom key store, you must assemble the required elements, including an CloudHSM cluster that fulfills the requirements for a custom key store. For details about the required elements, see Assemble the Prerequisites in the Key Management Service Developer Guide.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect the new key store to its CloudHSM cluster. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a Custom Key Store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

  • ConnectCustomKeyStore
  • DeleteCustomKeyStore
  • DescribeCustomKeyStores
  • DisconnectCustomKeyStore
  • UpdateCustomKeyStore
Synopsis

Creating a Request

data CreateCustomKeyStore Source #

See: newCreateCustomKeyStore smart constructor.

Constructors

CreateCustomKeyStore' 

Fields

  • customKeyStoreName :: Text

    Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account.

  • cloudHsmClusterId :: Text

    Identifies the CloudHSM cluster for the custom key store. 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.

  • trustAnchorCertificate :: Text

    Enter the content of the trust anchor certificate for the cluster. This is the content of the customerCA.crt file that you created when you initialized the cluster.

  • keyStorePassword :: Sensitive Text

    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 sensitive.

    This parameter tells KMS the kmsuser account password; it does not change the password in the CloudHSM cluster.

Instances

Instances details
Eq CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Show CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Generic CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Associated Types

type Rep CreateCustomKeyStore :: Type -> Type #

NFData CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Methods

rnf :: CreateCustomKeyStore -> () #

Hashable CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

ToJSON CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

AWSRequest CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Associated Types

type AWSResponse CreateCustomKeyStore #

ToHeaders CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

ToPath CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

ToQuery CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

type Rep CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

type Rep CreateCustomKeyStore = D1 ('MetaData "CreateCustomKeyStore" "Amazonka.KMS.CreateCustomKeyStore" "libZSservicesZSamazonka-kmsZSamazonka-kms" 'False) (C1 ('MetaCons "CreateCustomKeyStore'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "customKeyStoreName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "cloudHsmClusterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "trustAnchorCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "keyStorePassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse CreateCustomKeyStore Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

newCreateCustomKeyStore Source #

Create a value of CreateCustomKeyStore with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:customKeyStoreName:CreateCustomKeyStore', createCustomKeyStore_customKeyStoreName - Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account.

$sel:cloudHsmClusterId:CreateCustomKeyStore', createCustomKeyStore_cloudHsmClusterId - Identifies the CloudHSM cluster for the custom key store. 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.

$sel:trustAnchorCertificate:CreateCustomKeyStore', createCustomKeyStore_trustAnchorCertificate - Enter the content of the trust anchor certificate for the cluster. This is the content of the customerCA.crt file that you created when you initialized the cluster.

$sel:keyStorePassword:CreateCustomKeyStore', createCustomKeyStore_keyStorePassword - 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 sensitive.

This parameter tells KMS the kmsuser account password; it does not change the password in the CloudHSM cluster.

Request Lenses

createCustomKeyStore_customKeyStoreName :: Lens' CreateCustomKeyStore Text Source #

Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account.

createCustomKeyStore_cloudHsmClusterId :: Lens' CreateCustomKeyStore Text Source #

Identifies the CloudHSM cluster for the custom key store. 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.

createCustomKeyStore_trustAnchorCertificate :: Lens' CreateCustomKeyStore Text Source #

Enter the content of the trust anchor certificate for the cluster. This is the content of the customerCA.crt file that you created when you initialized the cluster.

createCustomKeyStore_keyStorePassword :: Lens' CreateCustomKeyStore Text Source #

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 sensitive.

This parameter tells KMS the kmsuser account password; it does not change the password in the CloudHSM cluster.

Destructuring the Response

data CreateCustomKeyStoreResponse Source #

See: newCreateCustomKeyStoreResponse smart constructor.

Constructors

CreateCustomKeyStoreResponse' 

Fields

Instances

Instances details
Eq CreateCustomKeyStoreResponse Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Read CreateCustomKeyStoreResponse Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Show CreateCustomKeyStoreResponse Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Generic CreateCustomKeyStoreResponse Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

Associated Types

type Rep CreateCustomKeyStoreResponse :: Type -> Type #

NFData CreateCustomKeyStoreResponse Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

type Rep CreateCustomKeyStoreResponse Source # 
Instance details

Defined in Amazonka.KMS.CreateCustomKeyStore

type Rep CreateCustomKeyStoreResponse = D1 ('MetaData "CreateCustomKeyStoreResponse" "Amazonka.KMS.CreateCustomKeyStore" "libZSservicesZSamazonka-kmsZSamazonka-kms" 'False) (C1 ('MetaCons "CreateCustomKeyStoreResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customKeyStoreId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCustomKeyStoreResponse Source #

Create a value of CreateCustomKeyStoreResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:customKeyStoreId:CreateCustomKeyStoreResponse', createCustomKeyStoreResponse_customKeyStoreId - A unique identifier for the new custom key store.

$sel:httpStatus:CreateCustomKeyStoreResponse', createCustomKeyStoreResponse_httpStatus - The response's http status code.

Response Lenses