Class SnatEntry
Provides a Sag SnatEntry resource. This topic describes how to add a SNAT entry to enable the SNAT function. The SNAT function can hide internal IP addresses and resolve private IP address conflicts. With this function, on-premises sites can access internal IP addresses, but cannot be accessed by internal IP addresses. If you do not add a SNAT entry, on-premises sites can access each other only when all related IP addresses do not conflict.
For information about Sag SnatEntry and how to use it, see What is Sag SnatEntry.
NOTE: Available in 1.61.0+
NOTE: Only the following regions support. [
cn-shanghai,cn-shanghai-finance-1,cn-hongkong,ap-southeast-1,ap-southeast-2,ap-southeast-3,ap-southeast-5,ap-northeast-1,eu-central-1]
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.RocketMQ.SnatEntry("default", new AliCloud.RocketMQ.SnatEntryArgs
{
CidrBlock = "192.168.7.0/24",
SagId = "sag-3rb1t3iagy3w0zgwy9",
SnatIp = "192.0.0.2",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.RocketMQ
Assembly: Pulumi.AliCloud.dll
Syntax
public class SnatEntry : CustomResource
Constructors
View SourceSnatEntry(String, SnatEntryArgs, CustomResourceOptions)
Create a SnatEntry resource with the given unique name, arguments, and options.
Declaration
public SnatEntry(string name, SnatEntryArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SnatEntryArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCidrBlock
The destination CIDR block.
Declaration
public Output<string> CidrBlock { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SagId
The ID of the SAG instance.
Declaration
public Output<string> SagId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SnatIp
The public IP address.
Declaration
public Output<string> SnatIp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SnatEntryState, CustomResourceOptions)
Get an existing SnatEntry resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SnatEntry Get(string name, Input<string> id, SnatEntryState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SnatEntryState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SnatEntry |