Documentation ¶
Index ¶
- type DnatEntriesArgs
- type DnatEntriesDnatEntry
- type DnatEntriesDnatEntryArgs
- type DnatEntriesDnatEntryArray
- type DnatEntriesDnatEntryArrayInput
- type DnatEntriesDnatEntryArrayOutput
- func (DnatEntriesDnatEntryArrayOutput) ElementType() reflect.Type
- func (o DnatEntriesDnatEntryArrayOutput) Index(i pulumi.IntInput) DnatEntriesDnatEntryOutput
- func (o DnatEntriesDnatEntryArrayOutput) ToDnatEntriesDnatEntryArrayOutput() DnatEntriesDnatEntryArrayOutput
- func (o DnatEntriesDnatEntryArrayOutput) ToDnatEntriesDnatEntryArrayOutputWithContext(ctx context.Context) DnatEntriesDnatEntryArrayOutput
- type DnatEntriesDnatEntryInput
- type DnatEntriesDnatEntryOutput
- func (o DnatEntriesDnatEntryOutput) DnatEntryId() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) DnatEntryName() pulumi.StringOutput
- func (DnatEntriesDnatEntryOutput) ElementType() reflect.Type
- func (o DnatEntriesDnatEntryOutput) ExternalIp() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) ExternalPort() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) InternalIp() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) InternalPort() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) NatGatewayId() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) Protocol() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) Status() pulumi.StringOutput
- func (o DnatEntriesDnatEntryOutput) ToDnatEntriesDnatEntryOutput() DnatEntriesDnatEntryOutput
- func (o DnatEntriesDnatEntryOutput) ToDnatEntriesDnatEntryOutputWithContext(ctx context.Context) DnatEntriesDnatEntryOutput
- type DnatEntriesOutputArgs
- type DnatEntriesResult
- type DnatEntriesResultOutput
- func (o DnatEntriesResultOutput) DnatEntries() DnatEntriesDnatEntryArrayOutput
- func (o DnatEntriesResultOutput) DnatEntryName() pulumi.StringPtrOutput
- func (DnatEntriesResultOutput) ElementType() reflect.Type
- func (o DnatEntriesResultOutput) ExternalIp() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) ExternalPort() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) Id() pulumi.StringOutput
- func (o DnatEntriesResultOutput) Ids() pulumi.StringArrayOutput
- func (o DnatEntriesResultOutput) InternalIp() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) InternalPort() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) NatGatewayId() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) Protocol() pulumi.StringPtrOutput
- func (o DnatEntriesResultOutput) ToDnatEntriesResultOutput() DnatEntriesResultOutput
- func (o DnatEntriesResultOutput) ToDnatEntriesResultOutputWithContext(ctx context.Context) DnatEntriesResultOutput
- func (o DnatEntriesResultOutput) TotalCount() pulumi.IntOutput
- type DnatEntry
- type DnatEntryArgs
- type DnatEntryArray
- type DnatEntryArrayInput
- type DnatEntryArrayOutput
- func (DnatEntryArrayOutput) ElementType() reflect.Type
- func (o DnatEntryArrayOutput) Index(i pulumi.IntInput) DnatEntryOutput
- func (o DnatEntryArrayOutput) ToDnatEntryArrayOutput() DnatEntryArrayOutput
- func (o DnatEntryArrayOutput) ToDnatEntryArrayOutputWithContext(ctx context.Context) DnatEntryArrayOutput
- type DnatEntryInput
- type DnatEntryMap
- type DnatEntryMapInput
- type DnatEntryMapOutput
- type DnatEntryOutput
- func (o DnatEntryOutput) DnatEntryId() pulumi.StringOutput
- func (o DnatEntryOutput) DnatEntryName() pulumi.StringPtrOutput
- func (DnatEntryOutput) ElementType() reflect.Type
- func (o DnatEntryOutput) ExternalIp() pulumi.StringOutput
- func (o DnatEntryOutput) ExternalPort() pulumi.StringOutput
- func (o DnatEntryOutput) InternalIp() pulumi.StringOutput
- func (o DnatEntryOutput) InternalPort() pulumi.StringOutput
- func (o DnatEntryOutput) NatGatewayId() pulumi.StringOutput
- func (o DnatEntryOutput) Protocol() pulumi.StringOutput
- func (o DnatEntryOutput) ToDnatEntryOutput() DnatEntryOutput
- func (o DnatEntryOutput) ToDnatEntryOutputWithContext(ctx context.Context) DnatEntryOutput
- type DnatEntryState
- type Gateway
- type GatewayArgs
- type GatewayArray
- type GatewayArrayInput
- type GatewayArrayOutput
- type GatewayInput
- type GatewayMap
- type GatewayMapInput
- type GatewayMapOutput
- type GatewayOutput
- func (o GatewayOutput) BillingType() pulumi.StringPtrOutput
- func (o GatewayOutput) Description() pulumi.StringPtrOutput
- func (GatewayOutput) ElementType() reflect.Type
- func (o GatewayOutput) NatGatewayName() pulumi.StringPtrOutput
- func (o GatewayOutput) Period() pulumi.IntPtrOutput
- func (o GatewayOutput) ProjectName() pulumi.StringOutput
- func (o GatewayOutput) Spec() pulumi.StringPtrOutput
- func (o GatewayOutput) SubnetId() pulumi.StringOutput
- func (o GatewayOutput) Tags() GatewayTagArrayOutput
- func (o GatewayOutput) ToGatewayOutput() GatewayOutput
- func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
- func (o GatewayOutput) VpcId() pulumi.StringOutput
- type GatewayState
- type GatewayTag
- type GatewayTagArgs
- type GatewayTagArray
- type GatewayTagArrayInput
- type GatewayTagArrayOutput
- func (GatewayTagArrayOutput) ElementType() reflect.Type
- func (o GatewayTagArrayOutput) Index(i pulumi.IntInput) GatewayTagOutput
- func (o GatewayTagArrayOutput) ToGatewayTagArrayOutput() GatewayTagArrayOutput
- func (o GatewayTagArrayOutput) ToGatewayTagArrayOutputWithContext(ctx context.Context) GatewayTagArrayOutput
- type GatewayTagInput
- type GatewayTagOutput
- func (GatewayTagOutput) ElementType() reflect.Type
- func (o GatewayTagOutput) Key() pulumi.StringOutput
- func (o GatewayTagOutput) ToGatewayTagOutput() GatewayTagOutput
- func (o GatewayTagOutput) ToGatewayTagOutputWithContext(ctx context.Context) GatewayTagOutput
- func (o GatewayTagOutput) Value() pulumi.StringOutput
- type GatewaysArgs
- type GatewaysNatGateway
- type GatewaysNatGatewayArgs
- type GatewaysNatGatewayArray
- type GatewaysNatGatewayArrayInput
- type GatewaysNatGatewayArrayOutput
- func (GatewaysNatGatewayArrayOutput) ElementType() reflect.Type
- func (o GatewaysNatGatewayArrayOutput) Index(i pulumi.IntInput) GatewaysNatGatewayOutput
- func (o GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutput() GatewaysNatGatewayArrayOutput
- func (o GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayArrayOutput
- type GatewaysNatGatewayEipAddress
- type GatewaysNatGatewayEipAddressArgs
- func (GatewaysNatGatewayEipAddressArgs) ElementType() reflect.Type
- func (i GatewaysNatGatewayEipAddressArgs) ToGatewaysNatGatewayEipAddressOutput() GatewaysNatGatewayEipAddressOutput
- func (i GatewaysNatGatewayEipAddressArgs) ToGatewaysNatGatewayEipAddressOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressOutput
- type GatewaysNatGatewayEipAddressArray
- func (GatewaysNatGatewayEipAddressArray) ElementType() reflect.Type
- func (i GatewaysNatGatewayEipAddressArray) ToGatewaysNatGatewayEipAddressArrayOutput() GatewaysNatGatewayEipAddressArrayOutput
- func (i GatewaysNatGatewayEipAddressArray) ToGatewaysNatGatewayEipAddressArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressArrayOutput
- type GatewaysNatGatewayEipAddressArrayInput
- type GatewaysNatGatewayEipAddressArrayOutput
- func (GatewaysNatGatewayEipAddressArrayOutput) ElementType() reflect.Type
- func (o GatewaysNatGatewayEipAddressArrayOutput) Index(i pulumi.IntInput) GatewaysNatGatewayEipAddressOutput
- func (o GatewaysNatGatewayEipAddressArrayOutput) ToGatewaysNatGatewayEipAddressArrayOutput() GatewaysNatGatewayEipAddressArrayOutput
- func (o GatewaysNatGatewayEipAddressArrayOutput) ToGatewaysNatGatewayEipAddressArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressArrayOutput
- type GatewaysNatGatewayEipAddressInput
- type GatewaysNatGatewayEipAddressOutput
- func (o GatewaysNatGatewayEipAddressOutput) AllocationId() pulumi.StringOutput
- func (o GatewaysNatGatewayEipAddressOutput) EipAddress() pulumi.StringOutput
- func (GatewaysNatGatewayEipAddressOutput) ElementType() reflect.Type
- func (o GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutput() GatewaysNatGatewayEipAddressOutput
- func (o GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressOutput
- func (o GatewaysNatGatewayEipAddressOutput) UsingStatus() pulumi.StringOutput
- type GatewaysNatGatewayInput
- type GatewaysNatGatewayOutput
- func (o GatewaysNatGatewayOutput) BillingType() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) BusinessStatus() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) CreationTime() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) DeletedTime() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) Description() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) EipAddresses() GatewaysNatGatewayEipAddressArrayOutput
- func (GatewaysNatGatewayOutput) ElementType() reflect.Type
- func (o GatewaysNatGatewayOutput) Id() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) LockReason() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) NatGatewayId() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) NatGatewayName() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) NetworkInterfaceId() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) OverdueTime() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) Spec() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) Status() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) SubnetId() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) Tags() GatewaysNatGatewayTagArrayOutput
- func (o GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutput() GatewaysNatGatewayOutput
- func (o GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutputWithContext(ctx context.Context) GatewaysNatGatewayOutput
- func (o GatewaysNatGatewayOutput) UpdatedAt() pulumi.StringOutput
- func (o GatewaysNatGatewayOutput) VpcId() pulumi.StringOutput
- type GatewaysNatGatewayTag
- type GatewaysNatGatewayTagArgs
- type GatewaysNatGatewayTagArray
- func (GatewaysNatGatewayTagArray) ElementType() reflect.Type
- func (i GatewaysNatGatewayTagArray) ToGatewaysNatGatewayTagArrayOutput() GatewaysNatGatewayTagArrayOutput
- func (i GatewaysNatGatewayTagArray) ToGatewaysNatGatewayTagArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayTagArrayOutput
- type GatewaysNatGatewayTagArrayInput
- type GatewaysNatGatewayTagArrayOutput
- func (GatewaysNatGatewayTagArrayOutput) ElementType() reflect.Type
- func (o GatewaysNatGatewayTagArrayOutput) Index(i pulumi.IntInput) GatewaysNatGatewayTagOutput
- func (o GatewaysNatGatewayTagArrayOutput) ToGatewaysNatGatewayTagArrayOutput() GatewaysNatGatewayTagArrayOutput
- func (o GatewaysNatGatewayTagArrayOutput) ToGatewaysNatGatewayTagArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayTagArrayOutput
- type GatewaysNatGatewayTagInput
- type GatewaysNatGatewayTagOutput
- func (GatewaysNatGatewayTagOutput) ElementType() reflect.Type
- func (o GatewaysNatGatewayTagOutput) Key() pulumi.StringOutput
- func (o GatewaysNatGatewayTagOutput) ToGatewaysNatGatewayTagOutput() GatewaysNatGatewayTagOutput
- func (o GatewaysNatGatewayTagOutput) ToGatewaysNatGatewayTagOutputWithContext(ctx context.Context) GatewaysNatGatewayTagOutput
- func (o GatewaysNatGatewayTagOutput) Value() pulumi.StringOutput
- type GatewaysOutputArgs
- type GatewaysResult
- type GatewaysResultOutput
- func (o GatewaysResultOutput) Description() pulumi.StringPtrOutput
- func (GatewaysResultOutput) ElementType() reflect.Type
- func (o GatewaysResultOutput) Id() pulumi.StringOutput
- func (o GatewaysResultOutput) Ids() pulumi.StringArrayOutput
- func (o GatewaysResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GatewaysResultOutput) NatGatewayName() pulumi.StringPtrOutput
- func (o GatewaysResultOutput) NatGateways() GatewaysNatGatewayArrayOutput
- func (o GatewaysResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GatewaysResultOutput) Spec() pulumi.StringPtrOutput
- func (o GatewaysResultOutput) SubnetId() pulumi.StringPtrOutput
- func (o GatewaysResultOutput) Tags() GatewaysTagArrayOutput
- func (o GatewaysResultOutput) ToGatewaysResultOutput() GatewaysResultOutput
- func (o GatewaysResultOutput) ToGatewaysResultOutputWithContext(ctx context.Context) GatewaysResultOutput
- func (o GatewaysResultOutput) TotalCount() pulumi.IntOutput
- func (o GatewaysResultOutput) VpcId() pulumi.StringPtrOutput
- type GatewaysTag
- type GatewaysTagArgs
- type GatewaysTagArray
- type GatewaysTagArrayInput
- type GatewaysTagArrayOutput
- func (GatewaysTagArrayOutput) ElementType() reflect.Type
- func (o GatewaysTagArrayOutput) Index(i pulumi.IntInput) GatewaysTagOutput
- func (o GatewaysTagArrayOutput) ToGatewaysTagArrayOutput() GatewaysTagArrayOutput
- func (o GatewaysTagArrayOutput) ToGatewaysTagArrayOutputWithContext(ctx context.Context) GatewaysTagArrayOutput
- type GatewaysTagInput
- type GatewaysTagOutput
- func (GatewaysTagOutput) ElementType() reflect.Type
- func (o GatewaysTagOutput) Key() pulumi.StringOutput
- func (o GatewaysTagOutput) ToGatewaysTagOutput() GatewaysTagOutput
- func (o GatewaysTagOutput) ToGatewaysTagOutputWithContext(ctx context.Context) GatewaysTagOutput
- func (o GatewaysTagOutput) Value() pulumi.StringOutput
- type SnatEntriesArgs
- type SnatEntriesOutputArgs
- type SnatEntriesResult
- type SnatEntriesResultOutput
- func (o SnatEntriesResultOutput) EipId() pulumi.StringPtrOutput
- func (SnatEntriesResultOutput) ElementType() reflect.Type
- func (o SnatEntriesResultOutput) Id() pulumi.StringOutput
- func (o SnatEntriesResultOutput) Ids() pulumi.StringArrayOutput
- func (o SnatEntriesResultOutput) NatGatewayId() pulumi.StringPtrOutput
- func (o SnatEntriesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o SnatEntriesResultOutput) SnatEntries() SnatEntriesSnatEntryArrayOutput
- func (o SnatEntriesResultOutput) SnatEntryName() pulumi.StringPtrOutput
- func (o SnatEntriesResultOutput) SourceCidr() pulumi.StringPtrOutput
- func (o SnatEntriesResultOutput) SubnetId() pulumi.StringPtrOutput
- func (o SnatEntriesResultOutput) ToSnatEntriesResultOutput() SnatEntriesResultOutput
- func (o SnatEntriesResultOutput) ToSnatEntriesResultOutputWithContext(ctx context.Context) SnatEntriesResultOutput
- func (o SnatEntriesResultOutput) TotalCount() pulumi.IntOutput
- type SnatEntriesSnatEntry
- type SnatEntriesSnatEntryArgs
- type SnatEntriesSnatEntryArray
- type SnatEntriesSnatEntryArrayInput
- type SnatEntriesSnatEntryArrayOutput
- func (SnatEntriesSnatEntryArrayOutput) ElementType() reflect.Type
- func (o SnatEntriesSnatEntryArrayOutput) Index(i pulumi.IntInput) SnatEntriesSnatEntryOutput
- func (o SnatEntriesSnatEntryArrayOutput) ToSnatEntriesSnatEntryArrayOutput() SnatEntriesSnatEntryArrayOutput
- func (o SnatEntriesSnatEntryArrayOutput) ToSnatEntriesSnatEntryArrayOutputWithContext(ctx context.Context) SnatEntriesSnatEntryArrayOutput
- type SnatEntriesSnatEntryInput
- type SnatEntriesSnatEntryOutput
- func (o SnatEntriesSnatEntryOutput) EipAddress() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) EipId() pulumi.StringOutput
- func (SnatEntriesSnatEntryOutput) ElementType() reflect.Type
- func (o SnatEntriesSnatEntryOutput) Id() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) NatGatewayId() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) SnatEntryId() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) SnatEntryName() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) SourceCidr() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) Status() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) SubnetId() pulumi.StringOutput
- func (o SnatEntriesSnatEntryOutput) ToSnatEntriesSnatEntryOutput() SnatEntriesSnatEntryOutput
- func (o SnatEntriesSnatEntryOutput) ToSnatEntriesSnatEntryOutputWithContext(ctx context.Context) SnatEntriesSnatEntryOutput
- type SnatEntry
- type SnatEntryArgs
- type SnatEntryArray
- type SnatEntryArrayInput
- type SnatEntryArrayOutput
- func (SnatEntryArrayOutput) ElementType() reflect.Type
- func (o SnatEntryArrayOutput) Index(i pulumi.IntInput) SnatEntryOutput
- func (o SnatEntryArrayOutput) ToSnatEntryArrayOutput() SnatEntryArrayOutput
- func (o SnatEntryArrayOutput) ToSnatEntryArrayOutputWithContext(ctx context.Context) SnatEntryArrayOutput
- type SnatEntryInput
- type SnatEntryMap
- type SnatEntryMapInput
- type SnatEntryMapOutput
- type SnatEntryOutput
- func (o SnatEntryOutput) EipId() pulumi.StringOutput
- func (SnatEntryOutput) ElementType() reflect.Type
- func (o SnatEntryOutput) NatGatewayId() pulumi.StringOutput
- func (o SnatEntryOutput) SnatEntryName() pulumi.StringOutput
- func (o SnatEntryOutput) SourceCidr() pulumi.StringOutput
- func (o SnatEntryOutput) Status() pulumi.StringOutput
- func (o SnatEntryOutput) SubnetId() pulumi.StringOutput
- func (o SnatEntryOutput) ToSnatEntryOutput() SnatEntryOutput
- func (o SnatEntryOutput) ToSnatEntryOutputWithContext(ctx context.Context) SnatEntryOutput
- type SnatEntryState
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) ElementType() reflect.Type
func (DnatEntriesDnatEntryArrayOutput) Index ¶
func (o DnatEntriesDnatEntryArrayOutput) Index(i pulumi.IntInput) DnatEntriesDnatEntryOutput
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 ¶
func (o DnatEntriesDnatEntryOutput) DnatEntryId() pulumi.StringOutput
The ID of the DNAT entry.
func (DnatEntriesDnatEntryOutput) DnatEntryName ¶
func (o DnatEntriesDnatEntryOutput) DnatEntryName() pulumi.StringOutput
The name of the DNAT entry.
func (DnatEntriesDnatEntryOutput) ElementType ¶
func (DnatEntriesDnatEntryOutput) ElementType() reflect.Type
func (DnatEntriesDnatEntryOutput) ExternalIp ¶
func (o DnatEntriesDnatEntryOutput) ExternalIp() pulumi.StringOutput
Provides the public IP address for public network access.
func (DnatEntriesDnatEntryOutput) ExternalPort ¶
func (o DnatEntriesDnatEntryOutput) 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 (DnatEntriesDnatEntryOutput) InternalIp ¶
func (o DnatEntriesDnatEntryOutput) InternalIp() pulumi.StringOutput
Provides the internal IP address.
func (DnatEntriesDnatEntryOutput) InternalPort ¶
func (o DnatEntriesDnatEntryOutput) InternalPort() pulumi.StringOutput
The port or port segment on which the cloud server instance provides services to the public network.
func (DnatEntriesDnatEntryOutput) NatGatewayId ¶
func (o DnatEntriesDnatEntryOutput) NatGatewayId() pulumi.StringOutput
The id of the NAT gateway.
func (DnatEntriesDnatEntryOutput) Protocol ¶
func (o DnatEntriesDnatEntryOutput) Protocol() pulumi.StringOutput
The network protocol.
func (DnatEntriesDnatEntryOutput) Status ¶
func (o DnatEntriesDnatEntryOutput) Status() pulumi.StringOutput
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 DnatEntriesOutput ¶
func DnatEntriesOutput(ctx *pulumi.Context, args DnatEntriesOutputArgs, opts ...pulumi.InvokeOption) DnatEntriesResultOutput
func (DnatEntriesResultOutput) DnatEntries ¶
func (o DnatEntriesResultOutput) DnatEntries() DnatEntriesDnatEntryArrayOutput
List of DNAT entries.
func (DnatEntriesResultOutput) DnatEntryName ¶
func (o DnatEntriesResultOutput) DnatEntryName() pulumi.StringPtrOutput
The name of the DNAT entry.
func (DnatEntriesResultOutput) ElementType ¶
func (DnatEntriesResultOutput) ElementType() reflect.Type
func (DnatEntriesResultOutput) ExternalIp ¶
func (o DnatEntriesResultOutput) ExternalIp() pulumi.StringPtrOutput
Provides the public IP address for public network access.
func (DnatEntriesResultOutput) ExternalPort ¶
func (o DnatEntriesResultOutput) ExternalPort() pulumi.StringPtrOutput
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 ¶
func (o DnatEntriesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (DnatEntriesResultOutput) Ids ¶
func (o DnatEntriesResultOutput) Ids() pulumi.StringArrayOutput
func (DnatEntriesResultOutput) InternalIp ¶
func (o DnatEntriesResultOutput) InternalIp() pulumi.StringPtrOutput
Provides the internal IP address.
func (DnatEntriesResultOutput) InternalPort ¶
func (o DnatEntriesResultOutput) InternalPort() pulumi.StringPtrOutput
The port or port segment on which the cloud server instance provides services to the public network.
func (DnatEntriesResultOutput) NatGatewayId ¶
func (o DnatEntriesResultOutput) NatGatewayId() pulumi.StringPtrOutput
The ID of the NAT gateway.
func (DnatEntriesResultOutput) OutputFile ¶
func (o DnatEntriesResultOutput) OutputFile() pulumi.StringPtrOutput
func (DnatEntriesResultOutput) Protocol ¶
func (o DnatEntriesResultOutput) Protocol() pulumi.StringPtrOutput
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) 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 (o DnatEntryArrayOutput) Index(i pulumi.IntInput) DnatEntryOutput
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 (o DnatEntryMapOutput) MapIndex(k pulumi.StringInput) DnatEntryOutput
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) 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 (o GatewayArrayOutput) Index(i pulumi.IntInput) GatewayOutput
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 (o GatewayMapOutput) MapIndex(k pulumi.StringInput) GatewayOutput
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 ¶
func (o GatewayOutput) Spec() pulumi.StringPtrOutput
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) ToGatewayOutput ¶
func (o GatewayOutput) ToGatewayOutput() GatewayOutput
func (GatewayOutput) ToGatewayOutputWithContext ¶
func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
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 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 (o GatewayTagArrayOutput) Index(i pulumi.IntInput) GatewayTagOutput
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) ToGatewayTagOutput ¶
func (o GatewayTagOutput) ToGatewayTagOutput() GatewayTagOutput
func (GatewayTagOutput) ToGatewayTagOutputWithContext ¶
func (o GatewayTagOutput) ToGatewayTagOutputWithContext(ctx context.Context) GatewayTagOutput
func (GatewayTagOutput) Value ¶
func (o GatewayTagOutput) Value() pulumi.StringOutput
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) ElementType() reflect.Type
func (GatewaysNatGatewayArrayOutput) Index ¶
func (o GatewaysNatGatewayArrayOutput) Index(i pulumi.IntInput) GatewaysNatGatewayOutput
func (GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutput ¶
func (o GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutput() GatewaysNatGatewayArrayOutput
func (GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutputWithContext ¶
func (o GatewaysNatGatewayArrayOutput) ToGatewaysNatGatewayArrayOutputWithContext(ctx context.Context) GatewaysNatGatewayArrayOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 ¶
func (o GatewaysNatGatewayEipAddressOutput) AllocationId() pulumi.StringOutput
The ID of Eip.
func (GatewaysNatGatewayEipAddressOutput) EipAddress ¶
func (o GatewaysNatGatewayEipAddressOutput) EipAddress() pulumi.StringOutput
The address of Eip.
func (GatewaysNatGatewayEipAddressOutput) ElementType ¶
func (GatewaysNatGatewayEipAddressOutput) ElementType() reflect.Type
func (GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutput ¶
func (o GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutput() GatewaysNatGatewayEipAddressOutput
func (GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutputWithContext ¶
func (o GatewaysNatGatewayEipAddressOutput) ToGatewaysNatGatewayEipAddressOutputWithContext(ctx context.Context) GatewaysNatGatewayEipAddressOutput
func (GatewaysNatGatewayEipAddressOutput) UsingStatus ¶
func (o GatewaysNatGatewayEipAddressOutput) UsingStatus() pulumi.StringOutput
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 ¶
func (o GatewaysNatGatewayOutput) BillingType() pulumi.StringOutput
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 ¶
func (o GatewaysNatGatewayOutput) DeletedTime() pulumi.StringOutput
The deleted time of the NatGateway.
func (GatewaysNatGatewayOutput) Description ¶
func (o GatewaysNatGatewayOutput) Description() pulumi.StringOutput
The description of the NatGateway.
func (GatewaysNatGatewayOutput) EipAddresses ¶
func (o GatewaysNatGatewayOutput) EipAddresses() GatewaysNatGatewayEipAddressArrayOutput
The eip addresses of the NatGateway.
func (GatewaysNatGatewayOutput) ElementType ¶
func (GatewaysNatGatewayOutput) ElementType() reflect.Type
func (GatewaysNatGatewayOutput) Id ¶
func (o GatewaysNatGatewayOutput) Id() pulumi.StringOutput
The ID of the NatGateway.
func (GatewaysNatGatewayOutput) LockReason ¶
func (o GatewaysNatGatewayOutput) LockReason() pulumi.StringOutput
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 ¶
func (o GatewaysNatGatewayOutput) OverdueTime() pulumi.StringOutput
The overdue time of the NatGateway.
func (GatewaysNatGatewayOutput) Spec ¶
func (o GatewaysNatGatewayOutput) Spec() pulumi.StringOutput
The specification of the NatGateway.
func (GatewaysNatGatewayOutput) Status ¶
func (o GatewaysNatGatewayOutput) Status() pulumi.StringOutput
The status of the NatGateway.
func (GatewaysNatGatewayOutput) SubnetId ¶
func (o GatewaysNatGatewayOutput) SubnetId() pulumi.StringOutput
The id of the Subnet.
func (GatewaysNatGatewayOutput) Tags ¶
func (o GatewaysNatGatewayOutput) Tags() GatewaysNatGatewayTagArrayOutput
Tags.
func (GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutput ¶
func (o GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutput() GatewaysNatGatewayOutput
func (GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutputWithContext ¶
func (o GatewaysNatGatewayOutput) ToGatewaysNatGatewayOutputWithContext(ctx context.Context) GatewaysNatGatewayOutput
func (GatewaysNatGatewayOutput) UpdatedAt ¶
func (o GatewaysNatGatewayOutput) UpdatedAt() pulumi.StringOutput
The update time of the NatGateway.
func (GatewaysNatGatewayOutput) VpcId ¶
func (o GatewaysNatGatewayOutput) VpcId() pulumi.StringOutput
The id of the VPC.
type GatewaysNatGatewayTag ¶
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) ElementType() reflect.Type
func (GatewaysNatGatewayTagArrayOutput) Index ¶
func (o GatewaysNatGatewayTagArrayOutput) Index(i pulumi.IntInput) GatewaysNatGatewayTagOutput
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) ElementType() reflect.Type
func (GatewaysNatGatewayTagOutput) Key ¶
func (o GatewaysNatGatewayTagOutput) Key() pulumi.StringOutput
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 ¶
func (o GatewaysNatGatewayTagOutput) Value() pulumi.StringOutput
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 GatewaysOutput ¶
func GatewaysOutput(ctx *pulumi.Context, args GatewaysOutputArgs, opts ...pulumi.InvokeOption) GatewaysResultOutput
func (GatewaysResultOutput) Description ¶
func (o GatewaysResultOutput) Description() pulumi.StringPtrOutput
The description of the NatGateway.
func (GatewaysResultOutput) ElementType ¶
func (GatewaysResultOutput) ElementType() reflect.Type
func (GatewaysResultOutput) Id ¶
func (o GatewaysResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GatewaysResultOutput) Ids ¶
func (o GatewaysResultOutput) Ids() pulumi.StringArrayOutput
func (GatewaysResultOutput) NameRegex ¶
func (o GatewaysResultOutput) NameRegex() pulumi.StringPtrOutput
func (GatewaysResultOutput) NatGatewayName ¶
func (o GatewaysResultOutput) NatGatewayName() pulumi.StringPtrOutput
The name of the NatGateway.
func (GatewaysResultOutput) NatGateways ¶
func (o GatewaysResultOutput) NatGateways() GatewaysNatGatewayArrayOutput
The collection of NatGateway query.
func (GatewaysResultOutput) OutputFile ¶
func (o GatewaysResultOutput) OutputFile() pulumi.StringPtrOutput
func (GatewaysResultOutput) Spec ¶
func (o GatewaysResultOutput) Spec() pulumi.StringPtrOutput
The specification of the NatGateway.
func (GatewaysResultOutput) SubnetId ¶
func (o GatewaysResultOutput) SubnetId() pulumi.StringPtrOutput
The ID of the Subnet.
func (GatewaysResultOutput) Tags ¶
func (o GatewaysResultOutput) Tags() GatewaysTagArrayOutput
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 ¶
func (o GatewaysResultOutput) VpcId() pulumi.StringPtrOutput
The ID of the VPC.
type GatewaysTag ¶
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 (o GatewaysTagArrayOutput) Index(i pulumi.IntInput) GatewaysTagOutput
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 ¶
func (o GatewaysTagOutput) Key() pulumi.StringOutput
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 ¶
func (o GatewaysTagOutput) Value() pulumi.StringOutput
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 SnatEntriesOutput ¶
func SnatEntriesOutput(ctx *pulumi.Context, args SnatEntriesOutputArgs, opts ...pulumi.InvokeOption) SnatEntriesResultOutput
func (SnatEntriesResultOutput) EipId ¶
func (o SnatEntriesResultOutput) EipId() pulumi.StringPtrOutput
The id of the public ip address used by the SNAT entry.
func (SnatEntriesResultOutput) ElementType ¶
func (SnatEntriesResultOutput) ElementType() reflect.Type
func (SnatEntriesResultOutput) Id ¶
func (o SnatEntriesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (SnatEntriesResultOutput) Ids ¶
func (o SnatEntriesResultOutput) Ids() pulumi.StringArrayOutput
func (SnatEntriesResultOutput) NatGatewayId ¶
func (o SnatEntriesResultOutput) NatGatewayId() pulumi.StringPtrOutput
The id of the nat gateway to which the entry belongs.
func (SnatEntriesResultOutput) OutputFile ¶
func (o SnatEntriesResultOutput) OutputFile() pulumi.StringPtrOutput
func (SnatEntriesResultOutput) SnatEntries ¶
func (o SnatEntriesResultOutput) SnatEntries() SnatEntriesSnatEntryArrayOutput
The collection of snat entries.
func (SnatEntriesResultOutput) SnatEntryName ¶
func (o SnatEntriesResultOutput) SnatEntryName() pulumi.StringPtrOutput
The name of the SNAT entry.
func (SnatEntriesResultOutput) SourceCidr ¶
func (o SnatEntriesResultOutput) SourceCidr() pulumi.StringPtrOutput
The SourceCidr of the SNAT entry.
func (SnatEntriesResultOutput) SubnetId ¶
func (o SnatEntriesResultOutput) SubnetId() pulumi.StringPtrOutput
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) ElementType() reflect.Type
func (SnatEntriesSnatEntryArrayOutput) Index ¶
func (o SnatEntriesSnatEntryArrayOutput) Index(i pulumi.IntInput) SnatEntriesSnatEntryOutput
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 ¶
func (o SnatEntriesSnatEntryOutput) EipAddress() pulumi.StringOutput
The public ip address used by the SNAT entry.
func (SnatEntriesSnatEntryOutput) EipId ¶
func (o SnatEntriesSnatEntryOutput) EipId() pulumi.StringOutput
An id of the public ip address used by the SNAT entry.
func (SnatEntriesSnatEntryOutput) ElementType ¶
func (SnatEntriesSnatEntryOutput) ElementType() reflect.Type
func (SnatEntriesSnatEntryOutput) Id ¶
func (o SnatEntriesSnatEntryOutput) Id() pulumi.StringOutput
The id of the SNAT entry.
func (SnatEntriesSnatEntryOutput) NatGatewayId ¶
func (o SnatEntriesSnatEntryOutput) NatGatewayId() pulumi.StringOutput
An id of the nat gateway to which the entry belongs.
func (SnatEntriesSnatEntryOutput) SnatEntryId ¶
func (o SnatEntriesSnatEntryOutput) SnatEntryId() pulumi.StringOutput
The id of the SNAT entry.
func (SnatEntriesSnatEntryOutput) SnatEntryName ¶
func (o SnatEntriesSnatEntryOutput) SnatEntryName() pulumi.StringOutput
A name of SNAT entry.
func (SnatEntriesSnatEntryOutput) SourceCidr ¶
func (o SnatEntriesSnatEntryOutput) SourceCidr() pulumi.StringOutput
The SourceCidr of SNAT entry.
func (SnatEntriesSnatEntryOutput) Status ¶
func (o SnatEntriesSnatEntryOutput) Status() pulumi.StringOutput
The status of the SNAT entry.
func (SnatEntriesSnatEntryOutput) SubnetId ¶
func (o SnatEntriesSnatEntryOutput) SubnetId() pulumi.StringOutput
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) 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 (o SnatEntryArrayOutput) Index(i pulumi.IntInput) SnatEntryOutput
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 (o SnatEntryMapOutput) MapIndex(k pulumi.StringInput) SnatEntryOutput
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 ¶
func (o SnatEntryOutput) EipId() pulumi.StringOutput
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