AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

getSecret

Using getSecret

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretResult>
def get_secret(secrets: Optional[Sequence[GetSecretSecret]] = None,
               opts: Optional[InvokeOptions] = None) -> GetSecretResult
def get_secret_output(secrets: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecretSecretArgs]]]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSecretResult]
func GetSecret(ctx *Context, args *GetSecretArgs, opts ...InvokeOption) (*GetSecretResult, error)
func GetSecretOutput(ctx *Context, args *GetSecretOutputArgs, opts ...InvokeOption) GetSecretResultOutput

> Note: This function is named GetSecret in the Go SDK.

public static class GetSecret 
{
    public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
    public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:kms/getSecret:getSecret
  Arguments:
    # Arguments dictionary

The following arguments are supported:

getSecret Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Secrets List<GetSecretSecret>
Id string

The provider-assigned unique ID for this managed resource.

Secrets []GetSecretSecret
id String

The provider-assigned unique ID for this managed resource.

secrets ListSecretSecret>
id string

The provider-assigned unique ID for this managed resource.

secrets GetSecretSecret[]
id str

The provider-assigned unique ID for this managed resource.

secrets Sequence[GetSecretSecret]
id String

The provider-assigned unique ID for this managed resource.

secrets List

Supporting Types

GetSecretSecret

Name string
Payload string
Context Dictionary<string, string>
GrantTokens List<string>
Name string
Payload string
Context map[string]string
GrantTokens []string
name String
payload String
context Map
grantTokens List
name string
payload string
context {[key: string]: string}
grantTokens string[]
name str
payload str
context Mapping[str, str]
grant_tokens Sequence[str]
name String
payload String
context Map
grantTokens List

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.