Class GetExport
Inheritance
System.Object
GetExport
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CloudFormation
Assembly: Pulumi.Aws.dll
Syntax
public static class GetExport
Methods
View SourceInvokeAsync(GetExportArgs, InvokeOptions)
The CloudFormation Export data source allows access to stack exports specified in the Output 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.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var subnetId = Output.Create(Aws.CloudFormation.GetExport.InvokeAsync(new Aws.CloudFormation.GetExportArgs
{
Name = "mySubnetIdExportName",
}));
var web = new Aws.Ec2.Instance("web", new Aws.Ec2.InstanceArgs
{
Ami = "ami-abb07bcb",
InstanceType = "t1.micro",
SubnetId = subnetId.Apply(subnetId => subnetId.Value),
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetExportResult> InvokeAsync(GetExportArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetExportArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetExportResult> |