# AzureApiManagementResource Constructors

- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Type: [AzureApiManagementResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure API Management service.

<a id="constructor"></a>
<a id="constructor-string-azureapimanagementoptions-action-azureresourceinfrastructure"></a>

## AzureApiManagementResource(string, AzureApiManagementOptions, Action<AzureResourceInfrastructure>)

- Name: `Constructor(string, AzureApiManagementOptions, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementResource.cs#L25-L105)

Represents an Azure API Management service.

```csharp
public class AzureApiManagementResource
{
    public AzureApiManagementResource(
        string name,
        AzureApiManagementOptions options,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the Aspire resource.
- `options` ([AzureApiManagementOptions](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementoptions.md))
  The API Management service options.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  The callback that configures Azure infrastructure.

## Remarks

API Management is provisioned in Azure and acts as a gateway for APIs added with [AzureApiManagementExtensions.AddApi(IResourceBuilder<AzureApiManagementResource>, string, IResourceBuilder<T>, string, string?, bool, string?)](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementextensions/methods.md#addapi-iresourcebuilder-azureapimanagementresource-string-iresourcebuilder-t-string-string-bool-string).
