Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Table
- type TableArgs
- type TableArray
- type TableArrayInput
- type TableArrayOutput
- type TableEntry
- type TableEntryArgs
- type TableEntryArray
- type TableEntryArrayInput
- type TableEntryArrayOutput
- func (TableEntryArrayOutput) ElementType() reflect.Type
- func (o TableEntryArrayOutput) Index(i pulumi.IntInput) TableEntryOutput
- func (o TableEntryArrayOutput) ToTableEntryArrayOutput() TableEntryArrayOutput
- func (o TableEntryArrayOutput) ToTableEntryArrayOutputWithContext(ctx context.Context) TableEntryArrayOutput
- type TableEntryInput
- type TableEntryMap
- type TableEntryMapInput
- type TableEntryMapOutput
- func (TableEntryMapOutput) ElementType() reflect.Type
- func (o TableEntryMapOutput) MapIndex(k pulumi.StringInput) TableEntryOutput
- func (o TableEntryMapOutput) ToTableEntryMapOutput() TableEntryMapOutput
- func (o TableEntryMapOutput) ToTableEntryMapOutputWithContext(ctx context.Context) TableEntryMapOutput
- type TableEntryOutput
- func (o TableEntryOutput) Description() pulumi.StringPtrOutput
- func (o TableEntryOutput) DestinationCidrBlock() pulumi.StringOutput
- func (o TableEntryOutput) Disabled() pulumi.BoolPtrOutput
- func (TableEntryOutput) ElementType() reflect.Type
- func (o TableEntryOutput) NextHub() pulumi.StringOutput
- func (o TableEntryOutput) NextType() pulumi.StringOutput
- func (o TableEntryOutput) RouteTableId() pulumi.StringOutput
- func (o TableEntryOutput) ToTableEntryOutput() TableEntryOutput
- func (o TableEntryOutput) ToTableEntryOutputWithContext(ctx context.Context) TableEntryOutput
- type TableEntryState
- type TableInput
- type TableMap
- type TableMapInput
- type TableMapOutput
- type TableOutput
- func (o TableOutput) CreateTime() pulumi.StringOutput
- func (TableOutput) ElementType() reflect.Type
- func (o TableOutput) IsDefault() pulumi.BoolOutput
- func (o TableOutput) Name() pulumi.StringOutput
- func (o TableOutput) RouteEntryIds() pulumi.StringArrayOutput
- func (o TableOutput) SubnetIds() pulumi.StringArrayOutput
- func (o TableOutput) Tags() pulumi.MapOutput
- func (o TableOutput) ToTableOutput() TableOutput
- func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput
- func (o TableOutput) VpcId() pulumi.StringOutput
- type TableState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.5
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Table ¶
type Table struct { pulumi.CustomResourceState // Creation time of the routing table. CreateTime pulumi.StringOutput `pulumi:"createTime"` // Indicates whether it is the default routing table. IsDefault pulumi.BoolOutput `pulumi:"isDefault"` // The name of routing table. Name pulumi.StringOutput `pulumi:"name"` // ID list of the routing entries. RouteEntryIds pulumi.StringArrayOutput `pulumi:"routeEntryIds"` // ID list of the subnets associated with this route table. SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"` // The tags of routing table. Tags pulumi.MapOutput `pulumi:"tags"` // ID of VPC to which the route table should be associated. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Provides a resource to create a VPC routing table.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Route" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooInstance, err := Vpc.NewInstance(ctx, "fooInstance", &Vpc.InstanceArgs{ CidrBlock: pulumi.String("10.0.0.0/16"), }) if err != nil { return err } _, err = Route.NewTable(ctx, "fooTable", &Route.TableArgs{ VpcId: fooInstance.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Vpc routetable instance can be imported, e.g.
```sh
$ pulumi import tencentcloud:Route/table:Table test route_table_id
```
func GetTable ¶
func GetTable(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TableState, opts ...pulumi.ResourceOption) (*Table, error)
GetTable gets an existing Table 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 NewTable ¶
func NewTable(ctx *pulumi.Context, name string, args *TableArgs, opts ...pulumi.ResourceOption) (*Table, error)
NewTable registers a new resource with the given unique name, arguments, and options.
func (*Table) ElementType ¶
func (*Table) ToTableOutput ¶
func (i *Table) ToTableOutput() TableOutput
func (*Table) ToTableOutputWithContext ¶
func (i *Table) ToTableOutputWithContext(ctx context.Context) TableOutput
type TableArgs ¶
type TableArgs struct { // The name of routing table. Name pulumi.StringPtrInput // The tags of routing table. Tags pulumi.MapInput // ID of VPC to which the route table should be associated. VpcId pulumi.StringInput }
The set of arguments for constructing a Table resource.
func (TableArgs) ElementType ¶
type TableArray ¶
type TableArray []TableInput
func (TableArray) ElementType ¶
func (TableArray) ElementType() reflect.Type
func (TableArray) ToTableArrayOutput ¶
func (i TableArray) ToTableArrayOutput() TableArrayOutput
func (TableArray) ToTableArrayOutputWithContext ¶
func (i TableArray) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput
type TableArrayInput ¶
type TableArrayInput interface { pulumi.Input ToTableArrayOutput() TableArrayOutput ToTableArrayOutputWithContext(context.Context) TableArrayOutput }
TableArrayInput is an input type that accepts TableArray and TableArrayOutput values. You can construct a concrete instance of `TableArrayInput` via:
TableArray{ TableArgs{...} }
type TableArrayOutput ¶
type TableArrayOutput struct{ *pulumi.OutputState }
func (TableArrayOutput) ElementType ¶
func (TableArrayOutput) ElementType() reflect.Type
func (TableArrayOutput) Index ¶
func (o TableArrayOutput) Index(i pulumi.IntInput) TableOutput
func (TableArrayOutput) ToTableArrayOutput ¶
func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput
func (TableArrayOutput) ToTableArrayOutputWithContext ¶
func (o TableArrayOutput) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput
type TableEntry ¶
type TableEntry struct { pulumi.CustomResourceState // Description of the routing table entry. Description pulumi.StringPtrOutput `pulumi:"description"` // Destination address block. DestinationCidrBlock pulumi.StringOutput `pulumi:"destinationCidrBlock"` // Whether the entry is disabled, default is `false`. Disabled pulumi.BoolPtrOutput `pulumi:"disabled"` // ID of next-hop gateway. Note: when `nextType` is EIP, GatewayId should be `0`. NextHub pulumi.StringOutput `pulumi:"nextHub"` // Type of next-hop. Valid values: `CVM`, `VPN`, `DIRECTCONNECT`, `PEERCONNECTION`, `SSLVPN`, `NAT`, `NORMAL_CVM`, `EIP` and `CCN`. NextType pulumi.StringOutput `pulumi:"nextType"` // ID of routing table to which this entry belongs. RouteTableId pulumi.StringOutput `pulumi:"routeTableId"` }
Provides a resource to create an entry of a routing table.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Route" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") availabilityZone := "na-siliconvalley-1" if param := cfg.Get("availabilityZone"); param != "" { availabilityZone = param } fooInstance, err := Vpc.NewInstance(ctx, "fooInstance", &Vpc.InstanceArgs{ CidrBlock: pulumi.String("10.0.0.0/16"), }) if err != nil { return err } fooTable, err := Route.NewTable(ctx, "fooTable", &Route.TableArgs{ VpcId: fooInstance.ID(), }) if err != nil { return err } _, err = Subnet.NewInstance(ctx, "fooSubnet/instanceInstance", &Subnet.InstanceArgs{ VpcId: fooInstance.ID(), CidrBlock: pulumi.String("10.0.12.0/24"), AvailabilityZone: pulumi.String(availabilityZone), RouteTableId: fooTable.ID(), }) if err != nil { return err } _, err = Route.NewTableEntry(ctx, "instance", &Route.TableEntryArgs{ RouteTableId: fooTable.ID(), DestinationCidrBlock: pulumi.String("10.4.4.0/24"), NextType: pulumi.String("EIP"), NextHub: pulumi.String("0"), Description: pulumi.String("ci-test-route-table-entry"), }) if err != nil { return err } return nil }) }
```
## Import
Route table entry can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Route/tableEntry:TableEntry foo 83517.rtb-mlhpg09u
```
func GetTableEntry ¶
func GetTableEntry(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TableEntryState, opts ...pulumi.ResourceOption) (*TableEntry, error)
GetTableEntry gets an existing TableEntry 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 NewTableEntry ¶
func NewTableEntry(ctx *pulumi.Context, name string, args *TableEntryArgs, opts ...pulumi.ResourceOption) (*TableEntry, error)
NewTableEntry registers a new resource with the given unique name, arguments, and options.
func (*TableEntry) ElementType ¶
func (*TableEntry) ElementType() reflect.Type
func (*TableEntry) ToTableEntryOutput ¶
func (i *TableEntry) ToTableEntryOutput() TableEntryOutput
func (*TableEntry) ToTableEntryOutputWithContext ¶
func (i *TableEntry) ToTableEntryOutputWithContext(ctx context.Context) TableEntryOutput
type TableEntryArgs ¶
type TableEntryArgs struct { // Description of the routing table entry. Description pulumi.StringPtrInput // Destination address block. DestinationCidrBlock pulumi.StringInput // Whether the entry is disabled, default is `false`. Disabled pulumi.BoolPtrInput // ID of next-hop gateway. Note: when `nextType` is EIP, GatewayId should be `0`. NextHub pulumi.StringInput // Type of next-hop. Valid values: `CVM`, `VPN`, `DIRECTCONNECT`, `PEERCONNECTION`, `SSLVPN`, `NAT`, `NORMAL_CVM`, `EIP` and `CCN`. NextType pulumi.StringInput // ID of routing table to which this entry belongs. RouteTableId pulumi.StringInput }
The set of arguments for constructing a TableEntry resource.
func (TableEntryArgs) ElementType ¶
func (TableEntryArgs) ElementType() reflect.Type
type TableEntryArray ¶
type TableEntryArray []TableEntryInput
func (TableEntryArray) ElementType ¶
func (TableEntryArray) ElementType() reflect.Type
func (TableEntryArray) ToTableEntryArrayOutput ¶
func (i TableEntryArray) ToTableEntryArrayOutput() TableEntryArrayOutput
func (TableEntryArray) ToTableEntryArrayOutputWithContext ¶
func (i TableEntryArray) ToTableEntryArrayOutputWithContext(ctx context.Context) TableEntryArrayOutput
type TableEntryArrayInput ¶
type TableEntryArrayInput interface { pulumi.Input ToTableEntryArrayOutput() TableEntryArrayOutput ToTableEntryArrayOutputWithContext(context.Context) TableEntryArrayOutput }
TableEntryArrayInput is an input type that accepts TableEntryArray and TableEntryArrayOutput values. You can construct a concrete instance of `TableEntryArrayInput` via:
TableEntryArray{ TableEntryArgs{...} }
type TableEntryArrayOutput ¶
type TableEntryArrayOutput struct{ *pulumi.OutputState }
func (TableEntryArrayOutput) ElementType ¶
func (TableEntryArrayOutput) ElementType() reflect.Type
func (TableEntryArrayOutput) Index ¶
func (o TableEntryArrayOutput) Index(i pulumi.IntInput) TableEntryOutput
func (TableEntryArrayOutput) ToTableEntryArrayOutput ¶
func (o TableEntryArrayOutput) ToTableEntryArrayOutput() TableEntryArrayOutput
func (TableEntryArrayOutput) ToTableEntryArrayOutputWithContext ¶
func (o TableEntryArrayOutput) ToTableEntryArrayOutputWithContext(ctx context.Context) TableEntryArrayOutput
type TableEntryInput ¶
type TableEntryInput interface { pulumi.Input ToTableEntryOutput() TableEntryOutput ToTableEntryOutputWithContext(ctx context.Context) TableEntryOutput }
type TableEntryMap ¶
type TableEntryMap map[string]TableEntryInput
func (TableEntryMap) ElementType ¶
func (TableEntryMap) ElementType() reflect.Type
func (TableEntryMap) ToTableEntryMapOutput ¶
func (i TableEntryMap) ToTableEntryMapOutput() TableEntryMapOutput
func (TableEntryMap) ToTableEntryMapOutputWithContext ¶
func (i TableEntryMap) ToTableEntryMapOutputWithContext(ctx context.Context) TableEntryMapOutput
type TableEntryMapInput ¶
type TableEntryMapInput interface { pulumi.Input ToTableEntryMapOutput() TableEntryMapOutput ToTableEntryMapOutputWithContext(context.Context) TableEntryMapOutput }
TableEntryMapInput is an input type that accepts TableEntryMap and TableEntryMapOutput values. You can construct a concrete instance of `TableEntryMapInput` via:
TableEntryMap{ "key": TableEntryArgs{...} }
type TableEntryMapOutput ¶
type TableEntryMapOutput struct{ *pulumi.OutputState }
func (TableEntryMapOutput) ElementType ¶
func (TableEntryMapOutput) ElementType() reflect.Type
func (TableEntryMapOutput) MapIndex ¶
func (o TableEntryMapOutput) MapIndex(k pulumi.StringInput) TableEntryOutput
func (TableEntryMapOutput) ToTableEntryMapOutput ¶
func (o TableEntryMapOutput) ToTableEntryMapOutput() TableEntryMapOutput
func (TableEntryMapOutput) ToTableEntryMapOutputWithContext ¶
func (o TableEntryMapOutput) ToTableEntryMapOutputWithContext(ctx context.Context) TableEntryMapOutput
type TableEntryOutput ¶
type TableEntryOutput struct{ *pulumi.OutputState }
func (TableEntryOutput) Description ¶
func (o TableEntryOutput) Description() pulumi.StringPtrOutput
Description of the routing table entry.
func (TableEntryOutput) DestinationCidrBlock ¶
func (o TableEntryOutput) DestinationCidrBlock() pulumi.StringOutput
Destination address block.
func (TableEntryOutput) Disabled ¶
func (o TableEntryOutput) Disabled() pulumi.BoolPtrOutput
Whether the entry is disabled, default is `false`.
func (TableEntryOutput) ElementType ¶
func (TableEntryOutput) ElementType() reflect.Type
func (TableEntryOutput) NextHub ¶
func (o TableEntryOutput) NextHub() pulumi.StringOutput
ID of next-hop gateway. Note: when `nextType` is EIP, GatewayId should be `0`.
func (TableEntryOutput) NextType ¶
func (o TableEntryOutput) NextType() pulumi.StringOutput
Type of next-hop. Valid values: `CVM`, `VPN`, `DIRECTCONNECT`, `PEERCONNECTION`, `SSLVPN`, `NAT`, `NORMAL_CVM`, `EIP` and `CCN`.
func (TableEntryOutput) RouteTableId ¶
func (o TableEntryOutput) RouteTableId() pulumi.StringOutput
ID of routing table to which this entry belongs.
func (TableEntryOutput) ToTableEntryOutput ¶
func (o TableEntryOutput) ToTableEntryOutput() TableEntryOutput
func (TableEntryOutput) ToTableEntryOutputWithContext ¶
func (o TableEntryOutput) ToTableEntryOutputWithContext(ctx context.Context) TableEntryOutput
type TableEntryState ¶
type TableEntryState struct { // Description of the routing table entry. Description pulumi.StringPtrInput // Destination address block. DestinationCidrBlock pulumi.StringPtrInput // Whether the entry is disabled, default is `false`. Disabled pulumi.BoolPtrInput // ID of next-hop gateway. Note: when `nextType` is EIP, GatewayId should be `0`. NextHub pulumi.StringPtrInput // Type of next-hop. Valid values: `CVM`, `VPN`, `DIRECTCONNECT`, `PEERCONNECTION`, `SSLVPN`, `NAT`, `NORMAL_CVM`, `EIP` and `CCN`. NextType pulumi.StringPtrInput // ID of routing table to which this entry belongs. RouteTableId pulumi.StringPtrInput }
func (TableEntryState) ElementType ¶
func (TableEntryState) ElementType() reflect.Type
type TableInput ¶
type TableInput interface { pulumi.Input ToTableOutput() TableOutput ToTableOutputWithContext(ctx context.Context) TableOutput }
type TableMap ¶
type TableMap map[string]TableInput
func (TableMap) ElementType ¶
func (TableMap) ToTableMapOutput ¶
func (i TableMap) ToTableMapOutput() TableMapOutput
func (TableMap) ToTableMapOutputWithContext ¶
func (i TableMap) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput
type TableMapInput ¶
type TableMapInput interface { pulumi.Input ToTableMapOutput() TableMapOutput ToTableMapOutputWithContext(context.Context) TableMapOutput }
TableMapInput is an input type that accepts TableMap and TableMapOutput values. You can construct a concrete instance of `TableMapInput` via:
TableMap{ "key": TableArgs{...} }
type TableMapOutput ¶
type TableMapOutput struct{ *pulumi.OutputState }
func (TableMapOutput) ElementType ¶
func (TableMapOutput) ElementType() reflect.Type
func (TableMapOutput) MapIndex ¶
func (o TableMapOutput) MapIndex(k pulumi.StringInput) TableOutput
func (TableMapOutput) ToTableMapOutput ¶
func (o TableMapOutput) ToTableMapOutput() TableMapOutput
func (TableMapOutput) ToTableMapOutputWithContext ¶
func (o TableMapOutput) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput
type TableOutput ¶
type TableOutput struct{ *pulumi.OutputState }
func (TableOutput) CreateTime ¶
func (o TableOutput) CreateTime() pulumi.StringOutput
Creation time of the routing table.
func (TableOutput) ElementType ¶
func (TableOutput) ElementType() reflect.Type
func (TableOutput) IsDefault ¶
func (o TableOutput) IsDefault() pulumi.BoolOutput
Indicates whether it is the default routing table.
func (TableOutput) Name ¶
func (o TableOutput) Name() pulumi.StringOutput
The name of routing table.
func (TableOutput) RouteEntryIds ¶
func (o TableOutput) RouteEntryIds() pulumi.StringArrayOutput
ID list of the routing entries.
func (TableOutput) SubnetIds ¶
func (o TableOutput) SubnetIds() pulumi.StringArrayOutput
ID list of the subnets associated with this route table.
func (TableOutput) ToTableOutput ¶
func (o TableOutput) ToTableOutput() TableOutput
func (TableOutput) ToTableOutputWithContext ¶
func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput
func (TableOutput) VpcId ¶
func (o TableOutput) VpcId() pulumi.StringOutput
ID of VPC to which the route table should be associated.
type TableState ¶
type TableState struct { // Creation time of the routing table. CreateTime pulumi.StringPtrInput // Indicates whether it is the default routing table. IsDefault pulumi.BoolPtrInput // The name of routing table. Name pulumi.StringPtrInput // ID list of the routing entries. RouteEntryIds pulumi.StringArrayInput // ID list of the subnets associated with this route table. SubnetIds pulumi.StringArrayInput // The tags of routing table. Tags pulumi.MapInput // ID of VPC to which the route table should be associated. VpcId pulumi.StringPtrInput }
func (TableState) ElementType ¶
func (TableState) ElementType() reflect.Type