withNatGateway

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
interface AzureSubnetResource {
// ... omitted for brevity
withNatGateway(natGateway: AzureNatGatewayResource): AzureSubnetResource;
}

Signature

methodwithNatGatewaybuilder
Associates a NAT Gateway with the subnet.
withNatGateway(natGateway: AzureNatGatewayResource): AzureSubnetResource
natGatewayAzureNatGatewayResourceThe NAT Gateway to associate with the subnet.
AzureSubnetResource

Applies to

This method applies to the following types: