Show / Hide Table of Contents

Class GetKMSCryptoKey

Inheritance
System.Object
GetKMSCryptoKey
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 GetKMSCryptoKey

Methods

View Source

InvokeAsync(GetKMSCryptoKeyArgs, InvokeOptions)

Provides access to a Google Cloud Platform KMS CryptoKey. For more information see the official documentation and API.

A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a Google Cloud KMS KeyRing.

{{% 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,
    })));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetKMSCryptoKeyResult> InvokeAsync(GetKMSCryptoKeyArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetKMSCryptoKeyArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetKMSCryptoKeyResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.