Class GetKMSCryptoKeyVersion
Inheritance
System.Object
GetKMSCryptoKeyVersion
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Kms
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetKMSCryptoKeyVersion
Methods
View SourceInvokeAsync(GetKMSCryptoKeyVersionArgs, InvokeOptions)
Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see the official documentation and API.
A CryptoKeyVersion represents an individual cryptographic key, and the associated key material.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var myKeyRing = Output.Create(Gcp.Kms.GetKMSKeyRing.InvokeAsync(new Gcp.Kms.GetKMSKeyRingArgs
{
Name = "my-key-ring",
Location = "us-central1",
}));
var myCryptoKey = myKeyRing.Apply(myKeyRing => Output.Create(Gcp.Kms.GetKMSCryptoKey.InvokeAsync(new Gcp.Kms.GetKMSCryptoKeyArgs
{
Name = "my-crypto-key",
KeyRing = myKeyRing.SelfLink,
})));
var myCryptoKeyVersion = Output.Create(Gcp.Kms.GetKMSCryptoKeyVersion.InvokeAsync(new Gcp.Kms.GetKMSCryptoKeyVersionArgs
{
CryptoKey = data.Google_kms_key.My_key.Self_link,
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetKMSCryptoKeyVersionResult> InvokeAsync(GetKMSCryptoKeyVersionArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetKMSCryptoKeyVersionArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetKMSCryptoKeyVersionResult> |