Skip to content
DocsTry Aspire
DocsTry

AzureNatGatewayResource Constructors

ClassConstructors1 member
Represents an Azure NAT Gateway resource.
Constructor(string, Action<AzureResourceInfrastructure>)Section titled Constructor(string, Action<AzureResourceInfrastructure>)
Represents an Azure NAT Gateway resource.
public class AzureNatGatewayResource
{
public AzureNatGatewayResource(
string name,
Action<AzureResourceInfrastructure> configureInfrastructure)
{
// ...
}
}
namestringThe name of the resource.
configureInfrastructureAction<AzureResourceInfrastructure>Callback to configure the Azure NAT Gateway resource.
A NAT Gateway provides outbound internet connectivity for resources in a virtual network subnet. Use AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties.