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
LookupParameterin 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.
- With
Decryption bool Whether to return decrypted
SecureStringvalue. Defaults totrue.
- Name string
The name of the parameter.
- With
Decryption bool Whether to return decrypted
SecureStringvalue. Defaults totrue.
- name string
The name of the parameter.
- with
Decryption boolean Whether to return decrypted
SecureStringvalue. Defaults totrue.
- name str
The name of the parameter.
- with_
decryption bool Whether to return decrypted
SecureStringvalue. Defaults totrue.
GetParameter Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.