@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
107 lines (106 loc) • 2.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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",
* });
* ```
*/
export declare function getFunction(args: GetFunctionArgs, opts?: pulumi.InvokeOptions): Promise<GetFunctionResult>;
/**
* A collection of arguments for invoking getFunction.
*/
export interface GetFunctionArgs {
/**
* Name of the CloudFront function.
*/
name: string;
/**
* Function’s stage, either `DEVELOPMENT` or `LIVE`.
*/
stage: string;
}
/**
* A collection of values returned by getFunction.
*/
export interface GetFunctionResult {
/**
* ARN identifying your CloudFront Function.
*/
readonly arn: string;
/**
* Source code of the function
*/
readonly code: string;
/**
* Comment.
*/
readonly comment: string;
/**
* ETag hash of the function
*/
readonly etag: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* List of `aws.cloudfront.KeyValueStore` ARNs associated to the function.
*/
readonly keyValueStoreAssociations: string[];
/**
* When this resource was last modified.
*/
readonly lastModifiedTime: string;
readonly name: string;
/**
* Identifier of the function's runtime.
*/
readonly runtime: string;
readonly stage: string;
/**
* Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
*/
readonly status: string;
}
/**
* 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",
* });
* ```
*/
export declare function getFunctionOutput(args: GetFunctionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFunctionResult>;
/**
* A collection of arguments for invoking getFunction.
*/
export interface GetFunctionOutputArgs {
/**
* Name of the CloudFront function.
*/
name: pulumi.Input<string>;
/**
* Function’s stage, either `DEVELOPMENT` or `LIVE`.
*/
stage: pulumi.Input<string>;
}