KeyRingImportJob

class KeyRingImportJob : KotlinCustomResource

A KeyRingImportJob can be used to create CryptoKeys and CryptoKeyVersions using pre-existing key material, generated outside of Cloud KMS. A KeyRingImportJob expires 3 days after it is created. Once expired, Cloud KMS will no longer be able to import or unwrap any key material that was wrapped with the KeyRingImportJob's public key.

Note: KeyRingImportJobs cannot be deleted from Google Cloud Platform. Destroying a provider-managed KeyRingImportJob will remove it from state but will not delete the resource from the project. To get more information about KeyRingImportJob, see:

Example Usage

{{% /examples %}}

Import

KeyRingImportJob can be imported using any of these accepted formats:

$ pulumi import gcp:kms/keyRingImportJob:KeyRingImportJob default {{name}}

Properties

Link copied to clipboard

Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen ImportMethod is one with a protection level of HSM. Structure is documented below.

Link copied to clipboard
val expireTime: Output<String>

The time at which this resource is scheduled for expiration and can no longer be used. This is in RFC3339 text format.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val importJobId: Output<String>

It must be unique within a KeyRing and match the regular expression a-zA-Z0-9_-{1,63}

Link copied to clipboard
val importMethod: Output<String>

The wrapping method to be used for incoming key material. Possible values are: RSA_OAEP_3072_SHA1_AES_256, RSA_OAEP_4096_SHA1_AES_256.

Link copied to clipboard
val keyRing: Output<String>

The KeyRing that this import job belongs to. Format: 'projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}'.

Link copied to clipboard
val name: Output<String>

The resource name for this ImportJob in the format projects//locations//keyRings//importJobs/. ////

Link copied to clipboard
val protectionLevel: Output<String>

The protection level of the ImportJob. This must match the protectionLevel of the versionTemplate on the CryptoKey you attempt to import into. Possible values are: SOFTWARE, HSM, EXTERNAL.

Link copied to clipboard

The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. Structure is documented below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

The current state of the ImportJob, indicating if it can be used.

Link copied to clipboard
val urn: Output<String>