UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

58 lines 1.84 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getParameterOutput = exports.getParameter = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides an SSM Parameter data source. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const foo = aws.ssm.getParameter({ * name: "foo", * }); * ``` * * > **Note:** The unencrypted value of a SecureString will be stored in the raw state as plain-text. */ function getParameter(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ssm/getParameter:getParameter", { "name": args.name, "region": args.region, "withDecryption": args.withDecryption, }, opts); } exports.getParameter = getParameter; /** * Provides an SSM Parameter data source. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const foo = aws.ssm.getParameter({ * name: "foo", * }); * ``` * * > **Note:** The unencrypted value of a SecureString will be stored in the raw state as plain-text. */ function getParameterOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ssm/getParameter:getParameter", { "name": args.name, "region": args.region, "withDecryption": args.withDecryption, }, opts); } exports.getParameterOutput = getParameterOutput; //# sourceMappingURL=getParameter.js.map