GetParameter

Provides an SSM Parameter data source.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Aws.Ssm.GetParameter.InvokeAsync(new Aws.Ssm.GetParameterArgs
        {
            Name = "foo",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ssm"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ssm.LookupParameter(ctx, &ssm.LookupParameterArgs{
            Name: "foo",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

foo = aws.ssm.get_parameter(name="foo")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = pulumi.output(aws.ssm.getParameter({
    name: "foo",
}, { async: true }));

Using GetParameter

function getParameter(args: GetParameterArgs, opts?: InvokeOptions): Promise<GetParameterResult>
function  get_parameter(name=None, with_decryption=None, opts=None)
func LookupParameter(ctx *Context, args *LookupParameterArgs, opts ...InvokeOption) (*LookupParameterResult, error)

Note: This function is named LookupParameter in the Go SDK.

public static class GetParameter {
    public static Task<GetParameterResult> InvokeAsync(GetParameterArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the parameter.

WithDecryption bool

Whether to return decrypted SecureString value. Defaults to true.

Name string

The name of the parameter.

WithDecryption bool

Whether to return decrypted SecureString value. Defaults to true.

name string

The name of the parameter.

withDecryption boolean

Whether to return decrypted SecureString value. Defaults to true.

name str

The name of the parameter.

with_decryption bool

Whether to return decrypted SecureString value. Defaults to true.

GetParameter Result

The following output properties are available:

Arn string
Id string

The provider-assigned unique ID for this managed resource.

Name string
Type string
Value string
Version int
WithDecryption bool
Arn string
Id string

The provider-assigned unique ID for this managed resource.

Name string
Type string
Value string
Version int
WithDecryption bool
arn string
id string

The provider-assigned unique ID for this managed resource.

name string
type string
value string
version number
withDecryption boolean
arn str
id str

The provider-assigned unique ID for this managed resource.

name str
type str
value str
version float
with_decryption bool

Package Details

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