# FoundryDeploymentResource

- Kind: `class`
- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Foundry`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/FoundryDeploymentResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<FoundryResource>`, `IValueProvider`, `IValueWithReferences`

Represents a Microsoft Foundry Deployment.

## Definition

```csharp
namespace Aspire.Hosting.Foundry;

public class FoundryDeploymentResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Foundry.FoundryResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Foundry/FoundryDeploymentResource`

## Constructors

- [FoundryDeploymentResource(string, string, string, string, FoundryResource)](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/constructors.md#constructor-string-string-string-string-foundryresource) -- Initializes a new instance of the [FoundryDeploymentResource](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource.md) class.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Microsoft Foundry resource with model/deployment information.
- [DeploymentName](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#deploymentname) : `string` `get; set` -- Gets or sets the name of the deployment.
- [Format](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#format) : `string` `get; set` -- Gets or sets the format of deployment model.
- [ModelName](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#modelname) : `string` `get; set` -- Gets or sets the name of the model.
- [ModelVersion](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#modelversion) : `string` `get; set` -- Gets or sets the version of the model.
- [Parent](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#parent) : [FoundryResource](/reference/api/csharp/aspire.hosting.foundry/foundryresource.md) `get; set` -- Gets the parent Microsoft Foundry resource.
- [SkuCapacity](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#skucapacity) : `int` `get; set` -- Gets or sets the capacity of the SKU, in thousands of tokens per minute (TPM).
- [SkuName](/reference/api/csharp/aspire.hosting.foundry/foundrydeploymentresource/properties.md#skuname) : `string` `get; set` -- Gets or sets the name of the SKU.
