# NatGatewayRuleProperties

## Properties

| Name                    | Type                                                                       | Description                                                                                                                                                                                                                     | Notes       |
| ----------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| **name**                | **str**                                                                    | The name of the NAT Gateway rule.                                                                                                                                                                                               |             |
| **protocol**            | [**NatGatewayRuleProtocol**](/python-sdk/models/natgatewayruleprotocol.md) | Protocol of the NAT Gateway rule. Defaults to ALL. If protocol is 'ICMP' then targetPortRange start and end cannot be set.                                                                                                      | \[optional] |
| **public\_ip**          | **str**                                                                    | Public IP address of the NAT Gateway rule. Specifies the address used for masking outgoing packets source address field. Should be one of the customer reserved IP address already configured on the NAT Gateway resource       |             |
| **source\_subnet**      | **str**                                                                    | Source subnet of the NAT Gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets source IP address.                                                                       |             |
| **target\_port\_range** | [**TargetPortRange**](/python-sdk/models/targetportrange.md)               |                                                                                                                                                                                                                                 | \[optional] |
| **target\_subnet**      | **str**                                                                    | Target or destination subnet of the NAT Gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets destination IP address. If none is provided, rule will match any address. | \[optional] |
| **type**                | [**NatGatewayRuleType**](/python-sdk/models/natgatewayruletype.md)         | Type of the NAT Gateway rule.                                                                                                                                                                                                   | \[optional] |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/python-sdk/models/natgatewayruleproperties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
