getParameter

Provides an SSM Parameter data source.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.SsmFunctions;
import com.pulumi.aws.ssm.inputs.GetParameterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = SsmFunctions.getParameter(GetParameterArgs.builder()
.name("foo")
.build());
}
}

Return

A collection of values returned by getParameter.

Parameters

argument

A collection of arguments for invoking getParameter.


suspend fun getParameter(name: String, withDecryption: Boolean? = null): GetParameterResult

Return

A collection of values returned by getParameter.

Parameters

name

Name of the parameter.

withDecryption

Whether to return decrypted SecureString value. Defaults to true. In addition to all arguments above, the following attributes are exported:

See also


Return

A collection of values returned by getParameter.

Parameters

argument

Builder for com.pulumi.aws.ssm.kotlin.inputs.GetParameterPlainArgs.

See also