# StackOutputReference

- Kind: `class`
- Package: [Aspire.Hosting.AWS](/reference/api/csharp/aspire.hosting.aws.md)
- Version: `13.2.0`
- Namespace: `Aspire.Hosting.AWS.CloudFormation`
- Target framework: `net8.0`
- Implements: `IManifestExpressionProvider`, `IValueProvider`, `IValueWithReferences`

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Definition

```csharp
namespace Aspire.Hosting.AWS.CloudFormation;

public class StackOutputReference
    : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [StackOutputReference(string, ICloudFormationResource)](/reference/api/csharp/aspire.hosting.aws/stackoutputreference/constructors.md#constructor-string-icloudformationresource)

## Properties

- [Name](/reference/api/csharp/aspire.hosting.aws/stackoutputreference/properties.md#name) : `string` `get`
- [Resource](/reference/api/csharp/aspire.hosting.aws/stackoutputreference/properties.md#resource) : [ICloudFormationResource](/reference/api/csharp/aspire.hosting.aws/icloudformationresource.md) `get`
- [Value](/reference/api/csharp/aspire.hosting.aws/stackoutputreference/properties.md#value) : `string?` `get`
- [ValueExpression](/reference/api/csharp/aspire.hosting.aws/stackoutputreference/properties.md#valueexpression) : `string` `get` -- Gets the expression that represents a value in manifest.

## Methods

- [GetValueAsync(CancellationToken)](/reference/api/csharp/aspire.hosting.aws/stackoutputreference/methods.md#getvalueasync-cancellationtoken) : `ValueTask<string?>` -- Gets the value for use as an environment variable.
