GetSecrets

Decrypt multiple secrets from data encrypted with the AWS KMS service.

Using GetSecrets

function getSecrets(args: GetSecretsArgs, opts?: InvokeOptions): Promise<GetSecretsResult>
function  get_secrets(secrets=None, opts=None)
func GetSecrets(ctx *Context, args *GetSecretsArgs, opts ...InvokeOption) (*GetSecretsResult, error)
public static class GetSecrets {
    public static Task<GetSecretsResult> InvokeAsync(GetSecretsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Secrets List<GetSecretsSecretArgs>

One or more encrypted payload definitions from the KMS service. See the Secret Definitions below.

Secrets []GetSecretsSecret

One or more encrypted payload definitions from the KMS service. See the Secret Definitions below.

secrets GetSecretsSecret[]

One or more encrypted payload definitions from the KMS service. See the Secret Definitions below.

secrets List[GetSecretsSecret]

One or more encrypted payload definitions from the KMS service. See the Secret Definitions below.

GetSecrets Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Plaintext Dictionary<string, string>

Map containing each secret name as the key with its decrypted plaintext value

Secrets List<GetSecretsSecret>
Id string

The provider-assigned unique ID for this managed resource.

Plaintext map[string]string

Map containing each secret name as the key with its decrypted plaintext value

Secrets []GetSecretsSecret
id string

The provider-assigned unique ID for this managed resource.

plaintext {[key: string]: string}

Map containing each secret name as the key with its decrypted plaintext value

secrets GetSecretsSecret[]
id str

The provider-assigned unique ID for this managed resource.

plaintext Dict[str, str]

Map containing each secret name as the key with its decrypted plaintext value

secrets List[GetSecretsSecret]

Supporting Types

GetSecretsSecret

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

The name to export this secret under in the attributes.

Payload string

Base64 encoded payload, as returned from a KMS encrypt operation.

Context Dictionary<string, string>

An optional mapping that makes up the Encryption Context for the secret.

GrantTokens List<string>

An optional list of Grant Tokens for the secret.

Name string

The name to export this secret under in the attributes.

Payload string

Base64 encoded payload, as returned from a KMS encrypt operation.

Context map[string]string

An optional mapping that makes up the Encryption Context for the secret.

GrantTokens []string

An optional list of Grant Tokens for the secret.

name string

The name to export this secret under in the attributes.

payload string

Base64 encoded payload, as returned from a KMS encrypt operation.

context {[key: string]: string}

An optional mapping that makes up the Encryption Context for the secret.

grantTokens string[]

An optional list of Grant Tokens for the secret.

name str

The name to export this secret under in the attributes.

payload str

Base64 encoded payload, as returned from a KMS encrypt operation.

context Dict[str, str]

An optional mapping that makes up the Encryption Context for the secret.

grantTokens List[str]

An optional list of Grant Tokens for the secret.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.