Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithNatGateway

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
func (AzureSubnetResource) 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

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: