# CDKPublishTargetContext Methods

- Package: [Aspire.Hosting.AWS](/reference/api/csharp/aspire.hosting.aws.md)
- Type: [CDKPublishTargetContext](/reference/api/csharp/aspire.hosting.aws/cdkpublishtargetcontext.md)
- Kind: `Methods`
- Members: `1`

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.

## GetDeploymentStack

- Name: `GetDeploymentStack`
- Returns: `T`

```csharp
public class CDKPublishTargetContext
{
    public T GetDeploymentStack<T>()
    {
        // ...
    }
}
```
