UNPKG

@pulumi/aws

Version:

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

58 lines 1.83 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.getFunctionOutput = exports.getFunction = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides information about a CloudFront Function. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const functionName = config.require("functionName"); * const existing = aws.cloudfront.getFunction({ * name: functionName, * stage: "LIVE", * }); * ``` */ function getFunction(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:cloudfront/getFunction:getFunction", { "name": args.name, "stage": args.stage, }, opts); } exports.getFunction = getFunction; /** * Provides information about a CloudFront Function. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const functionName = config.require("functionName"); * const existing = aws.cloudfront.getFunction({ * name: functionName, * stage: "LIVE", * }); * ``` */ function getFunctionOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:cloudfront/getFunction:getFunction", { "name": args.name, "stage": args.stage, }, opts); } exports.getFunctionOutput = getFunctionOutput; //# sourceMappingURL=getFunction.js.map