import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Create a new ImportJob within a KeyRing. ImportJob.import_method is required. * Note - this resource's API doesn't support deletion. When deleted, the resource will persist * on Google Cloud even though it will be deleted from Pulumi state. */ export declare class ImportJob extends pulumi.CustomResource { /** * Get an existing ImportJob 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): ImportJob; /** * Returns true if the given object is an instance of ImportJob. 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 ImportJob; /** * 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. */ readonly attestation: pulumi.Output; /** * The time at which this ImportJob was created. */ readonly createTime: pulumi.Output; /** * The time this ImportJob expired. Only present if state is EXPIRED. */ readonly expireEventTime: pulumi.Output; /** * The time at which this ImportJob is scheduled for expiration and can no longer be used to import key material. */ readonly expireTime: pulumi.Output; /** * The time this ImportJob's key material was generated. */ readonly generateTime: pulumi.Output; /** * Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}` */ readonly importJobId: pulumi.Output; /** * Immutable. The wrapping method to be used for incoming key material. */ readonly importMethod: pulumi.Output; readonly keyRingId: pulumi.Output; readonly location: pulumi.Output; /** * The resource name for this ImportJob in the format `projects/*/locations/*/keyRings/*/importJobs/*`. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into. */ readonly protectionLevel: pulumi.Output; /** * The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. */ readonly publicKey: pulumi.Output; /** * The current state of the ImportJob, indicating if it can be used. */ readonly state: pulumi.Output; /** * Create a ImportJob 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: ImportJobArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a ImportJob resource. */ export interface ImportJobArgs { /** * Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}` */ importJobId?: pulumi.Input; /** * Immutable. The wrapping method to be used for incoming key material. */ importMethod: pulumi.Input; keyRingId: pulumi.Input; location?: pulumi.Input; project?: pulumi.Input; /** * Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into. */ protectionLevel: pulumi.Input; }