KeyRingImportJobArgs

data class KeyRingImportJobArgs(val importJobId: Output<String>? = null, val importMethod: Output<String>? = null, val keyRing: Output<String>? = null, val protectionLevel: Output<String>? = null) : ConvertibleToJava<KeyRingImportJobArgs>

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

Import

KeyRingImportJob can be imported using any of these accepted formats:

  • {{name}} When using the pulumi import command, KeyRingImportJob can be imported using one of the formats above. For example:

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

Constructors

Link copied to clipboard
constructor(importJobId: Output<String>? = null, importMethod: Output<String>? = null, keyRing: Output<String>? = null, protectionLevel: Output<String>? = null)

Properties

Link copied to clipboard
val importJobId: Output<String>? = null

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>? = null

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>? = null

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

Link copied to clipboard
val protectionLevel: Output<String>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): KeyRingImportJobArgs