UNPKG

@pulumi/aws

Version:

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

56 lines 1.94 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.getStateMachineOutput = exports.getStateMachine = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get the ARN of a State Machine in AWS Step * Function (SFN). By using this data source, you can reference a * state machine without having to hard code the ARNs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.sfn.getStateMachine({ * name: "an_example_sfn_name", * }); * ``` */ function getStateMachine(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:sfn/getStateMachine:getStateMachine", { "name": args.name, "region": args.region, }, opts); } exports.getStateMachine = getStateMachine; /** * Use this data source to get the ARN of a State Machine in AWS Step * Function (SFN). By using this data source, you can reference a * state machine without having to hard code the ARNs as input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.sfn.getStateMachine({ * name: "an_example_sfn_name", * }); * ``` */ function getStateMachineOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:sfn/getStateMachine:getStateMachine", { "name": args.name, "region": args.region, }, opts); } exports.getStateMachineOutput = getStateMachineOutput; //# sourceMappingURL=getStateMachine.js.map