UNPKG

@pulumi/aws

Version:

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

86 lines 2.54 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.getRuntimeVersionOutput = exports.getRuntimeVersion = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Data source for managing an AWS CloudWatch Synthetics Runtime Version. * * ## Example Usage * * ### Latest Runtime Version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.synthetics.getRuntimeVersion({ * prefix: "syn-nodejs-puppeteer", * latest: true, * }); * ``` * * ### Specific Runtime Version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.synthetics.getRuntimeVersion({ * prefix: "syn-nodejs-puppeteer", * version: "9.0", * }); * ``` */ function getRuntimeVersion(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:synthetics/getRuntimeVersion:getRuntimeVersion", { "latest": args.latest, "prefix": args.prefix, "region": args.region, "version": args.version, }, opts); } exports.getRuntimeVersion = getRuntimeVersion; /** * Data source for managing an AWS CloudWatch Synthetics Runtime Version. * * ## Example Usage * * ### Latest Runtime Version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.synthetics.getRuntimeVersion({ * prefix: "syn-nodejs-puppeteer", * latest: true, * }); * ``` * * ### Specific Runtime Version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.synthetics.getRuntimeVersion({ * prefix: "syn-nodejs-puppeteer", * version: "9.0", * }); * ``` */ function getRuntimeVersionOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:synthetics/getRuntimeVersion:getRuntimeVersion", { "latest": args.latest, "prefix": args.prefix, "region": args.region, "version": args.version, }, opts); } exports.getRuntimeVersionOutput = getRuntimeVersionOutput; //# sourceMappingURL=getRuntimeVersion.js.map