GetCryptoKeysKey class

Constructors

GetCryptoKeysKey({required Input<String> cryptoKeyBackend, required Input<String> deletionPolicy, required Input<String> destroyScheduledDuration, required Input<Map<String, String>> effectiveLabels, required Input<String> id, required Input<bool> importOnly, required Input<List<GetCryptoKeysKeyKeyAccessJustificationsPolicy>> keyAccessJustificationsPolicies, Input<String?>? keyRing, required Input<Map<String, String>> labels, Input<String?>? name, required Input<List<GetCryptoKeysKeyPrimary>> primaries, required Input<Map<String, String>> pulumiLabels, required Input<String> purpose, required Input<String> rotationPeriod, required Input<bool> skipInitialVersionCreation, required Input<List<GetCryptoKeysKeyVersionTemplate>> versionTemplates})
Creates a new GetCryptoKeysKey. cryptoKeyBackend The resource name of the backend environment associated with all CryptoKeyVersions within this CryptoKey. deletionPolicy Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". destroyScheduledDuration The period of time that versions of this key spend in the DESTROY_SCHEDULED state before transitioning to DESTROYED. effectiveLabels All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services. id Required. importOnly Whether this key may contain imported versions only. keyAccessJustificationsPolicies The policy used for Key Access Justifications Policy Enforcement. If this keyRing The key ring that the keys belongs to. Format: 'projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}'., labels Labels with user-defined metadata to apply to this resource. name The resource name for the CryptoKey. primaries A copy of the primary CryptoKeyVersion that will be used by cryptoKeys.encrypt when this CryptoKey is given in EncryptRequest.name. pulumiLabels The combination of labels configured directly on the resource purpose The immutable purpose of this CryptoKey. See the rotationPeriod Every time this period passes, generate a new CryptoKeyVersion and set it as the primary. skipInitialVersionCreation If set to true, the request will create a CryptoKey without any CryptoKeyVersions. versionTemplates A template describing settings for new crypto key versions.
const
GetCryptoKeysKey.fromMap(Map<String, dynamic> map)
factory

Properties

cryptoKeyBackend → Input<String>
The resource name of the backend environment associated with all CryptoKeyVersions within this CryptoKey. The resource name is in the format "projects//locations//ekmConnections/*" and only applies to "EXTERNAL_VPC" keys.
final
deletionPolicy → Input<String>
Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
final
destroyScheduledDuration → Input<String>
The period of time that versions of this key spend in the DESTROY_SCHEDULED state before transitioning to DESTROYED. If not specified at creation time, the default duration is 30 days.
final
effectiveLabels → Input<Map<String, String>>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
final
hashCode → int
The hash code for this object.
no setterinherited
id → Input<String>
final
importOnly → Input<bool>
Whether this key may contain imported versions only.
final
keyAccessJustificationsPolicies → Input<List<GetCryptoKeysKeyKeyAccessJustificationsPolicy>>
The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes By default, this field is absent, and all justification codes are allowed. This field is currently in beta and is subject to change.
final
keyRing → Input<String?>?
The key ring that the keys belongs to. Format: 'projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}'.,
final
labels → Input<Map<String, String>>
Labels with user-defined metadata to apply to this resource.
final
name → Input<String?>?
The resource name for the CryptoKey.
final
primaries → Input<List<GetCryptoKeysKeyPrimary>>
A copy of the primary CryptoKeyVersion that will be used by cryptoKeys.encrypt when this CryptoKey is given in EncryptRequest.name. Keys with purpose ENCRYPT_DECRYPT may have a primary. For other keys, this field will be unset.
final
pulumiLabels → Input<Map<String, String>>
The combination of labels configured directly on the resource and default labels configured on the provider.
final
purpose → Input<String>
The immutable purpose of this CryptoKey. See the purpose reference for possible inputs. Default value is "ENCRYPT_DECRYPT".
final
rotationPeriod → Input<String>
Every time this period passes, generate a new CryptoKeyVersion and set it as the primary. The first rotation will take place after the specified period. The rotation period has the format of a decimal number with up to 9 fractional digits, followed by the letter 's' (seconds). It must be greater than a day (ie, 86400).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipInitialVersionCreation → Input<bool>
If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must use the 'google_kms_crypto_key_version' resource to create a new CryptoKeyVersion or 'google_kms_key_ring_import_job' resource to import the CryptoKeyVersion. This field is only applicable during initial CryptoKey creation.
final
versionTemplates → Input<List<GetCryptoKeysKeyVersionTemplate>>
A template describing settings for new crypto key versions.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited