import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Create a new CryptoKey within a KeyRing. CryptoKey.purpose and CryptoKey.version_template.algorithm are required. */ export declare class KeyRingCryptoKey extends pulumi.CustomResource { /** * Get an existing KeyRingCryptoKey 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): KeyRingCryptoKey; /** * Returns true if the given object is an instance of KeyRingCryptoKey. 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 KeyRingCryptoKey; /** * The time at which this CryptoKey was created. */ readonly createTime: pulumi.Output; /** * Labels with user-defined metadata. For more information, see [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys). */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * The resource name for this CryptoKey in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*`. */ readonly name: pulumi.Output; /** * At next_rotation_time, the Key Management Service will automatically: 1. Create a new version of this CryptoKey. 2. Mark the new version as primary. Key rotations performed manually via CreateCryptoKeyVersion and UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted. */ readonly nextRotationTime: pulumi.Output; /** * A copy of the "primary" CryptoKeyVersion that will be used by Encrypt when this CryptoKey is given in EncryptRequest.name. The CryptoKey's primary version can be updated via UpdateCryptoKeyPrimaryVersion. Keys with purpose ENCRYPT_DECRYPT may have a primary. For other keys, this field will be omitted. */ readonly primary: pulumi.Output; /** * Immutable. The immutable purpose of this CryptoKey. */ readonly purpose: pulumi.Output; /** * next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation_period is set, next_rotation_time must also be set. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted. */ readonly rotationPeriod: pulumi.Output; /** * A template describing settings for new CryptoKeyVersion instances. The properties of new CryptoKeyVersion instances created by either CreateCryptoKeyVersion or auto-rotation are controlled by this template. */ readonly versionTemplate: pulumi.Output; /** * Create a KeyRingCryptoKey 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: KeyRingCryptoKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a KeyRingCryptoKey resource. */ export interface KeyRingCryptoKeyArgs { readonly cryptoKeysId: pulumi.Input; readonly keyRingsId: pulumi.Input; /** * Labels with user-defined metadata. For more information, see [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys). */ readonly labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; readonly locationsId: pulumi.Input; /** * At next_rotation_time, the Key Management Service will automatically: 1. Create a new version of this CryptoKey. 2. Mark the new version as primary. Key rotations performed manually via CreateCryptoKeyVersion and UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted. */ readonly nextRotationTime?: pulumi.Input; readonly projectsId: pulumi.Input; /** * Immutable. The immutable purpose of this CryptoKey. */ readonly purpose?: pulumi.Input; /** * next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation_period is set, next_rotation_time must also be set. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted. */ readonly rotationPeriod?: pulumi.Input; /** * A template describing settings for new CryptoKeyVersion instances. The properties of new CryptoKeyVersion instances created by either CreateCryptoKeyVersion or auto-rotation are controlled by this template. */ readonly versionTemplate?: pulumi.Input; }