Show / Hide Table of Contents

Class GetAlias

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

Methods

View Source

InvokeAsync(GetAliasArgs, InvokeOptions)

Use this data source to get the ARN of a KMS key alias. By using this data source, you can 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 s3 = Output.Create(Aws.Kms.GetAlias.InvokeAsync(new Aws.Kms.GetAliasArgs
    {
        Name = "alias/aws/s3",
    }));
}

}

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

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