opentelekomcloud.ErRouteTableV3
Explore with Pulumi AI
Manages a route table resource under the ER instance within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const routeTableName = config.requireObject("routeTableName");
const test = new opentelekomcloud.ErRouteTableV3("test", {
instanceId: instanceId,
description: "Route table created by terraform",
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
route_table_name = config.require_object("routeTableName")
test = opentelekomcloud.ErRouteTableV3("test",
instance_id=instance_id,
description="Route table created by terraform",
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
routeTableName := cfg.RequireObject("routeTableName")
_, err := opentelekomcloud.NewErRouteTableV3(ctx, "test", &opentelekomcloud.ErRouteTableV3Args{
InstanceId: pulumi.Any(instanceId),
Description: pulumi.String("Route table created by terraform"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var routeTableName = config.RequireObject<dynamic>("routeTableName");
var test = new Opentelekomcloud.ErRouteTableV3("test", new()
{
InstanceId = instanceId,
Description = "Route table created by terraform",
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ErRouteTableV3;
import com.pulumi.opentelekomcloud.ErRouteTableV3Args;
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) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
final var routeTableName = config.get("routeTableName");
var test = new ErRouteTableV3("test", ErRouteTableV3Args.builder()
.instanceId(instanceId)
.description("Route table created by terraform")
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
configuration:
instanceId:
type: dynamic
routeTableName:
type: dynamic
resources:
test:
type: opentelekomcloud:ErRouteTableV3
properties:
instanceId: ${instanceId}
description: Route table created by terraform
tags:
foo: bar
key: value
Create ErRouteTableV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ErRouteTableV3(name: string, args: ErRouteTableV3Args, opts?: CustomResourceOptions);
@overload
def ErRouteTableV3(resource_name: str,
args: ErRouteTableV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def ErRouteTableV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
description: Optional[str] = None,
er_route_table_v3_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ErRouteTableV3TimeoutsArgs] = None)
func NewErRouteTableV3(ctx *Context, name string, args ErRouteTableV3Args, opts ...ResourceOption) (*ErRouteTableV3, error)
public ErRouteTableV3(string name, ErRouteTableV3Args args, CustomResourceOptions? opts = null)
public ErRouteTableV3(String name, ErRouteTableV3Args args)
public ErRouteTableV3(String name, ErRouteTableV3Args args, CustomResourceOptions options)
type: opentelekomcloud:ErRouteTableV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ErRouteTableV3Args
- 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 ErRouteTableV3Args
- 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 ErRouteTableV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ErRouteTableV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ErRouteTableV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var erRouteTableV3Resource = new Opentelekomcloud.ErRouteTableV3("erRouteTableV3Resource", new()
{
InstanceId = "string",
Description = "string",
ErRouteTableV3Id = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.ErRouteTableV3TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewErRouteTableV3(ctx, "erRouteTableV3Resource", &opentelekomcloud.ErRouteTableV3Args{
InstanceId: pulumi.String("string"),
Description: pulumi.String("string"),
ErRouteTableV3Id: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.ErRouteTableV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var erRouteTableV3Resource = new ErRouteTableV3("erRouteTableV3Resource", ErRouteTableV3Args.builder()
.instanceId("string")
.description("string")
.erRouteTableV3Id("string")
.name("string")
.tags(Map.of("string", "string"))
.timeouts(ErRouteTableV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
er_route_table_v3_resource = opentelekomcloud.ErRouteTableV3("erRouteTableV3Resource",
instance_id="string",
description="string",
er_route_table_v3_id="string",
name="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const erRouteTableV3Resource = new opentelekomcloud.ErRouteTableV3("erRouteTableV3Resource", {
instanceId: "string",
description: "string",
erRouteTableV3Id: "string",
name: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:ErRouteTableV3
properties:
description: string
erRouteTableV3Id: string
instanceId: string
name: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
ErRouteTableV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ErRouteTableV3 resource accepts the following input properties:
- Instance
Id string - Specifies the ID of the ER instance to which the route table belongs.
- Description string
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- Er
Route stringTable V3Id - The resource ID.
- Name string
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- Dictionary<string, string>
- (Optional, Map) Tags key/value pairs to associate with the instance.
- Timeouts
Er
Route Table V3Timeouts
- Instance
Id string - Specifies the ID of the ER instance to which the route table belongs.
- Description string
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- Er
Route stringTable V3Id - The resource ID.
- Name string
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- map[string]string
- (Optional, Map) Tags key/value pairs to associate with the instance.
- Timeouts
Er
Route Table V3Timeouts Args
- instance
Id String - Specifies the ID of the ER instance to which the route table belongs.
- description String
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er
Route StringTable V3Id - The resource ID.
- name String
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- Map<String,String>
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts
Er
Route Table V3Timeouts
- instance
Id string - Specifies the ID of the ER instance to which the route table belongs.
- description string
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er
Route stringTable V3Id - The resource ID.
- name string
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- {[key: string]: string}
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts
Er
Route Table V3Timeouts
- instance_
id str - Specifies the ID of the ER instance to which the route table belongs.
- description str
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er_
route_ strtable_ v3_ id - The resource ID.
- name str
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- Mapping[str, str]
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts
Er
Route Table V3Timeouts Args
- instance
Id String - Specifies the ID of the ER instance to which the route table belongs.
- description String
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er
Route StringTable V3Id - The resource ID.
- name String
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- Map<String>
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ErRouteTableV3 resource produces the following output properties:
- Created
At string - The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default boolAssociation - Whether this route table is the default association route table.
- Is
Default boolPropagation - Whether this route table is the default propagation route table.
- Region string
- The region where the ER instance and route table are located.
- Status string
- The current status of the route table.
- Updated
At string - The latest update time.
- Created
At string - The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default boolAssociation - Whether this route table is the default association route table.
- Is
Default boolPropagation - Whether this route table is the default propagation route table.
- Region string
- The region where the ER instance and route table are located.
- Status string
- The current status of the route table.
- Updated
At string - The latest update time.
- created
At String - The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default BooleanAssociation - Whether this route table is the default association route table.
- is
Default BooleanPropagation - Whether this route table is the default propagation route table.
- region String
- The region where the ER instance and route table are located.
- status String
- The current status of the route table.
- updated
At String - The latest update time.
- created
At string - The creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default booleanAssociation - Whether this route table is the default association route table.
- is
Default booleanPropagation - Whether this route table is the default propagation route table.
- region string
- The region where the ER instance and route table are located.
- status string
- The current status of the route table.
- updated
At string - The latest update time.
- created_
at str - The creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default_ boolassociation - Whether this route table is the default association route table.
- is_
default_ boolpropagation - Whether this route table is the default propagation route table.
- region str
- The region where the ER instance and route table are located.
- status str
- The current status of the route table.
- updated_
at str - The latest update time.
- created
At String - The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default BooleanAssociation - Whether this route table is the default association route table.
- is
Default BooleanPropagation - Whether this route table is the default propagation route table.
- region String
- The region where the ER instance and route table are located.
- status String
- The current status of the route table.
- updated
At String - The latest update time.
Look up Existing ErRouteTableV3 Resource
Get an existing ErRouteTableV3 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?: ErRouteTableV3State, opts?: CustomResourceOptions): ErRouteTableV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
er_route_table_v3_id: Optional[str] = None,
instance_id: Optional[str] = None,
is_default_association: Optional[bool] = None,
is_default_propagation: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ErRouteTableV3TimeoutsArgs] = None,
updated_at: Optional[str] = None) -> ErRouteTableV3
func GetErRouteTableV3(ctx *Context, name string, id IDInput, state *ErRouteTableV3State, opts ...ResourceOption) (*ErRouteTableV3, error)
public static ErRouteTableV3 Get(string name, Input<string> id, ErRouteTableV3State? state, CustomResourceOptions? opts = null)
public static ErRouteTableV3 get(String name, Output<String> id, ErRouteTableV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ErRouteTableV3 get: id: ${id}
- 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.
- Created
At string - The creation time.
- Description string
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- Er
Route stringTable V3Id - The resource ID.
- Instance
Id string - Specifies the ID of the ER instance to which the route table belongs.
- Is
Default boolAssociation - Whether this route table is the default association route table.
- Is
Default boolPropagation - Whether this route table is the default propagation route table.
- Name string
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- Region string
- The region where the ER instance and route table are located.
- Status string
- The current status of the route table.
- Dictionary<string, string>
- (Optional, Map) Tags key/value pairs to associate with the instance.
- Timeouts
Er
Route Table V3Timeouts - Updated
At string - The latest update time.
- Created
At string - The creation time.
- Description string
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- Er
Route stringTable V3Id - The resource ID.
- Instance
Id string - Specifies the ID of the ER instance to which the route table belongs.
- Is
Default boolAssociation - Whether this route table is the default association route table.
- Is
Default boolPropagation - Whether this route table is the default propagation route table.
- Name string
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- Region string
- The region where the ER instance and route table are located.
- Status string
- The current status of the route table.
- map[string]string
- (Optional, Map) Tags key/value pairs to associate with the instance.
- Timeouts
Er
Route Table V3Timeouts Args - Updated
At string - The latest update time.
- created
At String - The creation time.
- description String
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er
Route StringTable V3Id - The resource ID.
- instance
Id String - Specifies the ID of the ER instance to which the route table belongs.
- is
Default BooleanAssociation - Whether this route table is the default association route table.
- is
Default BooleanPropagation - Whether this route table is the default propagation route table.
- name String
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- region String
- The region where the ER instance and route table are located.
- status String
- The current status of the route table.
- Map<String,String>
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts
Er
Route Table V3Timeouts - updated
At String - The latest update time.
- created
At string - The creation time.
- description string
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er
Route stringTable V3Id - The resource ID.
- instance
Id string - Specifies the ID of the ER instance to which the route table belongs.
- is
Default booleanAssociation - Whether this route table is the default association route table.
- is
Default booleanPropagation - Whether this route table is the default propagation route table.
- name string
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- region string
- The region where the ER instance and route table are located.
- status string
- The current status of the route table.
- {[key: string]: string}
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts
Er
Route Table V3Timeouts - updated
At string - The latest update time.
- created_
at str - The creation time.
- description str
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er_
route_ strtable_ v3_ id - The resource ID.
- instance_
id str - Specifies the ID of the ER instance to which the route table belongs.
- is_
default_ boolassociation - Whether this route table is the default association route table.
- is_
default_ boolpropagation - Whether this route table is the default propagation route table.
- name str
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- region str
- The region where the ER instance and route table are located.
- status str
- The current status of the route table.
- Mapping[str, str]
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts
Er
Route Table V3Timeouts Args - updated_
at str - The latest update time.
- created
At String - The creation time.
- description String
- Specifies the description of the route table. The description contain a maximum of 255 characters, and the angle brackets (< and >) are not allowed.
- er
Route StringTable V3Id - The resource ID.
- instance
Id String - Specifies the ID of the ER instance to which the route table belongs.
- is
Default BooleanAssociation - Whether this route table is the default association route table.
- is
Default BooleanPropagation - Whether this route table is the default propagation route table.
- name String
- Specifies the name of the route table. The name can contain 1 to 64 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) allowed.
- region String
- The region where the ER instance and route table are located.
- status String
- The current status of the route table.
- Map<String>
- (Optional, Map) Tags key/value pairs to associate with the instance.
- timeouts Property Map
- updated
At String - The latest update time.
Supporting Types
ErRouteTableV3Timeouts, ErRouteTableV3TimeoutsArgs
Import
Route tables can be imported using their id
and the related instance_id
, separated by slashes (/), e.g.
$ pulumi import opentelekomcloud:index/erRouteTableV3:ErRouteTableV3 test instance_id/id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.