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.ApiGateway
Assembly: Pulumi.Aws.dll
Syntax
public static class GetKey

Methods

View Source

InvokeAsync(GetKeyArgs, InvokeOptions)

Use this data source to get the name and value of a pre-existing API Key, for example to supply credentials for a dependency microservice.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var myApiKey = Output.Create(Aws.ApiGateway.GetKey.InvokeAsync(new Aws.ApiGateway.GetKeyArgs
    {
        Id = "ru3mpjgse6",
    }));
}

}

{{% /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.