Show / Hide Table of Contents

Class GetKey

Inheritance
System.Object
GetKey
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.Aws.Kms
Assembly: Pulumi.Aws.dll
Syntax
public static class GetKey

Methods

View Source

InvokeAsync(GetKeyArgs, InvokeOptions)

Use this data source to get detailed information about the specified KMS Key with flexible key id input. This can be useful to reference key alias without having to hard code the ARN as input.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var foo = Output.Create(Aws.Kms.GetKey.InvokeAsync(new Aws.Kms.GetKeyArgs
    {
        KeyId = "arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
    }));
}

}

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

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