@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
93 lines (92 loc) • 3.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The CloudFormation Export data source allows access to stack
* exports specified in the [Output](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html) section of the Cloudformation Template using the optional Export Property.
*
* > Note: If you are trying to use a value from a Cloudformation Stack in the same deployment please use normal interpolation or Cloudformation Outputs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const subnetId = aws.cloudformation.getExport({
* name: "mySubnetIdExportName",
* });
* const web = new aws.ec2.Instance("web", {
* ami: "ami-abb07bcb",
* instanceType: aws.ec2.InstanceType.T2_Micro,
* subnetId: subnetId.then(subnetId => subnetId.value),
* });
* ```
*/
export declare function getExport(args: GetExportArgs, opts?: pulumi.InvokeOptions): Promise<GetExportResult>;
/**
* A collection of arguments for invoking getExport.
*/
export interface GetExportArgs {
/**
* Name of the export as it appears in the console or from [list-exports](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-exports.html)
*/
name: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
}
/**
* A collection of values returned by getExport.
*/
export interface GetExportResult {
/**
* ARN of stack that contains the exported output name and value.
*/
readonly exportingStackId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly region: string;
/**
* Value from Cloudformation export identified by the export name found from [list-exports](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-exports.html)
*/
readonly value: string;
}
/**
* The CloudFormation Export data source allows access to stack
* exports specified in the [Output](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html) section of the Cloudformation Template using the optional Export Property.
*
* > Note: If you are trying to use a value from a Cloudformation Stack in the same deployment please use normal interpolation or Cloudformation Outputs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const subnetId = aws.cloudformation.getExport({
* name: "mySubnetIdExportName",
* });
* const web = new aws.ec2.Instance("web", {
* ami: "ami-abb07bcb",
* instanceType: aws.ec2.InstanceType.T2_Micro,
* subnetId: subnetId.then(subnetId => subnetId.value),
* });
* ```
*/
export declare function getExportOutput(args: GetExportOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetExportResult>;
/**
* A collection of arguments for invoking getExport.
*/
export interface GetExportOutputArgs {
/**
* Name of the export as it appears in the console or from [list-exports](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-exports.html)
*/
name: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
}