import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::KMS::Key */ export declare function getKey(args: GetKeyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getKey. */ export interface GetKeyArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getKey. */ export interface GetKeyResult { /** * Asymmetric encryption action parameters and results. AsymmetricEncrypt can be triggered during the Create/Update phase; the result is only guaranteed to be returned in the current response. */ readonly asymmetricCiphertext: outputs.kms.GetKeyAsymmetricCiphertext; /** * Asymmetric signature action parameters and results. AsymmetricSign can be triggered during the Create/Update phase; the result is only guaranteed to be returned in the current response. */ readonly asymmetricSignature: outputs.kms.GetKeyAsymmetricSignature; /** * Symmetric encryption action parameters and results. Encrypt can be triggered during the Create/Update phase; the result is only guaranteed to be returned in the current response. */ readonly ciphertext: outputs.kms.GetKeyCiphertext; /** * Key creation time. */ readonly createdTime: number; /** * Key description: Length 0–8192 characters. */ readonly description: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * User master key archive operation (enter 1 to archive, 2 to unarchive). */ readonly keyArchiveOperation: number; /** * User master key enable operation (enter 1 to enable, 2 to disable). */ readonly keyEnableOperation: number; /** * Key unique identifier in UUID format. */ readonly keyId: string; /** * Key material expiration time. If empty, the key does not expire. */ readonly keyMaterialExpireTime: string; /** * Master key name. Length 2–31 characters. Valid characters: [a-zA-Z0-9-_]. */ readonly keyName: string; /** * Primary region of the multi-region key. Set the target primary region during the Create/Update phase; the current primary region is returned during the Read phase. */ readonly keyPrimaryRegion: string; /** * User master key rotation operation (enter 1 to enable, 2 to disable). */ readonly keyRotationOperation: number; /** * Symmetric keys: SYMMETRIC*256, SYMMETRIC*128; asymmetric keys: RSA*2048, RSA*3072, RSA*4096, EC*P256, EC*P256K, EC*P384, EC*P521, EC*SM2. */ readonly keySpec: string; /** * Key status: Enable, Disable, PendingDelete, Archived, PendingImport. */ readonly keyState: string; /** * Key usage. Options: ENCRYPT*DECRYPT, SIGN*VERIFY, GENERATE*VERIFY*MAC. */ readonly keyUsage: string; /** * Key ring name. Length 2–31 characters. Valid characters: [a-zA-Z0-9-_]. */ readonly keyringName: string; /** * Key last rotation time. */ readonly lastRotationTime: string; /** * Is this a multi-region type master key. */ readonly multiRegion: boolean; /** * Multi-region key configuration information. */ readonly multiRegionConfiguration: outputs.kms.GetKeyMultiRegionConfiguration; /** * Key source. Options: CloudKMS, External, ExternalKeyStore. */ readonly origin: string; /** * Key protection level. Options: SOFTWARE, HSM. */ readonly protectionLevel: string; /** * Re-encryption action parameters and results. ReEncrypt can be triggered during the Create/Update phase; the result is only guaranteed to be returned in the current response. */ readonly reEncrypt: outputs.kms.GetKeyReEncrypt; /** * Replicate key action parameters and results. ReplicateKey can be triggered during the Create/Update phase; the result is only guaranteed to be returned in the current response. */ readonly replicateKey: outputs.kms.GetKeyReplicateKey; /** * Key rotation period (days). Range: [90, 2560]. */ readonly rotateInterval: number; /** * Key rotation status. Options: Enable, Disable. */ readonly rotateState: string; /** * Key deletion time. */ readonly scheduleDeleteTime: string; /** * Key rotation time. */ readonly scheduleRotationTime: string; /** * KMS key label information. */ readonly tags: outputs.kms.GetKeyTag[]; /** * Resource name. Format should be trn:${Service}:${Region}:${AccountID}:${ResourcePath}. */ readonly trn: string; /** * Key update time. */ readonly updatedTime: number; } /** * Data Source schema for Volcengine::KMS::Key */ export declare function getKeyOutput(args: GetKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getKey. */ export interface GetKeyOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }