Show / Hide Table of Contents

Class GetCipherText

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

Methods

View Source

InvokeAsync(GetCipherTextArgs, InvokeOptions)

The KMS ciphertext data source allows you to encrypt plaintext into ciphertext by using an AWS KMS customer master key. The value returned by this data source changes every apply. For a stable ciphertext value, see the aws.kms.Ciphertext resource.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var oauthConfig = new Aws.Kms.Key("oauthConfig", new Aws.Kms.KeyArgs
    {
        Description = "oauth config",
        IsEnabled = true,
    });
    var oauth = oauthConfig.KeyId.Apply(keyId => Aws.Kms.GetCipherText.InvokeAsync(new Aws.Kms.GetCipherTextArgs
    {
        KeyId = keyId,
        Plaintext = @"{
""client_id"": ""e587dbae22222f55da22"",
""client_secret"": ""8289575d00000ace55e1815ec13673955721b8a5""
}

",
    }));
}

}

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

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