CryptoKeyVersion class
Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next sequential id. If unset, state will be set to ENABLED. 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.
Constructors
- CryptoKeyVersion(String name, {CryptoKeyVersionArgs? args, CustomResourceOptions? options})
-
Creates a new CryptoKeyVersion.
nameThe Pulumi resource name.argsArguments used to configure this CryptoKeyVersion. The set of arguments for CryptoKeyVersion.optionsResource options controlling this resource's behavior.
Properties
-
algorithm
↔ Output<
String> -
The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
latefinal
-
attestation
↔ Output<
KeyOperationAttestationResponse> -
Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createTime
↔ Output<
String> -
The time at which this CryptoKeyVersion was created.
latefinal
-
cryptoKeyId
↔ Output<
String> -
latefinal
-
destroyEventTime
↔ Output<
String> -
The time this CryptoKeyVersion's key material was destroyed. Only present if state is DESTROYED.
latefinal
-
destroyTime
↔ Output<
String> -
The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.
latefinal
-
externalDestructionFailureReason
↔ Output<
String> -
The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED.
latefinal
-
externalProtectionLevelOptions
↔ Output<
ExternalProtectionLevelOptionsResponse> -
ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.
latefinal
-
generateTime
↔ Output<
String> -
The time this CryptoKeyVersion's key material was generated.
latefinal
-
generationFailureReason
↔ Output<
String> -
The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
importFailureReason
↔ Output<
String> -
The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.
latefinal
-
importJob
↔ Output<
String> -
The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.
latefinal
-
importTime
↔ Output<
String> -
The time at which this CryptoKeyVersion's key material was most recently imported.
latefinal
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
keyRingId
↔ Output<
String> -
latefinal
-
location
↔ Output<
String> -
latefinal
-
name
↔ Output<
String> -
The resource name for this CryptoKeyVersion in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.latefinal -
project
↔ Output<
String> -
latefinal
-
protectionLevel
↔ Output<
String> -
The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.
latefinal
-
reimportEligible
↔ Output<
bool> -
Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
↔ Output<
String> -
The current state of the CryptoKeyVersion.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited