nat

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnatEntriesArgs

type DnatEntriesArgs struct {
	// The name of the DNAT entry.
	DnatEntryName *string `pulumi:"dnatEntryName"`
	// Provides the public IP address for public network access.
	ExternalIp *string `pulumi:"externalIp"`
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort *string `pulumi:"externalPort"`
	// A list of DNAT entry ids.
	Ids []string `pulumi:"ids"`
	// Provides the internal IP address.
	InternalIp *string `pulumi:"internalIp"`
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort *string `pulumi:"internalPort"`
	// The id of the NAT gateway.
	NatGatewayId *string `pulumi:"natGatewayId"`
	// File name where to save data source results.
	OutputFile *string `pulumi:"outputFile"`
	// The network protocol.
	Protocol *string `pulumi:"protocol"`
}

A collection of arguments for invoking DnatEntries.

type DnatEntriesDnatEntry

type DnatEntriesDnatEntry struct {
	// The ID of the DNAT entry.
	DnatEntryId string `pulumi:"dnatEntryId"`
	// The name of the DNAT entry.
	DnatEntryName string `pulumi:"dnatEntryName"`
	// Provides the public IP address for public network access.
	ExternalIp string `pulumi:"externalIp"`
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort string `pulumi:"externalPort"`
	// Provides the internal IP address.
	InternalIp string `pulumi:"internalIp"`
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort string `pulumi:"internalPort"`
	// The id of the NAT gateway.
	NatGatewayId string `pulumi:"natGatewayId"`
	// The network protocol.
	Protocol string `pulumi:"protocol"`
	// The network status.
	Status string `pulumi:"status"`
}

type DnatEntriesDnatEntryArgs

type DnatEntriesDnatEntryArgs struct {
	// The ID of the DNAT entry.
	DnatEntryId pulumi.StringInput `pulumi:"dnatEntryId"`
	// The name of the DNAT entry.
	DnatEntryName pulumi.StringInput `pulumi:"dnatEntryName"`
	// Provides the public IP address for public network access.
	ExternalIp pulumi.StringInput `pulumi:"externalIp"`
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort pulumi.StringInput `pulumi:"externalPort"`
	// Provides the internal IP address.
	InternalIp pulumi.StringInput `pulumi:"internalIp"`
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort pulumi.StringInput `pulumi:"internalPort"`
	// The id of the NAT gateway.
	NatGatewayId pulumi.StringInput `pulumi:"natGatewayId"`
	// The network protocol.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// The network status.
	Status pulumi.StringInput `pulumi:"status"`
}

func (DnatEntriesDnatEntryArgs) ElementType

func (DnatEntriesDnatEntryArgs) ElementType() reflect.Type

func (DnatEntriesDnatEntryArgs) ToDnatEntriesDnatEntryOutput

func (i DnatEntriesDnatEntryArgs) ToDnatEntriesDnatEntryOutput() DnatEntriesDnatEntryOutput

func (DnatEntriesDnatEntryArgs) ToDnatEntriesDnatEntryOutputWithContext

func (i DnatEntriesDnatEntryArgs) ToDnatEntriesDnatEntryOutputWithContext(ctx context.Context) DnatEntriesDnatEntryOutput

type DnatEntriesDnatEntryArray

type DnatEntriesDnatEntryArray []DnatEntriesDnatEntryInput

func (DnatEntriesDnatEntryArray) ElementType

func (DnatEntriesDnatEntryArray) ElementType() reflect.Type

func (DnatEntriesDnatEntryArray) ToDnatEntriesDnatEntryArrayOutput

func (i DnatEntriesDnatEntryArray) ToDnatEntriesDnatEntryArrayOutput() DnatEntriesDnatEntryArrayOutput

func (DnatEntriesDnatEntryArray) ToDnatEntriesDnatEntryArrayOutputWithContext

func (i DnatEntriesDnatEntryArray) ToDnatEntriesDnatEntryArrayOutputWithContext(ctx context.Context) DnatEntriesDnatEntryArrayOutput

type DnatEntriesDnatEntryArrayInput

type DnatEntriesDnatEntryArrayInput interface {
	pulumi.Input

	ToDnatEntriesDnatEntryArrayOutput() DnatEntriesDnatEntryArrayOutput
	ToDnatEntriesDnatEntryArrayOutputWithContext(context.Context) DnatEntriesDnatEntryArrayOutput
}

DnatEntriesDnatEntryArrayInput is an input type that accepts DnatEntriesDnatEntryArray and DnatEntriesDnatEntryArrayOutput values. You can construct a concrete instance of `DnatEntriesDnatEntryArrayInput` via:

DnatEntriesDnatEntryArray{ DnatEntriesDnatEntryArgs{...} }

type DnatEntriesDnatEntryArrayOutput

type DnatEntriesDnatEntryArrayOutput struct{ *pulumi.OutputState }

func (DnatEntriesDnatEntryArrayOutput) ElementType

func (DnatEntriesDnatEntryArrayOutput) Index

func (DnatEntriesDnatEntryArrayOutput) ToDnatEntriesDnatEntryArrayOutput

func (o DnatEntriesDnatEntryArrayOutput) ToDnatEntriesDnatEntryArrayOutput() DnatEntriesDnatEntryArrayOutput

func (DnatEntriesDnatEntryArrayOutput) ToDnatEntriesDnatEntryArrayOutputWithContext

func (o DnatEntriesDnatEntryArrayOutput) ToDnatEntriesDnatEntryArrayOutputWithContext(ctx context.Context) DnatEntriesDnatEntryArrayOutput

type DnatEntriesDnatEntryInput

type DnatEntriesDnatEntryInput interface {
	pulumi.Input

	ToDnatEntriesDnatEntryOutput() DnatEntriesDnatEntryOutput
	ToDnatEntriesDnatEntryOutputWithContext(context.Context) DnatEntriesDnatEntryOutput
}

DnatEntriesDnatEntryInput is an input type that accepts DnatEntriesDnatEntryArgs and DnatEntriesDnatEntryOutput values. You can construct a concrete instance of `DnatEntriesDnatEntryInput` via:

DnatEntriesDnatEntryArgs{...}

type DnatEntriesDnatEntryOutput

type DnatEntriesDnatEntryOutput struct{ *pulumi.OutputState }

func (DnatEntriesDnatEntryOutput) DnatEntryId

The ID of the DNAT entry.

func (DnatEntriesDnatEntryOutput) DnatEntryName

The name of the DNAT entry.

func (DnatEntriesDnatEntryOutput) ElementType

func (DnatEntriesDnatEntryOutput) ElementType() reflect.Type

func (DnatEntriesDnatEntryOutput) ExternalIp

Provides the public IP address for public network access.

func (DnatEntriesDnatEntryOutput) ExternalPort

The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.

func (DnatEntriesDnatEntryOutput) InternalIp

Provides the internal IP address.

func (DnatEntriesDnatEntryOutput) InternalPort

The port or port segment on which the cloud server instance provides services to the public network.

func (DnatEntriesDnatEntryOutput) NatGatewayId

The id of the NAT gateway.

func (DnatEntriesDnatEntryOutput) Protocol

The network protocol.

func (DnatEntriesDnatEntryOutput) Status

The network status.

func (DnatEntriesDnatEntryOutput) ToDnatEntriesDnatEntryOutput

func (o DnatEntriesDnatEntryOutput) ToDnatEntriesDnatEntryOutput() DnatEntriesDnatEntryOutput

func (DnatEntriesDnatEntryOutput) ToDnatEntriesDnatEntryOutputWithContext

func (o DnatEntriesDnatEntryOutput) ToDnatEntriesDnatEntryOutputWithContext(ctx context.Context) DnatEntriesDnatEntryOutput

type DnatEntriesOutputArgs

type DnatEntriesOutputArgs struct {
	// The name of the DNAT entry.
	DnatEntryName pulumi.StringPtrInput `pulumi:"dnatEntryName"`
	// Provides the public IP address for public network access.
	ExternalIp pulumi.StringPtrInput `pulumi:"externalIp"`
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort pulumi.StringPtrInput `pulumi:"externalPort"`
	// A list of DNAT entry ids.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// Provides the internal IP address.
	InternalIp pulumi.StringPtrInput `pulumi:"internalIp"`
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort pulumi.StringPtrInput `pulumi:"internalPort"`
	// The id of the NAT gateway.
	NatGatewayId pulumi.StringPtrInput `pulumi:"natGatewayId"`
	// File name where to save data source results.
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The network protocol.
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
}

A collection of arguments for invoking DnatEntries.

func (DnatEntriesOutputArgs) ElementType

func (DnatEntriesOutputArgs) ElementType() reflect.Type

type DnatEntriesResult

type DnatEntriesResult struct {
	// List of DNAT entries.
	DnatEntries []DnatEntriesDnatEntry `pulumi:"dnatEntries"`
	// The name of the DNAT entry.
	DnatEntryName *string `pulumi:"dnatEntryName"`
	// Provides the public IP address for public network access.
	ExternalIp *string `pulumi:"externalIp"`
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort *string `pulumi:"externalPort"`
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// Provides the internal IP address.
	InternalIp *string `pulumi:"internalIp"`
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort *string `pulumi:"internalPort"`
	// The ID of the NAT gateway.
	NatGatewayId *string `pulumi:"natGatewayId"`
	OutputFile   *string `pulumi:"outputFile"`
	// The network protocol.
	Protocol *string `pulumi:"protocol"`
	// The total count of snat entries query.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by DnatEntries.

func DnatEntries

func DnatEntries(ctx *pulumi.Context, args *DnatEntriesArgs, opts ...pulumi.InvokeOption) (*DnatEntriesResult, error)

Use this data source to query detailed information of dnat entries ## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/eip"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooGateway, err := nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
			VpcId:          fooVpc.ID(),
			SubnetId:       fooSubnet.ID(),
			Spec:           pulumi.String("Small"),
			NatGatewayName: pulumi.String("acc-test-ng"),
			Description:    pulumi.String("acc-test"),
			BillingType:    pulumi.String("PostPaid"),
			ProjectName:    pulumi.String("default"),
			Tags: nat.GatewayTagArray{
				&nat.GatewayTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		fooAddress, err := eip.NewAddress(ctx, "fooAddress", &eip.AddressArgs{
			Description: pulumi.String("acc-test"),
			Bandwidth:   pulumi.Int(1),
			BillingType: pulumi.String("PostPaidByBandwidth"),
			Isp:         pulumi.String("BGP"),
		})
		if err != nil {
			return err
		}
		fooAssociate, err := eip.NewAssociate(ctx, "fooAssociate", &eip.AssociateArgs{
			AllocationId: fooAddress.ID(),
			InstanceId:   fooGateway.ID(),
			InstanceType: pulumi.String("Nat"),
		})
		if err != nil {
			return err
		}
		fooDnatEntry, err := nat.NewDnatEntry(ctx, "fooDnatEntry", &nat.DnatEntryArgs{
			DnatEntryName: pulumi.String("acc-test-dnat-entry"),
			ExternalIp:    fooAddress.EipAddress,
			ExternalPort:  pulumi.String("80"),
			InternalIp:    pulumi.String("172.16.0.10"),
			InternalPort:  pulumi.String("80"),
			NatGatewayId:  fooGateway.ID(),
			Protocol:      pulumi.String("tcp"),
		}, pulumi.DependsOn([]pulumi.Resource{
			fooAssociate,
		}))
		if err != nil {
			return err
		}
		_ = nat.DnatEntriesOutput(ctx, nat.DnatEntriesOutputArgs{
			Ids: pulumi.StringArray{
				fooDnatEntry.ID(),
			},
		}, nil)
		return nil
	})
}

```

type DnatEntriesResultOutput

type DnatEntriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by DnatEntries.

func (DnatEntriesResultOutput) DnatEntries

List of DNAT entries.

func (DnatEntriesResultOutput) DnatEntryName

The name of the DNAT entry.

func (DnatEntriesResultOutput) ElementType

func (DnatEntriesResultOutput) ElementType() reflect.Type

func (DnatEntriesResultOutput) ExternalIp

Provides the public IP address for public network access.

func (DnatEntriesResultOutput) ExternalPort

The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.

func (DnatEntriesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (DnatEntriesResultOutput) Ids

func (DnatEntriesResultOutput) InternalIp

Provides the internal IP address.

func (DnatEntriesResultOutput) InternalPort

The port or port segment on which the cloud server instance provides services to the public network.

func (DnatEntriesResultOutput) NatGatewayId

The ID of the NAT gateway.

func (DnatEntriesResultOutput) OutputFile

func (DnatEntriesResultOutput) Protocol

The network protocol.

func (DnatEntriesResultOutput) ToDnatEntriesResultOutput

func (o DnatEntriesResultOutput) ToDnatEntriesResultOutput() DnatEntriesResultOutput

func (DnatEntriesResultOutput) ToDnatEntriesResultOutputWithContext

func (o DnatEntriesResultOutput) ToDnatEntriesResultOutputWithContext(ctx context.Context) DnatEntriesResultOutput

func (DnatEntriesResultOutput) TotalCount

func (o DnatEntriesResultOutput) TotalCount() pulumi.IntOutput

The total count of snat entries query.

type DnatEntry

type DnatEntry struct {
	pulumi.CustomResourceState

	// The id of the DNAT rule.
	DnatEntryId pulumi.StringOutput `pulumi:"dnatEntryId"`
	// The name of the DNAT rule.
	DnatEntryName pulumi.StringPtrOutput `pulumi:"dnatEntryName"`
	// Provides the public IP address for public network access.
	ExternalIp pulumi.StringOutput `pulumi:"externalIp"`
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort pulumi.StringOutput `pulumi:"externalPort"`
	// Provides the internal IP address.
	InternalIp pulumi.StringOutput `pulumi:"internalIp"`
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort pulumi.StringOutput `pulumi:"internalPort"`
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringOutput `pulumi:"natGatewayId"`
	// The network protocol.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
}

Provides a resource to manage dnat entry ## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/eip"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooGateway, err := nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
			VpcId:          fooVpc.ID(),
			SubnetId:       fooSubnet.ID(),
			Spec:           pulumi.String("Small"),
			NatGatewayName: pulumi.String("acc-test-ng"),
			Description:    pulumi.String("acc-test"),
			BillingType:    pulumi.String("PostPaid"),
			ProjectName:    pulumi.String("default"),
			Tags: nat.GatewayTagArray{
				&nat.GatewayTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		fooAddress, err := eip.NewAddress(ctx, "fooAddress", &eip.AddressArgs{
			Description: pulumi.String("acc-test"),
			Bandwidth:   pulumi.Int(1),
			BillingType: pulumi.String("PostPaidByBandwidth"),
			Isp:         pulumi.String("BGP"),
		})
		if err != nil {
			return err
		}
		fooAssociate, err := eip.NewAssociate(ctx, "fooAssociate", &eip.AssociateArgs{
			AllocationId: fooAddress.ID(),
			InstanceId:   fooGateway.ID(),
			InstanceType: pulumi.String("Nat"),
		})
		if err != nil {
			return err
		}
		_, err = nat.NewDnatEntry(ctx, "fooDnatEntry", &nat.DnatEntryArgs{
			DnatEntryName: pulumi.String("acc-test-dnat-entry"),
			ExternalIp:    fooAddress.EipAddress,
			ExternalPort:  pulumi.String("80"),
			InternalIp:    pulumi.String("172.16.0.10"),
			InternalPort:  pulumi.String("80"),
			NatGatewayId:  fooGateway.ID(),
			Protocol:      pulumi.String("tcp"),
		}, pulumi.DependsOn([]pulumi.Resource{
			fooAssociate,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Dnat entry can be imported using the id, e.g.

```sh

$ pulumi import volcengine:nat/dnatEntry:DnatEntry default dnat-3fvhk47kf56****

```

func GetDnatEntry

func GetDnatEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DnatEntryState, opts ...pulumi.ResourceOption) (*DnatEntry, error)

GetDnatEntry gets an existing DnatEntry resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDnatEntry

func NewDnatEntry(ctx *pulumi.Context,
	name string, args *DnatEntryArgs, opts ...pulumi.ResourceOption) (*DnatEntry, error)

NewDnatEntry registers a new resource with the given unique name, arguments, and options.

func (*DnatEntry) ElementType

func (*DnatEntry) ElementType() reflect.Type

func (*DnatEntry) ToDnatEntryOutput

func (i *DnatEntry) ToDnatEntryOutput() DnatEntryOutput

func (*DnatEntry) ToDnatEntryOutputWithContext

func (i *DnatEntry) ToDnatEntryOutputWithContext(ctx context.Context) DnatEntryOutput

type DnatEntryArgs

type DnatEntryArgs struct {
	// The name of the DNAT rule.
	DnatEntryName pulumi.StringPtrInput
	// Provides the public IP address for public network access.
	ExternalIp pulumi.StringInput
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort pulumi.StringInput
	// Provides the internal IP address.
	InternalIp pulumi.StringInput
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort pulumi.StringInput
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringInput
	// The network protocol.
	Protocol pulumi.StringInput
}

The set of arguments for constructing a DnatEntry resource.

func (DnatEntryArgs) ElementType

func (DnatEntryArgs) ElementType() reflect.Type

type DnatEntryArray

type DnatEntryArray []DnatEntryInput

func (DnatEntryArray) ElementType

func (DnatEntryArray) ElementType() reflect.Type

func (DnatEntryArray) ToDnatEntryArrayOutput

func (i DnatEntryArray) ToDnatEntryArrayOutput() DnatEntryArrayOutput

func (DnatEntryArray) ToDnatEntryArrayOutputWithContext

func (i DnatEntryArray) ToDnatEntryArrayOutputWithContext(ctx context.Context) DnatEntryArrayOutput

type DnatEntryArrayInput

type DnatEntryArrayInput interface {
	pulumi.Input

	ToDnatEntryArrayOutput() DnatEntryArrayOutput
	ToDnatEntryArrayOutputWithContext(context.Context) DnatEntryArrayOutput
}

DnatEntryArrayInput is an input type that accepts DnatEntryArray and DnatEntryArrayOutput values. You can construct a concrete instance of `DnatEntryArrayInput` via:

DnatEntryArray{ DnatEntryArgs{...} }

type DnatEntryArrayOutput

type DnatEntryArrayOutput struct{ *pulumi.OutputState }

func (DnatEntryArrayOutput) ElementType

func (DnatEntryArrayOutput) ElementType() reflect.Type

func (DnatEntryArrayOutput) Index

func (DnatEntryArrayOutput) ToDnatEntryArrayOutput

func (o DnatEntryArrayOutput) ToDnatEntryArrayOutput() DnatEntryArrayOutput

func (DnatEntryArrayOutput) ToDnatEntryArrayOutputWithContext

func (o DnatEntryArrayOutput) ToDnatEntryArrayOutputWithContext(ctx context.Context) DnatEntryArrayOutput

type DnatEntryInput

type DnatEntryInput interface {
	pulumi.Input

	ToDnatEntryOutput() DnatEntryOutput
	ToDnatEntryOutputWithContext(ctx context.Context) DnatEntryOutput
}

type DnatEntryMap

type DnatEntryMap map[string]DnatEntryInput

func (DnatEntryMap) ElementType

func (DnatEntryMap) ElementType() reflect.Type

func (DnatEntryMap) ToDnatEntryMapOutput

func (i DnatEntryMap) ToDnatEntryMapOutput() DnatEntryMapOutput

func (DnatEntryMap) ToDnatEntryMapOutputWithContext

func (i DnatEntryMap) ToDnatEntryMapOutputWithContext(ctx context.Context) DnatEntryMapOutput

type DnatEntryMapInput

type DnatEntryMapInput interface {
	pulumi.Input

	ToDnatEntryMapOutput() DnatEntryMapOutput
	ToDnatEntryMapOutputWithContext(context.Context) DnatEntryMapOutput
}

DnatEntryMapInput is an input type that accepts DnatEntryMap and DnatEntryMapOutput values. You can construct a concrete instance of `DnatEntryMapInput` via:

DnatEntryMap{ "key": DnatEntryArgs{...} }

type DnatEntryMapOutput

type DnatEntryMapOutput struct{ *pulumi.OutputState }

func (DnatEntryMapOutput) ElementType

func (DnatEntryMapOutput) ElementType() reflect.Type

func (DnatEntryMapOutput) MapIndex

func (DnatEntryMapOutput) ToDnatEntryMapOutput

func (o DnatEntryMapOutput) ToDnatEntryMapOutput() DnatEntryMapOutput

func (DnatEntryMapOutput) ToDnatEntryMapOutputWithContext

func (o DnatEntryMapOutput) ToDnatEntryMapOutputWithContext(ctx context.Context) DnatEntryMapOutput

type DnatEntryOutput

type DnatEntryOutput struct{ *pulumi.OutputState }

func (DnatEntryOutput) DnatEntryId

func (o DnatEntryOutput) DnatEntryId() pulumi.StringOutput

The id of the DNAT rule.

func (DnatEntryOutput) DnatEntryName

func (o DnatEntryOutput) DnatEntryName() pulumi.StringPtrOutput

The name of the DNAT rule.

func (DnatEntryOutput) ElementType

func (DnatEntryOutput) ElementType() reflect.Type

func (DnatEntryOutput) ExternalIp

func (o DnatEntryOutput) ExternalIp() pulumi.StringOutput

Provides the public IP address for public network access.

func (DnatEntryOutput) ExternalPort

func (o DnatEntryOutput) ExternalPort() pulumi.StringOutput

The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.

func (DnatEntryOutput) InternalIp

func (o DnatEntryOutput) InternalIp() pulumi.StringOutput

Provides the internal IP address.

func (DnatEntryOutput) InternalPort

func (o DnatEntryOutput) InternalPort() pulumi.StringOutput

The port or port segment on which the cloud server instance provides services to the public network.

func (DnatEntryOutput) NatGatewayId

func (o DnatEntryOutput) NatGatewayId() pulumi.StringOutput

The id of the nat gateway to which the entry belongs.

func (DnatEntryOutput) Protocol

func (o DnatEntryOutput) Protocol() pulumi.StringOutput

The network protocol.

func (DnatEntryOutput) ToDnatEntryOutput

func (o DnatEntryOutput) ToDnatEntryOutput() DnatEntryOutput

func (DnatEntryOutput) ToDnatEntryOutputWithContext

func (o DnatEntryOutput) ToDnatEntryOutputWithContext(ctx context.Context) DnatEntryOutput

type DnatEntryState

type DnatEntryState struct {
	// The id of the DNAT rule.
	DnatEntryId pulumi.StringPtrInput
	// The name of the DNAT rule.
	DnatEntryName pulumi.StringPtrInput
	// Provides the public IP address for public network access.
	ExternalIp pulumi.StringPtrInput
	// The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
	ExternalPort pulumi.StringPtrInput
	// Provides the internal IP address.
	InternalIp pulumi.StringPtrInput
	// The port or port segment on which the cloud server instance provides services to the public network.
	InternalPort pulumi.StringPtrInput
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringPtrInput
	// The network protocol.
	Protocol pulumi.StringPtrInput
}

func (DnatEntryState) ElementType

func (DnatEntryState) ElementType() reflect.Type

type Gateway

type Gateway struct {
	pulumi.CustomResourceState

	// The billing type of the NatGateway, the value is `PostPaid` or `PrePaid`.
	BillingType pulumi.StringPtrOutput `pulumi:"billingType"`
	// The description of the NatGateway.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the NatGateway.
	NatGatewayName pulumi.StringPtrOutput `pulumi:"natGatewayName"`
	// The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// The ProjectName of the NatGateway.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// The specification of the NatGateway. Optional choice contains `Small`(default), `Medium`, `Large`.
	Spec pulumi.StringPtrOutput `pulumi:"spec"`
	// The ID of the Subnet.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// Tags.
	Tags GatewayTagArrayOutput `pulumi:"tags"`
	// The ID of the VPC.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		_, err = nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
			VpcId:          fooVpc.ID(),
			SubnetId:       fooSubnet.ID(),
			Spec:           pulumi.String("Small"),
			NatGatewayName: pulumi.String("acc-test-ng"),
			Description:    pulumi.String("acc-test"),
			BillingType:    pulumi.String("PostPaid"),
			ProjectName:    pulumi.String("default"),
			Tags: nat.GatewayTagArray{
				&nat.GatewayTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

NatGateway can be imported using the id, e.g.

```sh

$ pulumi import volcengine:nat/gateway:Gateway default ngw-vv3t043k05sm****

```

func GetGateway

func GetGateway(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayState, opts ...pulumi.ResourceOption) (*Gateway, error)

GetGateway gets an existing Gateway resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGateway

func NewGateway(ctx *pulumi.Context,
	name string, args *GatewayArgs, opts ...pulumi.ResourceOption) (*Gateway, error)

NewGateway registers a new resource with the given unique name, arguments, and options.

func (*Gateway) ElementType

func (*Gateway) ElementType() reflect.Type

func (*Gateway) ToGatewayOutput

func (i *Gateway) ToGatewayOutput() GatewayOutput

func (*Gateway) ToGatewayOutputWithContext

func (i *Gateway) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput

type GatewayArgs

type GatewayArgs struct {
	// The billing type of the NatGateway, the value is `PostPaid` or `PrePaid`.
	BillingType pulumi.StringPtrInput
	// The description of the NatGateway.
	Description pulumi.StringPtrInput
	// The name of the NatGateway.
	NatGatewayName pulumi.StringPtrInput
	// The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
	Period pulumi.IntPtrInput
	// The ProjectName of the NatGateway.
	ProjectName pulumi.StringPtrInput
	// The specification of the NatGateway. Optional choice contains `Small`(default), `Medium`, `Large`.
	Spec pulumi.StringPtrInput
	// The ID of the Subnet.
	SubnetId pulumi.StringInput
	// Tags.
	Tags GatewayTagArrayInput
	// The ID of the VPC.
	VpcId pulumi.StringInput
}

The set of arguments for constructing a Gateway resource.

func (GatewayArgs) ElementType

func (GatewayArgs) ElementType() reflect.Type

type GatewayArray

type GatewayArray []GatewayInput

func (GatewayArray) ElementType

func (GatewayArray) ElementType() reflect.Type

func (GatewayArray) ToGatewayArrayOutput

func (i GatewayArray) ToGatewayArrayOutput() GatewayArrayOutput

func (GatewayArray) ToGatewayArrayOutputWithContext

func (i GatewayArray) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput

type GatewayArrayInput

type GatewayArrayInput interface {
	pulumi.Input

	ToGatewayArrayOutput() GatewayArrayOutput
	ToGatewayArrayOutputWithContext(context.Context) GatewayArrayOutput
}

GatewayArrayInput is an input type that accepts GatewayArray and GatewayArrayOutput values. You can construct a concrete instance of `GatewayArrayInput` via:

GatewayArray{ GatewayArgs{...} }

type GatewayArrayOutput

type GatewayArrayOutput struct{ *pulumi.OutputState }

func (GatewayArrayOutput) ElementType

func (GatewayArrayOutput) ElementType() reflect.Type

func (GatewayArrayOutput) Index

func (GatewayArrayOutput) ToGatewayArrayOutput

func (o GatewayArrayOutput) ToGatewayArrayOutput() GatewayArrayOutput

func (GatewayArrayOutput) ToGatewayArrayOutputWithContext

func (o GatewayArrayOutput) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput

type GatewayInput

type GatewayInput interface {
	pulumi.Input

	ToGatewayOutput() GatewayOutput
	ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
}

type GatewayMap

type GatewayMap map[string]GatewayInput

func (GatewayMap) ElementType

func (GatewayMap) ElementType() reflect.Type

func (GatewayMap) ToGatewayMapOutput

func (i GatewayMap) ToGatewayMapOutput() GatewayMapOutput

func (GatewayMap) ToGatewayMapOutputWithContext

func (i GatewayMap) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput

type GatewayMapInput

type GatewayMapInput interface {
	pulumi.Input

	ToGatewayMapOutput() GatewayMapOutput
	ToGatewayMapOutputWithContext(context.Context) GatewayMapOutput
}

GatewayMapInput is an input type that accepts GatewayMap and GatewayMapOutput values. You can construct a concrete instance of `GatewayMapInput` via:

GatewayMap{ "key": GatewayArgs{...} }

type GatewayMapOutput

type GatewayMapOutput struct{ *pulumi.OutputState }

func (GatewayMapOutput) ElementType

func (GatewayMapOutput) ElementType() reflect.Type

func (GatewayMapOutput) MapIndex

func (GatewayMapOutput) ToGatewayMapOutput

func (o GatewayMapOutput) ToGatewayMapOutput() GatewayMapOutput

func (GatewayMapOutput) ToGatewayMapOutputWithContext

func (o GatewayMapOutput) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput

type GatewayOutput

type GatewayOutput struct{ *pulumi.OutputState }

func (GatewayOutput) BillingType

func (o GatewayOutput) BillingType() pulumi.StringPtrOutput

The billing type of the NatGateway, the value is `PostPaid` or `PrePaid`.

func (GatewayOutput) Description

func (o GatewayOutput) Description() pulumi.StringPtrOutput

The description of the NatGateway.

func (GatewayOutput) ElementType

func (GatewayOutput) ElementType() reflect.Type

func (GatewayOutput) NatGatewayName

func (o GatewayOutput) NatGatewayName() pulumi.StringPtrOutput

The name of the NatGateway.

func (GatewayOutput) Period

func (o GatewayOutput) Period() pulumi.IntPtrOutput

The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.

func (GatewayOutput) ProjectName

func (o GatewayOutput) ProjectName() pulumi.StringOutput

The ProjectName of the NatGateway.

func (GatewayOutput) Spec

The specification of the NatGateway. Optional choice contains `Small`(default), `Medium`, `Large`.

func (GatewayOutput) SubnetId

func (o GatewayOutput) SubnetId() pulumi.StringOutput

The ID of the Subnet.

func (GatewayOutput) Tags

Tags.

func (GatewayOutput) ToGatewayOutput

func (o GatewayOutput) ToGatewayOutput() GatewayOutput

func (GatewayOutput) ToGatewayOutputWithContext

func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput

func (GatewayOutput) VpcId

func (o GatewayOutput) VpcId() pulumi.StringOutput

The ID of the VPC.

type GatewayState

type GatewayState struct {
	// The billing type of the NatGateway, the value is `PostPaid` or `PrePaid`.
	BillingType pulumi.StringPtrInput
	// The description of the NatGateway.
	Description pulumi.StringPtrInput
	// The name of the NatGateway.
	NatGatewayName pulumi.StringPtrInput
	// The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
	Period pulumi.IntPtrInput
	// The ProjectName of the NatGateway.
	ProjectName pulumi.StringPtrInput
	// The specification of the NatGateway. Optional choice contains `Small`(default), `Medium`, `Large`.
	Spec pulumi.StringPtrInput
	// The ID of the Subnet.
	SubnetId pulumi.StringPtrInput
	// Tags.
	Tags GatewayTagArrayInput
	// The ID of the VPC.
	VpcId pulumi.StringPtrInput
}

func (GatewayState) ElementType

func (GatewayState) ElementType() reflect.Type

type GatewayTag

type GatewayTag struct {
	// The Key of Tags.
	Key string `pulumi:"key"`
	// The Value of Tags.
	Value string `pulumi:"value"`
}

type GatewayTagArgs

type GatewayTagArgs struct {
	// The Key of Tags.
	Key pulumi.StringInput `pulumi:"key"`
	// The Value of Tags.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GatewayTagArgs) ElementType

func (GatewayTagArgs) ElementType() reflect.Type

func (GatewayTagArgs) ToGatewayTagOutput

func (i GatewayTagArgs) ToGatewayTagOutput() GatewayTagOutput

func (GatewayTagArgs) ToGatewayTagOutputWithContext

func (i GatewayTagArgs) ToGatewayTagOutputWithContext(ctx context.Context) GatewayTagOutput

type GatewayTagArray

type GatewayTagArray []GatewayTagInput

func (GatewayTagArray) ElementType

func (GatewayTagArray) ElementType() reflect.Type

func (GatewayTagArray) ToGatewayTagArrayOutput

func (i GatewayTagArray) ToGatewayTagArrayOutput() GatewayTagArrayOutput

func (GatewayTagArray) ToGatewayTagArrayOutputWithContext

func (i GatewayTagArray) ToGatewayTagArrayOutputWithContext(ctx context.Context) GatewayTagArrayOutput

type GatewayTagArrayInput

type GatewayTagArrayInput interface {
	pulumi.Input

	ToGatewayTagArrayOutput() GatewayTagArrayOutput
	ToGatewayTagArrayOutputWithContext(context.Context) GatewayTagArrayOutput
}

GatewayTagArrayInput is an input type that accepts GatewayTagArray and GatewayTagArrayOutput values. You can construct a concrete instance of `GatewayTagArrayInput` via:

GatewayTagArray{ GatewayTagArgs{...} }

type GatewayTagArrayOutput

type GatewayTagArrayOutput struct{ *pulumi.OutputState }

func (GatewayTagArrayOutput) ElementType

func (GatewayTagArrayOutput) ElementType() reflect.Type

func (GatewayTagArrayOutput) Index

func (GatewayTagArrayOutput) ToGatewayTagArrayOutput

func (o GatewayTagArrayOutput) ToGatewayTagArrayOutput() GatewayTagArrayOutput

func (GatewayTagArrayOutput) ToGatewayTagArrayOutputWithContext

func (o GatewayTagArrayOutput) ToGatewayTagArrayOutputWithContext(ctx context.Context) GatewayTagArrayOutput

type GatewayTagInput

type GatewayTagInput interface {
	pulumi.Input

	ToGatewayTagOutput() GatewayTagOutput
	ToGatewayTagOutputWithContext(context.Context) GatewayTagOutput
}

GatewayTagInput is an input type that accepts GatewayTagArgs and GatewayTagOutput values. You can construct a concrete instance of `GatewayTagInput` via:

GatewayTagArgs{...}

type GatewayTagOutput

type GatewayTagOutput struct{ *pulumi.OutputState }

func (GatewayTagOutput) ElementType

func (GatewayTagOutput) ElementType() reflect.Type

func (GatewayTagOutput) Key

The Key of Tags.

func (GatewayTagOutput) ToGatewayTagOutput

func (o GatewayTagOutput) ToGatewayTagOutput() GatewayTagOutput

func (GatewayTagOutput) ToGatewayTagOutputWithContext

func (o GatewayTagOutput) ToGatewayTagOutputWithContext(ctx context.Context) GatewayTagOutput

func (GatewayTagOutput) Value

The Value of Tags.

type GatewaysArgs

type GatewaysArgs struct {
	// The description of the NatGateway.
	Description *string `pulumi:"description"`
	// The list of NatGateway IDs.
	Ids []string `pulumi:"ids"`
	// The Name Regex of NatGateway.
	NameRegex *string `pulumi:"nameRegex"`
	// The name of the NatGateway.
	NatGatewayName *string `pulumi:"natGatewayName"`
	// File name where to save data source results.
	OutputFile *string `pulumi:"outputFile"`
	// The specification of the NatGateway.
	Spec *string `pulumi:"spec"`
	// The id of the Subnet.
	SubnetId *string `pulumi:"subnetId"`
	// Tags.
	Tags []GatewaysTag `pulumi:"tags"`
	// The id of the VPC.
	VpcId *string `pulumi:"vpcId"`
}

A collection of arguments for invoking Gateways.

type GatewaysNatGateway

type GatewaysNatGateway struct {
	// The billing type of the NatGateway.
	BillingType string `pulumi:"billingType"`
	// Whether the NatGateway is locked.
	BusinessStatus string `pulumi:"businessStatus"`
	// The creation time of the NatGateway.
	CreationTime string `pulumi:"creationTime"`
	// The deleted time of the NatGateway.
	DeletedTime string `pulumi:"deletedTime"`
	// The description of the NatGateway.
	Description string `pulumi:"description"`
	// The eip addresses of the NatGateway.
	EipAddresses []GatewaysNatGatewayEipAddress `pulumi:"eipAddresses"`
	// The ID of the NatGateway.
	Id string `pulumi:"id"`
	// The reason why locking NatGateway.
	LockReason string `pulumi:"lockReason"`
	// The ID of the NatGateway.
	NatGatewayId string `pulumi:"natGatewayId"`
	// The name of the NatGateway.
	NatGatewayName string `pulumi:"natGatewayName"`
	// The ID of the network interface.
	NetworkInterfaceId string `pulumi:"networkInterfaceId"`
	// The overdue time of the NatGateway.
	OverdueTime string `pulumi:"overdueTime"`
	// The specification of the NatGateway.
	Spec string `pulumi:"spec"`
	// The status of the NatGateway.
	Status string `pulumi:"status"`
	// The id of the Subnet.
	SubnetId string `pulumi:"subnetId"`
	// Tags.
	Tags []GatewaysNatGatewayTag `pulumi:"tags"`
	// The update time of the NatGateway.
	UpdatedAt string `pulumi:"updatedAt"`
	// The id of the VPC.
	VpcId string `pulumi:"vpcId"`
}

type GatewaysNatGatewayArgs

type GatewaysNatGatewayArgs struct {
	// The billing type of the NatGateway.
	BillingType pulumi.StringInput `pulumi:"billingType"`
	// Whether the NatGateway is locked.
	BusinessStatus pulumi.StringInput `pulumi:"businessStatus"`
	// The creation time of the NatGateway.
	CreationTime pulumi.StringInput `pulumi:"creationTime"`
	// The deleted time of the NatGateway.
	DeletedTime pulumi.StringInput `pulumi:"deletedTime"`
	// The description of the NatGateway.
	Description pulumi.StringInput `pulumi:"description"`
	// The eip addresses of the NatGateway.
	EipAddresses GatewaysNatGatewayEipAddressArrayInput `pulumi:"eipAddresses"`
	// The ID of the NatGateway.
	Id pulumi.StringInput `pulumi:"id"`
	// The reason why locking NatGateway.
	LockReason pulumi.StringInput `pulumi:"lockReason"`
	// The ID of the NatGateway.
	NatGatewayId pulumi.StringInput `pulumi:"natGatewayId"`
	// The name of the NatGateway.
	NatGatewayName pulumi.StringInput `pulumi:"natGatewayName"`
	// The ID of the network interface.
	NetworkInterfaceId pulumi.StringInput `pulumi:"networkInterfaceId"`
	// The overdue time of the NatGateway.
	OverdueTime pulumi.StringInput `pulumi:"overdueTime"`
	// The specification of the NatGateway.
	Spec pulumi.StringInput `pulumi:"spec"`
	// The status of the NatGateway.
	Status pulumi.StringInput `pulumi:"status"`
	// The id of the Subnet.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
	// Tags.
	Tags GatewaysNatGatewayTagArrayInput `pulumi:"tags"`
	// The update time of the NatGateway.
	UpdatedAt pulumi.StringInput `pulumi:"updatedAt"`
	// The id of the VPC.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
}

func (GatewaysNatGatewayArgs) ElementType

func (GatewaysNatGatewayArgs) ElementType() reflect.Type

func (GatewaysNatGatewayArgs) ToGatewaysNatGatewayOutput

func (i GatewaysNatGatewayArgs) ToGatewaysNatGatewayOutput() GatewaysNatGatewayOutput

func (GatewaysNatGatewayArgs) ToGatewaysNatGatewayOutputWithContext

func (i GatewaysNatGatewayArgs) ToGatewaysNatGatewayOutputWithContext(ctx context.Context) GatewaysNatGatewayOutput

type GatewaysNatGatewayArray

type GatewaysNatGatewayArray []GatewaysNatGatewayInput

func (GatewaysNatGatewayArray) ElementType

func (GatewaysNatGatewayArray) ElementType() reflect.Type

func (GatewaysNatGatewayArray) ToGatewaysNatGatewayArrayOutput

func (i GatewaysNatGatewayArray) ToGatewaysNatGatewayArrayOutput() GatewaysNatGatewayArrayOutput

func (GatewaysNatGatewayArray) ToGatewaysNatGatewayArrayOutputWithContext

func (i GatewaysNatGatewayArray) ToGatewaysNatGatewayArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayArrayOutput

type GatewaysNatGatewayArrayInput

type GatewaysNatGatewayArrayInput interface {
	pulumi.Input

	ToGatewaysNatGatewayArrayOutput() GatewaysNatGatewayArrayOutput
	ToGatewaysNatGatewayArrayOutputWithContext(context.Context) GatewaysNatGatewayArrayOutput
}

GatewaysNatGatewayArrayInput is an input type that accepts GatewaysNatGatewayArray and GatewaysNatGatewayArrayOutput values. You can construct a concrete instance of `GatewaysNatGatewayArrayInput` via:

GatewaysNatGatewayArray{ GatewaysNatGatewayArgs{...} }

type GatewaysNatGatewayArrayOutput

type GatewaysNatGatewayArrayOutput struct{ *pulumi.OutputState }

func (GatewaysNatGatewayArrayOutput) ElementType

func (GatewaysNatGatewayArrayOutput) Index

func (GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutput

func (o GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutput() GatewaysNatGatewayArrayOutput

func (GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutputWithContext

func (o GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayArrayOutput

type GatewaysNatGatewayEipAddress

type GatewaysNatGatewayEipAddress struct {
	// The ID of Eip.
	AllocationId string `pulumi:"allocationId"`
	// The address of Eip.
	EipAddress string `pulumi:"eipAddress"`
	// The using status of Eip.
	UsingStatus string `pulumi:"usingStatus"`
}

type GatewaysNatGatewayEipAddressArgs

type GatewaysNatGatewayEipAddressArgs struct {
	// The ID of Eip.
	AllocationId pulumi.StringInput `pulumi:"allocationId"`
	// The address of Eip.
	EipAddress pulumi.StringInput `pulumi:"eipAddress"`
	// The using status of Eip.
	UsingStatus pulumi.StringInput `pulumi:"usingStatus"`
}

func (GatewaysNatGatewayEipAddressArgs) ElementType

func (GatewaysNatGatewayEipAddressArgs) ToGatewaysNatGatewayEipAddressOutput

func (i GatewaysNatGatewayEipAddressArgs) ToGatewaysNatGatewayEipAddressOutput() GatewaysNatGatewayEipAddressOutput

func (GatewaysNatGatewayEipAddressArgs) ToGatewaysNatGatewayEipAddressOutputWithContext

func (i GatewaysNatGatewayEipAddressArgs) ToGatewaysNatGatewayEipAddressOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressOutput

type GatewaysNatGatewayEipAddressArray

type GatewaysNatGatewayEipAddressArray []GatewaysNatGatewayEipAddressInput

func (GatewaysNatGatewayEipAddressArray) ElementType

func (GatewaysNatGatewayEipAddressArray) ToGatewaysNatGatewayEipAddressArrayOutput

func (i GatewaysNatGatewayEipAddressArray) ToGatewaysNatGatewayEipAddressArrayOutput() GatewaysNatGatewayEipAddressArrayOutput

func (GatewaysNatGatewayEipAddressArray) ToGatewaysNatGatewayEipAddressArrayOutputWithContext

func (i GatewaysNatGatewayEipAddressArray) ToGatewaysNatGatewayEipAddressArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressArrayOutput

type GatewaysNatGatewayEipAddressArrayInput

type GatewaysNatGatewayEipAddressArrayInput interface {
	pulumi.Input

	ToGatewaysNatGatewayEipAddressArrayOutput() GatewaysNatGatewayEipAddressArrayOutput
	ToGatewaysNatGatewayEipAddressArrayOutputWithContext(context.Context) GatewaysNatGatewayEipAddressArrayOutput
}

GatewaysNatGatewayEipAddressArrayInput is an input type that accepts GatewaysNatGatewayEipAddressArray and GatewaysNatGatewayEipAddressArrayOutput values. You can construct a concrete instance of `GatewaysNatGatewayEipAddressArrayInput` via:

GatewaysNatGatewayEipAddressArray{ GatewaysNatGatewayEipAddressArgs{...} }

type GatewaysNatGatewayEipAddressArrayOutput

type GatewaysNatGatewayEipAddressArrayOutput struct{ *pulumi.OutputState }

func (GatewaysNatGatewayEipAddressArrayOutput) ElementType

func (GatewaysNatGatewayEipAddressArrayOutput) Index

func (GatewaysNatGatewayEipAddressArrayOutput) ToGatewaysNatGatewayEipAddressArrayOutput

func (o GatewaysNatGatewayEipAddressArrayOutput) ToGatewaysNatGatewayEipAddressArrayOutput() GatewaysNatGatewayEipAddressArrayOutput

func (GatewaysNatGatewayEipAddressArrayOutput) ToGatewaysNatGatewayEipAddressArrayOutputWithContext

func (o GatewaysNatGatewayEipAddressArrayOutput) ToGatewaysNatGatewayEipAddressArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressArrayOutput

type GatewaysNatGatewayEipAddressInput

type GatewaysNatGatewayEipAddressInput interface {
	pulumi.Input

	ToGatewaysNatGatewayEipAddressOutput() GatewaysNatGatewayEipAddressOutput
	ToGatewaysNatGatewayEipAddressOutputWithContext(context.Context) GatewaysNatGatewayEipAddressOutput
}

GatewaysNatGatewayEipAddressInput is an input type that accepts GatewaysNatGatewayEipAddressArgs and GatewaysNatGatewayEipAddressOutput values. You can construct a concrete instance of `GatewaysNatGatewayEipAddressInput` via:

GatewaysNatGatewayEipAddressArgs{...}

type GatewaysNatGatewayEipAddressOutput

type GatewaysNatGatewayEipAddressOutput struct{ *pulumi.OutputState }

func (GatewaysNatGatewayEipAddressOutput) AllocationId

The ID of Eip.

func (GatewaysNatGatewayEipAddressOutput) EipAddress

The address of Eip.

func (GatewaysNatGatewayEipAddressOutput) ElementType

func (GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutput

func (o GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutput() GatewaysNatGatewayEipAddressOutput

func (GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutputWithContext

func (o GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressOutput

func (GatewaysNatGatewayEipAddressOutput) UsingStatus

The using status of Eip.

type GatewaysNatGatewayInput

type GatewaysNatGatewayInput interface {
	pulumi.Input

	ToGatewaysNatGatewayOutput() GatewaysNatGatewayOutput
	ToGatewaysNatGatewayOutputWithContext(context.Context) GatewaysNatGatewayOutput
}

GatewaysNatGatewayInput is an input type that accepts GatewaysNatGatewayArgs and GatewaysNatGatewayOutput values. You can construct a concrete instance of `GatewaysNatGatewayInput` via:

GatewaysNatGatewayArgs{...}

type GatewaysNatGatewayOutput

type GatewaysNatGatewayOutput struct{ *pulumi.OutputState }

func (GatewaysNatGatewayOutput) BillingType

The billing type of the NatGateway.

func (GatewaysNatGatewayOutput) BusinessStatus

func (o GatewaysNatGatewayOutput) BusinessStatus() pulumi.StringOutput

Whether the NatGateway is locked.

func (GatewaysNatGatewayOutput) CreationTime

func (o GatewaysNatGatewayOutput) CreationTime() pulumi.StringOutput

The creation time of the NatGateway.

func (GatewaysNatGatewayOutput) DeletedTime

The deleted time of the NatGateway.

func (GatewaysNatGatewayOutput) Description

The description of the NatGateway.

func (GatewaysNatGatewayOutput) EipAddresses

The eip addresses of the NatGateway.

func (GatewaysNatGatewayOutput) ElementType

func (GatewaysNatGatewayOutput) ElementType() reflect.Type

func (GatewaysNatGatewayOutput) Id

The ID of the NatGateway.

func (GatewaysNatGatewayOutput) LockReason

The reason why locking NatGateway.

func (GatewaysNatGatewayOutput) NatGatewayId

func (o GatewaysNatGatewayOutput) NatGatewayId() pulumi.StringOutput

The ID of the NatGateway.

func (GatewaysNatGatewayOutput) NatGatewayName

func (o GatewaysNatGatewayOutput) NatGatewayName() pulumi.StringOutput

The name of the NatGateway.

func (GatewaysNatGatewayOutput) NetworkInterfaceId

func (o GatewaysNatGatewayOutput) NetworkInterfaceId() pulumi.StringOutput

The ID of the network interface.

func (GatewaysNatGatewayOutput) OverdueTime

The overdue time of the NatGateway.

func (GatewaysNatGatewayOutput) Spec

The specification of the NatGateway.

func (GatewaysNatGatewayOutput) Status

The status of the NatGateway.

func (GatewaysNatGatewayOutput) SubnetId

The id of the Subnet.

func (GatewaysNatGatewayOutput) Tags

Tags.

func (GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutput

func (o GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutput() GatewaysNatGatewayOutput

func (GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutputWithContext

func (o GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutputWithContext(ctx context.Context) GatewaysNatGatewayOutput

func (GatewaysNatGatewayOutput) UpdatedAt

The update time of the NatGateway.

func (GatewaysNatGatewayOutput) VpcId

The id of the VPC.

type GatewaysNatGatewayTag

type GatewaysNatGatewayTag struct {
	// The Key of Tags.
	Key string `pulumi:"key"`
	// The Value of Tags.
	Value string `pulumi:"value"`
}

type GatewaysNatGatewayTagArgs

type GatewaysNatGatewayTagArgs struct {
	// The Key of Tags.
	Key pulumi.StringInput `pulumi:"key"`
	// The Value of Tags.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GatewaysNatGatewayTagArgs) ElementType

func (GatewaysNatGatewayTagArgs) ElementType() reflect.Type

func (GatewaysNatGatewayTagArgs) ToGatewaysNatGatewayTagOutput

func (i GatewaysNatGatewayTagArgs) ToGatewaysNatGatewayTagOutput() GatewaysNatGatewayTagOutput

func (GatewaysNatGatewayTagArgs) ToGatewaysNatGatewayTagOutputWithContext

func (i GatewaysNatGatewayTagArgs) ToGatewaysNatGatewayTagOutputWithContext(ctx context.Context) GatewaysNatGatewayTagOutput

type GatewaysNatGatewayTagArray

type GatewaysNatGatewayTagArray []GatewaysNatGatewayTagInput

func (GatewaysNatGatewayTagArray) ElementType

func (GatewaysNatGatewayTagArray) ElementType() reflect.Type

func (GatewaysNatGatewayTagArray) ToGatewaysNatGatewayTagArrayOutput

func (i GatewaysNatGatewayTagArray) ToGatewaysNatGatewayTagArrayOutput() GatewaysNatGatewayTagArrayOutput

func (GatewaysNatGatewayTagArray) ToGatewaysNatGatewayTagArrayOutputWithContext

func (i GatewaysNatGatewayTagArray) ToGatewaysNatGatewayTagArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayTagArrayOutput

type GatewaysNatGatewayTagArrayInput

type GatewaysNatGatewayTagArrayInput interface {
	pulumi.Input

	ToGatewaysNatGatewayTagArrayOutput() GatewaysNatGatewayTagArrayOutput
	ToGatewaysNatGatewayTagArrayOutputWithContext(context.Context) GatewaysNatGatewayTagArrayOutput
}

GatewaysNatGatewayTagArrayInput is an input type that accepts GatewaysNatGatewayTagArray and GatewaysNatGatewayTagArrayOutput values. You can construct a concrete instance of `GatewaysNatGatewayTagArrayInput` via:

GatewaysNatGatewayTagArray{ GatewaysNatGatewayTagArgs{...} }

type GatewaysNatGatewayTagArrayOutput

type GatewaysNatGatewayTagArrayOutput struct{ *pulumi.OutputState }

func (GatewaysNatGatewayTagArrayOutput) ElementType

func (GatewaysNatGatewayTagArrayOutput) Index

func (GatewaysNatGatewayTagArrayOutput) ToGatewaysNatGatewayTagArrayOutput

func (o GatewaysNatGatewayTagArrayOutput) ToGatewaysNatGatewayTagArrayOutput() GatewaysNatGatewayTagArrayOutput

func (GatewaysNatGatewayTagArrayOutput) ToGatewaysNatGatewayTagArrayOutputWithContext

func (o GatewaysNatGatewayTagArrayOutput) ToGatewaysNatGatewayTagArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayTagArrayOutput

type GatewaysNatGatewayTagInput

type GatewaysNatGatewayTagInput interface {
	pulumi.Input

	ToGatewaysNatGatewayTagOutput() GatewaysNatGatewayTagOutput
	ToGatewaysNatGatewayTagOutputWithContext(context.Context) GatewaysNatGatewayTagOutput
}

GatewaysNatGatewayTagInput is an input type that accepts GatewaysNatGatewayTagArgs and GatewaysNatGatewayTagOutput values. You can construct a concrete instance of `GatewaysNatGatewayTagInput` via:

GatewaysNatGatewayTagArgs{...}

type GatewaysNatGatewayTagOutput

type GatewaysNatGatewayTagOutput struct{ *pulumi.OutputState }

func (GatewaysNatGatewayTagOutput) ElementType

func (GatewaysNatGatewayTagOutput) Key

The Key of Tags.

func (GatewaysNatGatewayTagOutput) ToGatewaysNatGatewayTagOutput

func (o GatewaysNatGatewayTagOutput) ToGatewaysNatGatewayTagOutput() GatewaysNatGatewayTagOutput

func (GatewaysNatGatewayTagOutput) ToGatewaysNatGatewayTagOutputWithContext

func (o GatewaysNatGatewayTagOutput) ToGatewaysNatGatewayTagOutputWithContext(ctx context.Context) GatewaysNatGatewayTagOutput

func (GatewaysNatGatewayTagOutput) Value

The Value of Tags.

type GatewaysOutputArgs

type GatewaysOutputArgs struct {
	// The description of the NatGateway.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// The list of NatGateway IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The Name Regex of NatGateway.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// The name of the NatGateway.
	NatGatewayName pulumi.StringPtrInput `pulumi:"natGatewayName"`
	// File name where to save data source results.
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The specification of the NatGateway.
	Spec pulumi.StringPtrInput `pulumi:"spec"`
	// The id of the Subnet.
	SubnetId pulumi.StringPtrInput `pulumi:"subnetId"`
	// Tags.
	Tags GatewaysTagArrayInput `pulumi:"tags"`
	// The id of the VPC.
	VpcId pulumi.StringPtrInput `pulumi:"vpcId"`
}

A collection of arguments for invoking Gateways.

func (GatewaysOutputArgs) ElementType

func (GatewaysOutputArgs) ElementType() reflect.Type

type GatewaysResult

type GatewaysResult struct {
	// The description of the NatGateway.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id        string   `pulumi:"id"`
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// The name of the NatGateway.
	NatGatewayName *string `pulumi:"natGatewayName"`
	// The collection of NatGateway query.
	NatGateways []GatewaysNatGateway `pulumi:"natGateways"`
	OutputFile  *string              `pulumi:"outputFile"`
	// The specification of the NatGateway.
	Spec *string `pulumi:"spec"`
	// The ID of the Subnet.
	SubnetId *string `pulumi:"subnetId"`
	// Tags.
	Tags []GatewaysTag `pulumi:"tags"`
	// The total count of NatGateway query.
	TotalCount int `pulumi:"totalCount"`
	// The ID of the VPC.
	VpcId *string `pulumi:"vpcId"`
}

A collection of values returned by Gateways.

func Gateways

func Gateways(ctx *pulumi.Context, args *GatewaysArgs, opts ...pulumi.InvokeOption) (*GatewaysResult, error)

Use this data source to query detailed information of nat gateways ## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooZones, err := ecs.Zones(ctx, nil, nil); if err != nil { return err } fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{ VpcName: pulumi.String("acc-test-vpc"), CidrBlock: pulumi.String("172.16.0.0/16"), }) if err != nil { return err } fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{ SubnetName: pulumi.String("acc-test-subnet"), CidrBlock: pulumi.String("172.16.0.0/24"), ZoneId: *pulumi.String(fooZones.Zones[0].Id), VpcId: fooVpc.ID(), }) if err != nil { return err } var fooGateway []*nat.Gateway

for index := 0; index < 3; index++ {
    key0 := index
    val0 := index

__res, err := nat.NewGateway(ctx, fmt.Sprintf("fooGateway-%v", key0), &nat.GatewayArgs{ VpcId: fooVpc.ID(), SubnetId: fooSubnet.ID(), Spec: pulumi.String("Small"), NatGatewayName: pulumi.String(fmt.Sprintf("acc-test-ng-%v", val0)), Description: pulumi.String("acc-test"), BillingType: pulumi.String("PostPaid"), ProjectName: pulumi.String("default"), Tags: nat.GatewayTagArray{ &nat.GatewayTagArgs{ Key: pulumi.String("k1"), Value: pulumi.String("v1"), }, }, }) if err != nil { return err } fooGateway = append(fooGateway, __res) } _ = nat.GatewaysOutput(ctx, nat.GatewaysOutputArgs{ Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:nat-gateways:Gateways.pp:30,9-25), }, nil); return nil }) } ```

type GatewaysResultOutput

type GatewaysResultOutput struct{ *pulumi.OutputState }

A collection of values returned by Gateways.

func (GatewaysResultOutput) Description

The description of the NatGateway.

func (GatewaysResultOutput) ElementType

func (GatewaysResultOutput) ElementType() reflect.Type

func (GatewaysResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GatewaysResultOutput) Ids

func (GatewaysResultOutput) NameRegex

func (GatewaysResultOutput) NatGatewayName

func (o GatewaysResultOutput) NatGatewayName() pulumi.StringPtrOutput

The name of the NatGateway.

func (GatewaysResultOutput) NatGateways

The collection of NatGateway query.

func (GatewaysResultOutput) OutputFile

func (GatewaysResultOutput) Spec

The specification of the NatGateway.

func (GatewaysResultOutput) SubnetId

The ID of the Subnet.

func (GatewaysResultOutput) Tags

Tags.

func (GatewaysResultOutput) ToGatewaysResultOutput

func (o GatewaysResultOutput) ToGatewaysResultOutput() GatewaysResultOutput

func (GatewaysResultOutput) ToGatewaysResultOutputWithContext

func (o GatewaysResultOutput) ToGatewaysResultOutputWithContext(ctx context.Context) GatewaysResultOutput

func (GatewaysResultOutput) TotalCount

func (o GatewaysResultOutput) TotalCount() pulumi.IntOutput

The total count of NatGateway query.

func (GatewaysResultOutput) VpcId

The ID of the VPC.

type GatewaysTag

type GatewaysTag struct {
	// The Key of Tags.
	Key string `pulumi:"key"`
	// The Value of Tags.
	Value string `pulumi:"value"`
}

type GatewaysTagArgs

type GatewaysTagArgs struct {
	// The Key of Tags.
	Key pulumi.StringInput `pulumi:"key"`
	// The Value of Tags.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GatewaysTagArgs) ElementType

func (GatewaysTagArgs) ElementType() reflect.Type

func (GatewaysTagArgs) ToGatewaysTagOutput

func (i GatewaysTagArgs) ToGatewaysTagOutput() GatewaysTagOutput

func (GatewaysTagArgs) ToGatewaysTagOutputWithContext

func (i GatewaysTagArgs) ToGatewaysTagOutputWithContext(ctx context.Context) GatewaysTagOutput

type GatewaysTagArray

type GatewaysTagArray []GatewaysTagInput

func (GatewaysTagArray) ElementType

func (GatewaysTagArray) ElementType() reflect.Type

func (GatewaysTagArray) ToGatewaysTagArrayOutput

func (i GatewaysTagArray) ToGatewaysTagArrayOutput() GatewaysTagArrayOutput

func (GatewaysTagArray) ToGatewaysTagArrayOutputWithContext

func (i GatewaysTagArray) ToGatewaysTagArrayOutputWithContext(ctx context.Context) GatewaysTagArrayOutput

type GatewaysTagArrayInput

type GatewaysTagArrayInput interface {
	pulumi.Input

	ToGatewaysTagArrayOutput() GatewaysTagArrayOutput
	ToGatewaysTagArrayOutputWithContext(context.Context) GatewaysTagArrayOutput
}

GatewaysTagArrayInput is an input type that accepts GatewaysTagArray and GatewaysTagArrayOutput values. You can construct a concrete instance of `GatewaysTagArrayInput` via:

GatewaysTagArray{ GatewaysTagArgs{...} }

type GatewaysTagArrayOutput

type GatewaysTagArrayOutput struct{ *pulumi.OutputState }

func (GatewaysTagArrayOutput) ElementType

func (GatewaysTagArrayOutput) ElementType() reflect.Type

func (GatewaysTagArrayOutput) Index

func (GatewaysTagArrayOutput) ToGatewaysTagArrayOutput

func (o GatewaysTagArrayOutput) ToGatewaysTagArrayOutput() GatewaysTagArrayOutput

func (GatewaysTagArrayOutput) ToGatewaysTagArrayOutputWithContext

func (o GatewaysTagArrayOutput) ToGatewaysTagArrayOutputWithContext(ctx context.Context) GatewaysTagArrayOutput

type GatewaysTagInput

type GatewaysTagInput interface {
	pulumi.Input

	ToGatewaysTagOutput() GatewaysTagOutput
	ToGatewaysTagOutputWithContext(context.Context) GatewaysTagOutput
}

GatewaysTagInput is an input type that accepts GatewaysTagArgs and GatewaysTagOutput values. You can construct a concrete instance of `GatewaysTagInput` via:

GatewaysTagArgs{...}

type GatewaysTagOutput

type GatewaysTagOutput struct{ *pulumi.OutputState }

func (GatewaysTagOutput) ElementType

func (GatewaysTagOutput) ElementType() reflect.Type

func (GatewaysTagOutput) Key

The Key of Tags.

func (GatewaysTagOutput) ToGatewaysTagOutput

func (o GatewaysTagOutput) ToGatewaysTagOutput() GatewaysTagOutput

func (GatewaysTagOutput) ToGatewaysTagOutputWithContext

func (o GatewaysTagOutput) ToGatewaysTagOutputWithContext(ctx context.Context) GatewaysTagOutput

func (GatewaysTagOutput) Value

The Value of Tags.

type SnatEntriesArgs

type SnatEntriesArgs struct {
	// An id of the public ip address used by the SNAT entry.
	EipId *string `pulumi:"eipId"`
	// A list of SNAT entry ids.
	Ids []string `pulumi:"ids"`
	// An id of the nat gateway to which the entry belongs.
	NatGatewayId *string `pulumi:"natGatewayId"`
	// File name where to save data source results.
	OutputFile *string `pulumi:"outputFile"`
	// A name of SNAT entry.
	SnatEntryName *string `pulumi:"snatEntryName"`
	// The SourceCidr of SNAT entry.
	SourceCidr *string `pulumi:"sourceCidr"`
	// An id of the subnet that is required to access the Internet.
	SubnetId *string `pulumi:"subnetId"`
}

A collection of arguments for invoking SnatEntries.

type SnatEntriesOutputArgs

type SnatEntriesOutputArgs struct {
	// An id of the public ip address used by the SNAT entry.
	EipId pulumi.StringPtrInput `pulumi:"eipId"`
	// A list of SNAT entry ids.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// An id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringPtrInput `pulumi:"natGatewayId"`
	// File name where to save data source results.
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// A name of SNAT entry.
	SnatEntryName pulumi.StringPtrInput `pulumi:"snatEntryName"`
	// The SourceCidr of SNAT entry.
	SourceCidr pulumi.StringPtrInput `pulumi:"sourceCidr"`
	// An id of the subnet that is required to access the Internet.
	SubnetId pulumi.StringPtrInput `pulumi:"subnetId"`
}

A collection of arguments for invoking SnatEntries.

func (SnatEntriesOutputArgs) ElementType

func (SnatEntriesOutputArgs) ElementType() reflect.Type

type SnatEntriesResult

type SnatEntriesResult struct {
	// The id of the public ip address used by the SNAT entry.
	EipId *string `pulumi:"eipId"`
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId *string `pulumi:"natGatewayId"`
	OutputFile   *string `pulumi:"outputFile"`
	// The collection of snat entries.
	SnatEntries []SnatEntriesSnatEntry `pulumi:"snatEntries"`
	// The name of the SNAT entry.
	SnatEntryName *string `pulumi:"snatEntryName"`
	// The SourceCidr of the SNAT entry.
	SourceCidr *string `pulumi:"sourceCidr"`
	// The id of the subnet that is required to access the internet.
	SubnetId *string `pulumi:"subnetId"`
	// The total count of snat entries query.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by SnatEntries.

func SnatEntries

func SnatEntries(ctx *pulumi.Context, args *SnatEntriesArgs, opts ...pulumi.InvokeOption) (*SnatEntriesResult, error)

Use this data source to query detailed information of snat entries ## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/eip"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooGateway, err := nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
			VpcId:          fooVpc.ID(),
			SubnetId:       fooSubnet.ID(),
			Spec:           pulumi.String("Small"),
			NatGatewayName: pulumi.String("acc-test-ng"),
			Description:    pulumi.String("acc-test"),
			BillingType:    pulumi.String("PostPaid"),
			ProjectName:    pulumi.String("default"),
			Tags: nat.GatewayTagArray{
				&nat.GatewayTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		fooAddress, err := eip.NewAddress(ctx, "fooAddress", &eip.AddressArgs{
			Description: pulumi.String("acc-test"),
			Bandwidth:   pulumi.Int(1),
			BillingType: pulumi.String("PostPaidByBandwidth"),
			Isp:         pulumi.String("BGP"),
		})
		if err != nil {
			return err
		}
		_, err = eip.NewAssociate(ctx, "fooAssociate", &eip.AssociateArgs{
			AllocationId: fooAddress.ID(),
			InstanceId:   fooGateway.ID(),
			InstanceType: pulumi.String("Nat"),
		})
		if err != nil {
			return err
		}
		foo1, err := nat.NewSnatEntry(ctx, "foo1", &nat.SnatEntryArgs{
			SnatEntryName: pulumi.String("acc-test-snat-entry"),
			NatGatewayId:  fooGateway.ID(),
			EipId:         fooAddress.ID(),
			SourceCidr:    pulumi.String("172.16.0.0/24"),
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("volcengine_eip_associate.foo"),
		}))
		if err != nil {
			return err
		}
		foo2, err := nat.NewSnatEntry(ctx, "foo2", &nat.SnatEntryArgs{
			SnatEntryName: pulumi.String("acc-test-snat-entry"),
			NatGatewayId:  fooGateway.ID(),
			EipId:         fooAddress.ID(),
			SourceCidr:    pulumi.String("172.16.0.0/16"),
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("volcengine_eip_associate.foo"),
		}))
		if err != nil {
			return err
		}
		_ = nat.SnatEntriesOutput(ctx, nat.SnatEntriesOutputArgs{
			Ids: pulumi.StringArray{
				foo1.ID(),
				foo2.ID(),
			},
		}, nil)
		return nil
	})
}

```

type SnatEntriesResultOutput

type SnatEntriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by SnatEntries.

func (SnatEntriesResultOutput) EipId

The id of the public ip address used by the SNAT entry.

func (SnatEntriesResultOutput) ElementType

func (SnatEntriesResultOutput) ElementType() reflect.Type

func (SnatEntriesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (SnatEntriesResultOutput) Ids

func (SnatEntriesResultOutput) NatGatewayId

The id of the nat gateway to which the entry belongs.

func (SnatEntriesResultOutput) OutputFile

func (SnatEntriesResultOutput) SnatEntries

The collection of snat entries.

func (SnatEntriesResultOutput) SnatEntryName

The name of the SNAT entry.

func (SnatEntriesResultOutput) SourceCidr

The SourceCidr of the SNAT entry.

func (SnatEntriesResultOutput) SubnetId

The id of the subnet that is required to access the internet.

func (SnatEntriesResultOutput) ToSnatEntriesResultOutput

func (o SnatEntriesResultOutput) ToSnatEntriesResultOutput() SnatEntriesResultOutput

func (SnatEntriesResultOutput) ToSnatEntriesResultOutputWithContext

func (o SnatEntriesResultOutput) ToSnatEntriesResultOutputWithContext(ctx context.Context) SnatEntriesResultOutput

func (SnatEntriesResultOutput) TotalCount

func (o SnatEntriesResultOutput) TotalCount() pulumi.IntOutput

The total count of snat entries query.

type SnatEntriesSnatEntry

type SnatEntriesSnatEntry struct {
	// The public ip address used by the SNAT entry.
	EipAddress string `pulumi:"eipAddress"`
	// An id of the public ip address used by the SNAT entry.
	EipId string `pulumi:"eipId"`
	// The id of the SNAT entry.
	Id string `pulumi:"id"`
	// An id of the nat gateway to which the entry belongs.
	NatGatewayId string `pulumi:"natGatewayId"`
	// The id of the SNAT entry.
	SnatEntryId string `pulumi:"snatEntryId"`
	// A name of SNAT entry.
	SnatEntryName string `pulumi:"snatEntryName"`
	// The SourceCidr of SNAT entry.
	SourceCidr string `pulumi:"sourceCidr"`
	// The status of the SNAT entry.
	Status string `pulumi:"status"`
	// An id of the subnet that is required to access the Internet.
	SubnetId string `pulumi:"subnetId"`
}

type SnatEntriesSnatEntryArgs

type SnatEntriesSnatEntryArgs struct {
	// The public ip address used by the SNAT entry.
	EipAddress pulumi.StringInput `pulumi:"eipAddress"`
	// An id of the public ip address used by the SNAT entry.
	EipId pulumi.StringInput `pulumi:"eipId"`
	// The id of the SNAT entry.
	Id pulumi.StringInput `pulumi:"id"`
	// An id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringInput `pulumi:"natGatewayId"`
	// The id of the SNAT entry.
	SnatEntryId pulumi.StringInput `pulumi:"snatEntryId"`
	// A name of SNAT entry.
	SnatEntryName pulumi.StringInput `pulumi:"snatEntryName"`
	// The SourceCidr of SNAT entry.
	SourceCidr pulumi.StringInput `pulumi:"sourceCidr"`
	// The status of the SNAT entry.
	Status pulumi.StringInput `pulumi:"status"`
	// An id of the subnet that is required to access the Internet.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
}

func (SnatEntriesSnatEntryArgs) ElementType

func (SnatEntriesSnatEntryArgs) ElementType() reflect.Type

func (SnatEntriesSnatEntryArgs) ToSnatEntriesSnatEntryOutput

func (i SnatEntriesSnatEntryArgs) ToSnatEntriesSnatEntryOutput() SnatEntriesSnatEntryOutput

func (SnatEntriesSnatEntryArgs) ToSnatEntriesSnatEntryOutputWithContext

func (i SnatEntriesSnatEntryArgs) ToSnatEntriesSnatEntryOutputWithContext(ctx context.Context) SnatEntriesSnatEntryOutput

type SnatEntriesSnatEntryArray

type SnatEntriesSnatEntryArray []SnatEntriesSnatEntryInput

func (SnatEntriesSnatEntryArray) ElementType

func (SnatEntriesSnatEntryArray) ElementType() reflect.Type

func (SnatEntriesSnatEntryArray) ToSnatEntriesSnatEntryArrayOutput

func (i SnatEntriesSnatEntryArray) ToSnatEntriesSnatEntryArrayOutput() SnatEntriesSnatEntryArrayOutput

func (SnatEntriesSnatEntryArray) ToSnatEntriesSnatEntryArrayOutputWithContext

func (i SnatEntriesSnatEntryArray) ToSnatEntriesSnatEntryArrayOutputWithContext(ctx context.Context) SnatEntriesSnatEntryArrayOutput

type SnatEntriesSnatEntryArrayInput

type SnatEntriesSnatEntryArrayInput interface {
	pulumi.Input

	ToSnatEntriesSnatEntryArrayOutput() SnatEntriesSnatEntryArrayOutput
	ToSnatEntriesSnatEntryArrayOutputWithContext(context.Context) SnatEntriesSnatEntryArrayOutput
}

SnatEntriesSnatEntryArrayInput is an input type that accepts SnatEntriesSnatEntryArray and SnatEntriesSnatEntryArrayOutput values. You can construct a concrete instance of `SnatEntriesSnatEntryArrayInput` via:

SnatEntriesSnatEntryArray{ SnatEntriesSnatEntryArgs{...} }

type SnatEntriesSnatEntryArrayOutput

type SnatEntriesSnatEntryArrayOutput struct{ *pulumi.OutputState }

func (SnatEntriesSnatEntryArrayOutput) ElementType

func (SnatEntriesSnatEntryArrayOutput) Index

func (SnatEntriesSnatEntryArrayOutput) ToSnatEntriesSnatEntryArrayOutput

func (o SnatEntriesSnatEntryArrayOutput) ToSnatEntriesSnatEntryArrayOutput() SnatEntriesSnatEntryArrayOutput

func (SnatEntriesSnatEntryArrayOutput) ToSnatEntriesSnatEntryArrayOutputWithContext

func (o SnatEntriesSnatEntryArrayOutput) ToSnatEntriesSnatEntryArrayOutputWithContext(ctx context.Context) SnatEntriesSnatEntryArrayOutput

type SnatEntriesSnatEntryInput

type SnatEntriesSnatEntryInput interface {
	pulumi.Input

	ToSnatEntriesSnatEntryOutput() SnatEntriesSnatEntryOutput
	ToSnatEntriesSnatEntryOutputWithContext(context.Context) SnatEntriesSnatEntryOutput
}

SnatEntriesSnatEntryInput is an input type that accepts SnatEntriesSnatEntryArgs and SnatEntriesSnatEntryOutput values. You can construct a concrete instance of `SnatEntriesSnatEntryInput` via:

SnatEntriesSnatEntryArgs{...}

type SnatEntriesSnatEntryOutput

type SnatEntriesSnatEntryOutput struct{ *pulumi.OutputState }

func (SnatEntriesSnatEntryOutput) EipAddress

The public ip address used by the SNAT entry.

func (SnatEntriesSnatEntryOutput) EipId

An id of the public ip address used by the SNAT entry.

func (SnatEntriesSnatEntryOutput) ElementType

func (SnatEntriesSnatEntryOutput) ElementType() reflect.Type

func (SnatEntriesSnatEntryOutput) Id

The id of the SNAT entry.

func (SnatEntriesSnatEntryOutput) NatGatewayId

An id of the nat gateway to which the entry belongs.

func (SnatEntriesSnatEntryOutput) SnatEntryId

The id of the SNAT entry.

func (SnatEntriesSnatEntryOutput) SnatEntryName

A name of SNAT entry.

func (SnatEntriesSnatEntryOutput) SourceCidr

The SourceCidr of SNAT entry.

func (SnatEntriesSnatEntryOutput) Status

The status of the SNAT entry.

func (SnatEntriesSnatEntryOutput) SubnetId

An id of the subnet that is required to access the Internet.

func (SnatEntriesSnatEntryOutput) ToSnatEntriesSnatEntryOutput

func (o SnatEntriesSnatEntryOutput) ToSnatEntriesSnatEntryOutput() SnatEntriesSnatEntryOutput

func (SnatEntriesSnatEntryOutput) ToSnatEntriesSnatEntryOutputWithContext

func (o SnatEntriesSnatEntryOutput) ToSnatEntriesSnatEntryOutputWithContext(ctx context.Context) SnatEntriesSnatEntryOutput

type SnatEntry

type SnatEntry struct {
	pulumi.CustomResourceState

	// The id of the public ip address used by the SNAT entry.
	EipId pulumi.StringOutput `pulumi:"eipId"`
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringOutput `pulumi:"natGatewayId"`
	// The name of the SNAT entry.
	SnatEntryName pulumi.StringOutput `pulumi:"snatEntryName"`
	// The SourceCidr of the SNAT entry. Only one of `subnet_id,source_cidr` can be specified.
	SourceCidr pulumi.StringOutput `pulumi:"sourceCidr"`
	// The status of the SNAT entry.
	Status pulumi.StringOutput `pulumi:"status"`
	// The id of the subnet that is required to access the internet. Only one of `subnet_id,source_cidr` can be specified.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
}

Provides a resource to manage snat entry ## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/eip"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooGateway, err := nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
			VpcId:          fooVpc.ID(),
			SubnetId:       fooSubnet.ID(),
			Spec:           pulumi.String("Small"),
			NatGatewayName: pulumi.String("acc-test-ng"),
			Description:    pulumi.String("acc-test"),
			BillingType:    pulumi.String("PostPaid"),
			ProjectName:    pulumi.String("default"),
			Tags: nat.GatewayTagArray{
				&nat.GatewayTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		fooAddress, err := eip.NewAddress(ctx, "fooAddress", &eip.AddressArgs{
			Description: pulumi.String("acc-test"),
			Bandwidth:   pulumi.Int(1),
			BillingType: pulumi.String("PostPaidByBandwidth"),
			Isp:         pulumi.String("BGP"),
		})
		if err != nil {
			return err
		}
		_, err = eip.NewAssociate(ctx, "fooAssociate", &eip.AssociateArgs{
			AllocationId: fooAddress.ID(),
			InstanceId:   fooGateway.ID(),
			InstanceType: pulumi.String("Nat"),
		})
		if err != nil {
			return err
		}
		_, err = nat.NewSnatEntry(ctx, "fooSnatEntry", &nat.SnatEntryArgs{
			SnatEntryName: pulumi.String("acc-test-snat-entry"),
			NatGatewayId:  fooGateway.ID(),
			EipId:         fooAddress.ID(),
			SourceCidr:    pulumi.String("172.16.0.0/24"),
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("volcengine_eip_associate.foo"),
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Snat entry can be imported using the id, e.g.

```sh

$ pulumi import volcengine:nat/snatEntry:SnatEntry default snat-3fvhk47kf56****

```

func GetSnatEntry

func GetSnatEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnatEntryState, opts ...pulumi.ResourceOption) (*SnatEntry, error)

GetSnatEntry gets an existing SnatEntry resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnatEntry

func NewSnatEntry(ctx *pulumi.Context,
	name string, args *SnatEntryArgs, opts ...pulumi.ResourceOption) (*SnatEntry, error)

NewSnatEntry registers a new resource with the given unique name, arguments, and options.

func (*SnatEntry) ElementType

func (*SnatEntry) ElementType() reflect.Type

func (*SnatEntry) ToSnatEntryOutput

func (i *SnatEntry) ToSnatEntryOutput() SnatEntryOutput

func (*SnatEntry) ToSnatEntryOutputWithContext

func (i *SnatEntry) ToSnatEntryOutputWithContext(ctx context.Context) SnatEntryOutput

type SnatEntryArgs

type SnatEntryArgs struct {
	// The id of the public ip address used by the SNAT entry.
	EipId pulumi.StringInput
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringInput
	// The name of the SNAT entry.
	SnatEntryName pulumi.StringPtrInput
	// The SourceCidr of the SNAT entry. Only one of `subnet_id,source_cidr` can be specified.
	SourceCidr pulumi.StringPtrInput
	// The id of the subnet that is required to access the internet. Only one of `subnet_id,source_cidr` can be specified.
	SubnetId pulumi.StringPtrInput
}

The set of arguments for constructing a SnatEntry resource.

func (SnatEntryArgs) ElementType

func (SnatEntryArgs) ElementType() reflect.Type

type SnatEntryArray

type SnatEntryArray []SnatEntryInput

func (SnatEntryArray) ElementType

func (SnatEntryArray) ElementType() reflect.Type

func (SnatEntryArray) ToSnatEntryArrayOutput

func (i SnatEntryArray) ToSnatEntryArrayOutput() SnatEntryArrayOutput

func (SnatEntryArray) ToSnatEntryArrayOutputWithContext

func (i SnatEntryArray) ToSnatEntryArrayOutputWithContext(ctx context.Context) SnatEntryArrayOutput

type SnatEntryArrayInput

type SnatEntryArrayInput interface {
	pulumi.Input

	ToSnatEntryArrayOutput() SnatEntryArrayOutput
	ToSnatEntryArrayOutputWithContext(context.Context) SnatEntryArrayOutput
}

SnatEntryArrayInput is an input type that accepts SnatEntryArray and SnatEntryArrayOutput values. You can construct a concrete instance of `SnatEntryArrayInput` via:

SnatEntryArray{ SnatEntryArgs{...} }

type SnatEntryArrayOutput

type SnatEntryArrayOutput struct{ *pulumi.OutputState }

func (SnatEntryArrayOutput) ElementType

func (SnatEntryArrayOutput) ElementType() reflect.Type

func (SnatEntryArrayOutput) Index

func (SnatEntryArrayOutput) ToSnatEntryArrayOutput

func (o SnatEntryArrayOutput) ToSnatEntryArrayOutput() SnatEntryArrayOutput

func (SnatEntryArrayOutput) ToSnatEntryArrayOutputWithContext

func (o SnatEntryArrayOutput) ToSnatEntryArrayOutputWithContext(ctx context.Context) SnatEntryArrayOutput

type SnatEntryInput

type SnatEntryInput interface {
	pulumi.Input

	ToSnatEntryOutput() SnatEntryOutput
	ToSnatEntryOutputWithContext(ctx context.Context) SnatEntryOutput
}

type SnatEntryMap

type SnatEntryMap map[string]SnatEntryInput

func (SnatEntryMap) ElementType

func (SnatEntryMap) ElementType() reflect.Type

func (SnatEntryMap) ToSnatEntryMapOutput

func (i SnatEntryMap) ToSnatEntryMapOutput() SnatEntryMapOutput

func (SnatEntryMap) ToSnatEntryMapOutputWithContext

func (i SnatEntryMap) ToSnatEntryMapOutputWithContext(ctx context.Context) SnatEntryMapOutput

type SnatEntryMapInput

type SnatEntryMapInput interface {
	pulumi.Input

	ToSnatEntryMapOutput() SnatEntryMapOutput
	ToSnatEntryMapOutputWithContext(context.Context) SnatEntryMapOutput
}

SnatEntryMapInput is an input type that accepts SnatEntryMap and SnatEntryMapOutput values. You can construct a concrete instance of `SnatEntryMapInput` via:

SnatEntryMap{ "key": SnatEntryArgs{...} }

type SnatEntryMapOutput

type SnatEntryMapOutput struct{ *pulumi.OutputState }

func (SnatEntryMapOutput) ElementType

func (SnatEntryMapOutput) ElementType() reflect.Type

func (SnatEntryMapOutput) MapIndex

func (SnatEntryMapOutput) ToSnatEntryMapOutput

func (o SnatEntryMapOutput) ToSnatEntryMapOutput() SnatEntryMapOutput

func (SnatEntryMapOutput) ToSnatEntryMapOutputWithContext

func (o SnatEntryMapOutput) ToSnatEntryMapOutputWithContext(ctx context.Context) SnatEntryMapOutput

type SnatEntryOutput

type SnatEntryOutput struct{ *pulumi.OutputState }

func (SnatEntryOutput) EipId

The id of the public ip address used by the SNAT entry.

func (SnatEntryOutput) ElementType

func (SnatEntryOutput) ElementType() reflect.Type

func (SnatEntryOutput) NatGatewayId

func (o SnatEntryOutput) NatGatewayId() pulumi.StringOutput

The id of the nat gateway to which the entry belongs.

func (SnatEntryOutput) SnatEntryName

func (o SnatEntryOutput) SnatEntryName() pulumi.StringOutput

The name of the SNAT entry.

func (SnatEntryOutput) SourceCidr

func (o SnatEntryOutput) SourceCidr() pulumi.StringOutput

The SourceCidr of the SNAT entry. Only one of `subnet_id,source_cidr` can be specified.

func (SnatEntryOutput) Status

func (o SnatEntryOutput) Status() pulumi.StringOutput

The status of the SNAT entry.

func (SnatEntryOutput) SubnetId

func (o SnatEntryOutput) SubnetId() pulumi.StringOutput

The id of the subnet that is required to access the internet. Only one of `subnet_id,source_cidr` can be specified.

func (SnatEntryOutput) ToSnatEntryOutput

func (o SnatEntryOutput) ToSnatEntryOutput() SnatEntryOutput

func (SnatEntryOutput) ToSnatEntryOutputWithContext

func (o SnatEntryOutput) ToSnatEntryOutputWithContext(ctx context.Context) SnatEntryOutput

type SnatEntryState

type SnatEntryState struct {
	// The id of the public ip address used by the SNAT entry.
	EipId pulumi.StringPtrInput
	// The id of the nat gateway to which the entry belongs.
	NatGatewayId pulumi.StringPtrInput
	// The name of the SNAT entry.
	SnatEntryName pulumi.StringPtrInput
	// The SourceCidr of the SNAT entry. Only one of `subnet_id,source_cidr` can be specified.
	SourceCidr pulumi.StringPtrInput
	// The status of the SNAT entry.
	Status pulumi.StringPtrInput
	// The id of the subnet that is required to access the internet. Only one of `subnet_id,source_cidr` can be specified.
	SubnetId pulumi.StringPtrInput
}

func (SnatEntryState) ElementType

func (SnatEntryState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL