import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS KMS (Key Management) Custom Key Store. * * ## Example Usage * * ### CloudHSM * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * import * as std from "@pulumi/std"; * * const test = new aws.kms.CustomKeyStore("test", { * cloudHsmClusterId: cloudHsmClusterId, * customKeyStoreName: "kms-custom-key-store-test", * keyStorePassword: "noplaintextpasswords1", * trustAnchorCertificate: std.file({ * input: "anchor-certificate.crt", * }).then(invoke => invoke.result), * }); * ``` * * ### External Key Store (VPC) * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.kms.CustomKeyStore("example", { * xksProxyAuthenticationCredential: { * accessKeyId: ephemeralAccessKeyId, * rawSecretAccessKey: ephemeralSecretAccessKey, * }, * customKeyStoreName: "example-vpc-xks", * customKeyStoreType: "EXTERNAL_KEY_STORE", * xksProxyConnectivity: "VPC_ENDPOINT_SERVICE", * xksProxyUriEndpoint: "https://myproxy-private.xks.example.com", * xksProxyUriPath: "/kms/xks/v1", * xksProxyVpcEndpointServiceName: "com.amazonaws.vpce.us-east-1.vpce-svc-example", * }); * ``` * * ### External Key Store (Public) * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.kms.CustomKeyStore("example", { * xksProxyAuthenticationCredential: { * accessKeyId: ephemeralAccessKeyId, * rawSecretAccessKey: ephemeralSecretAccessKey, * }, * customKeyStoreName: "example-public-xks", * customKeyStoreType: "EXTERNAL_KEY_STORE", * xksProxyConnectivity: "PUBLIC_ENDPOINT", * xksProxyUriEndpoint: "https://myproxy.xks.example.com", * xksProxyUriPath: "/kms/xks/v1", * }); * ``` * * ## Import * * Using `pulumi import`, import KMS (Key Management) Custom Key Store using the `id`. For example: * * ```sh * $ pulumi import aws:kms/customKeyStore:CustomKeyStore example cks-5ebd4ef395a96288e * ``` */ export declare class CustomKeyStore extends pulumi.CustomResource { /** * Get an existing CustomKeyStore resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CustomKeyStoreState, opts?: pulumi.CustomResourceOptions): CustomKeyStore; /** * Check whether an existing CustomKeyStore resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: CustomKeyStoreState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of CustomKeyStore. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CustomKeyStore; /** * Cluster ID of CloudHSM. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ readonly cloudHsmClusterId: pulumi.Output; /** * Unique name for Custom Key Store. * * The following arguments are optional: */ readonly customKeyStoreName: pulumi.Output; /** * Type of key store to create. Valid values are `AWS_CLOUDHSM` and `EXTERNAL_KEY_STORE`. If omitted, AWS will default the value to `AWS_CLOUDHSM`. */ readonly customKeyStoreType: pulumi.Output; /** * Password for the `kmsuser` of an AWS CloudHSM key store. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ readonly keyStorePassword: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Certificate for an AWS CloudHSM key store. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ readonly trustAnchorCertificate: pulumi.Output; /** * Authentication credential for the external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. See `xksProxyAuthenticationCredential` block below. */ readonly xksProxyAuthenticationCredential: pulumi.Output; /** * How AWS KMS communicates with the external key store proxy. Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ readonly xksProxyConnectivity: pulumi.Output; /** * Endpoint that AWS KMS uses to send requests to the external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ readonly xksProxyUriEndpoint: pulumi.Output; /** * Base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ readonly xksProxyUriPath: pulumi.Output; /** * Name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE` and required when `xksProxyConnectivity` is `VPC_ENDPOINT_SERVICE`. */ readonly xksProxyVpcEndpointServiceName: pulumi.Output; /** * Create a CustomKeyStore resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CustomKeyStoreArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CustomKeyStore resources. */ export interface CustomKeyStoreState { /** * Cluster ID of CloudHSM. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ cloudHsmClusterId?: pulumi.Input; /** * Unique name for Custom Key Store. * * The following arguments are optional: */ customKeyStoreName?: pulumi.Input; /** * Type of key store to create. Valid values are `AWS_CLOUDHSM` and `EXTERNAL_KEY_STORE`. If omitted, AWS will default the value to `AWS_CLOUDHSM`. */ customKeyStoreType?: pulumi.Input; /** * Password for the `kmsuser` of an AWS CloudHSM key store. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ keyStorePassword?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Certificate for an AWS CloudHSM key store. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ trustAnchorCertificate?: pulumi.Input; /** * Authentication credential for the external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. See `xksProxyAuthenticationCredential` block below. */ xksProxyAuthenticationCredential?: pulumi.Input; /** * How AWS KMS communicates with the external key store proxy. Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ xksProxyConnectivity?: pulumi.Input; /** * Endpoint that AWS KMS uses to send requests to the external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ xksProxyUriEndpoint?: pulumi.Input; /** * Base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ xksProxyUriPath?: pulumi.Input; /** * Name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE` and required when `xksProxyConnectivity` is `VPC_ENDPOINT_SERVICE`. */ xksProxyVpcEndpointServiceName?: pulumi.Input; } /** * The set of arguments for constructing a CustomKeyStore resource. */ export interface CustomKeyStoreArgs { /** * Cluster ID of CloudHSM. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ cloudHsmClusterId?: pulumi.Input; /** * Unique name for Custom Key Store. * * The following arguments are optional: */ customKeyStoreName: pulumi.Input; /** * Type of key store to create. Valid values are `AWS_CLOUDHSM` and `EXTERNAL_KEY_STORE`. If omitted, AWS will default the value to `AWS_CLOUDHSM`. */ customKeyStoreType?: pulumi.Input; /** * Password for the `kmsuser` of an AWS CloudHSM key store. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ keyStorePassword?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Certificate for an AWS CloudHSM key store. Applies when `customKeyStoreType` is `AWS_CLOUDHSM`. */ trustAnchorCertificate?: pulumi.Input; /** * Authentication credential for the external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. See `xksProxyAuthenticationCredential` block below. */ xksProxyAuthenticationCredential?: pulumi.Input; /** * How AWS KMS communicates with the external key store proxy. Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ xksProxyConnectivity?: pulumi.Input; /** * Endpoint that AWS KMS uses to send requests to the external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ xksProxyUriEndpoint?: pulumi.Input; /** * Base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE`. */ xksProxyUriPath?: pulumi.Input; /** * Name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). Applies when `customKeyStoreType` is `EXTERNAL_KEY_STORE` and required when `xksProxyConnectivity` is `VPC_ENDPOINT_SERVICE`. */ xksProxyVpcEndpointServiceName?: pulumi.Input; } //# sourceMappingURL=customKeyStore.d.ts.map