alicloud logo
Alibaba Cloud v3.30.0, Feb 1 23

alicloud.vpc.GatewayRouteTableAttachment

Provides a VPC Gateway Route Table Attachment resource.

For information about VPC Gateway Route Table Attachment and how to use it, see What is Gateway Route Table Attachment.

NOTE: Available in v1.194.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = new AliCloud.Vpc.GatewayRouteTableAttachment("example", new()
    {
        Ipv4GatewayId = "example_value",
        RouteTableId = "example_value",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.NewGatewayRouteTableAttachment(ctx, "example", &vpc.GatewayRouteTableAttachmentArgs{
			Ipv4GatewayId: pulumi.String("example_value"),
			RouteTableId:  pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.GatewayRouteTableAttachment;
import com.pulumi.alicloud.vpc.GatewayRouteTableAttachmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new GatewayRouteTableAttachment("example", GatewayRouteTableAttachmentArgs.builder()        
            .ipv4GatewayId("example_value")
            .routeTableId("example_value")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.vpc.GatewayRouteTableAttachment("example",
    ipv4_gateway_id="example_value",
    route_table_id="example_value")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.vpc.GatewayRouteTableAttachment("example", {
    ipv4GatewayId: "example_value",
    routeTableId: "example_value",
});
resources:
  example:
    type: alicloud:vpc:GatewayRouteTableAttachment
    properties:
      ipv4GatewayId: example_value
      routeTableId: example_value

Create GatewayRouteTableAttachment Resource

new GatewayRouteTableAttachment(name: string, args: GatewayRouteTableAttachmentArgs, opts?: CustomResourceOptions);
@overload
def GatewayRouteTableAttachment(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                dry_run: Optional[bool] = None,
                                ipv4_gateway_id: Optional[str] = None,
                                route_table_id: Optional[str] = None)
@overload
def GatewayRouteTableAttachment(resource_name: str,
                                args: GatewayRouteTableAttachmentArgs,
                                opts: Optional[ResourceOptions] = None)
func NewGatewayRouteTableAttachment(ctx *Context, name string, args GatewayRouteTableAttachmentArgs, opts ...ResourceOption) (*GatewayRouteTableAttachment, error)
public GatewayRouteTableAttachment(string name, GatewayRouteTableAttachmentArgs args, CustomResourceOptions? opts = null)
public GatewayRouteTableAttachment(String name, GatewayRouteTableAttachmentArgs args)
public GatewayRouteTableAttachment(String name, GatewayRouteTableAttachmentArgs args, CustomResourceOptions options)
type: alicloud:vpc:GatewayRouteTableAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GatewayRouteTableAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GatewayRouteTableAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GatewayRouteTableAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GatewayRouteTableAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GatewayRouteTableAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GatewayRouteTableAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The GatewayRouteTableAttachment resource accepts the following input properties:

Ipv4GatewayId string

The ID of the IPv4 Gateway instance.

RouteTableId string

The ID of the Gateway route table to be bound.

DryRun bool

Specifies whether to only precheck this request. Default value: false.

Ipv4GatewayId string

The ID of the IPv4 Gateway instance.

RouteTableId string

The ID of the Gateway route table to be bound.

DryRun bool

Specifies whether to only precheck this request. Default value: false.

ipv4GatewayId String

The ID of the IPv4 Gateway instance.

routeTableId String

The ID of the Gateway route table to be bound.

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

ipv4GatewayId string

The ID of the IPv4 Gateway instance.

routeTableId string

The ID of the Gateway route table to be bound.

dryRun boolean

Specifies whether to only precheck this request. Default value: false.

ipv4_gateway_id str

The ID of the IPv4 Gateway instance.

route_table_id str

The ID of the Gateway route table to be bound.

dry_run bool

Specifies whether to only precheck this request. Default value: false.

ipv4GatewayId String

The ID of the IPv4 Gateway instance.

routeTableId String

The ID of the Gateway route table to be bound.

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

Outputs

All input properties are implicitly available as output properties. Additionally, the GatewayRouteTableAttachment resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the IPv4 Gateway instance. Value:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the IPv4 Gateway instance. Value:

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the IPv4 Gateway instance. Value:

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the IPv4 Gateway instance. Value:

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the IPv4 Gateway instance. Value:

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the IPv4 Gateway instance. Value:

Look up Existing GatewayRouteTableAttachment Resource

Get an existing GatewayRouteTableAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GatewayRouteTableAttachmentState, opts?: CustomResourceOptions): GatewayRouteTableAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dry_run: Optional[bool] = None,
        ipv4_gateway_id: Optional[str] = None,
        route_table_id: Optional[str] = None,
        status: Optional[str] = None) -> GatewayRouteTableAttachment
func GetGatewayRouteTableAttachment(ctx *Context, name string, id IDInput, state *GatewayRouteTableAttachmentState, opts ...ResourceOption) (*GatewayRouteTableAttachment, error)
public static GatewayRouteTableAttachment Get(string name, Input<string> id, GatewayRouteTableAttachmentState? state, CustomResourceOptions? opts = null)
public static GatewayRouteTableAttachment get(String name, Output<String> id, GatewayRouteTableAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DryRun bool

Specifies whether to only precheck this request. Default value: false.

Ipv4GatewayId string

The ID of the IPv4 Gateway instance.

RouteTableId string

The ID of the Gateway route table to be bound.

Status string

The status of the IPv4 Gateway instance. Value:

DryRun bool

Specifies whether to only precheck this request. Default value: false.

Ipv4GatewayId string

The ID of the IPv4 Gateway instance.

RouteTableId string

The ID of the Gateway route table to be bound.

Status string

The status of the IPv4 Gateway instance. Value:

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

ipv4GatewayId String

The ID of the IPv4 Gateway instance.

routeTableId String

The ID of the Gateway route table to be bound.

status String

The status of the IPv4 Gateway instance. Value:

dryRun boolean

Specifies whether to only precheck this request. Default value: false.

ipv4GatewayId string

The ID of the IPv4 Gateway instance.

routeTableId string

The ID of the Gateway route table to be bound.

status string

The status of the IPv4 Gateway instance. Value:

dry_run bool

Specifies whether to only precheck this request. Default value: false.

ipv4_gateway_id str

The ID of the IPv4 Gateway instance.

route_table_id str

The ID of the Gateway route table to be bound.

status str

The status of the IPv4 Gateway instance. Value:

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

ipv4GatewayId String

The ID of the IPv4 Gateway instance.

routeTableId String

The ID of the Gateway route table to be bound.

status String

The status of the IPv4 Gateway instance. Value:

Import

VPC Gateway Route Table Attachment can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/gatewayRouteTableAttachment:GatewayRouteTableAttachment example <route_table_id>:<ipv4_gateway_id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.