volcengine.transit_router.TransitRouter
Explore with Pulumi AI
Provides a resource to manage transit router
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Transit_router.TransitRouter("foo", new()
{
Asn = 4294967294,
Description = "acc-test",
ProjectName = "default",
Tags = new[]
{
new Volcengine.Transit_router.Inputs.TransitRouterTagArgs
{
Key = "k1",
Value = "v1",
},
},
TransitRouterName = "acc-test-tr",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := transit_router.NewTransitRouter(ctx, "foo", &transit_router.TransitRouterArgs{
Asn: pulumi.Int(4294967294),
Description: pulumi.String("acc-test"),
ProjectName: pulumi.String("default"),
Tags: transit_router.TransitRouterTagArray{
&transit_router.TransitRouterTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
TransitRouterName: pulumi.String("acc-test-tr"),
})
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.volcengine.transit_router.TransitRouter;
import com.pulumi.volcengine.transit_router.TransitRouterArgs;
import com.pulumi.volcengine.transit_router.inputs.TransitRouterTagArgs;
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 foo = new TransitRouter("foo", TransitRouterArgs.builder()
.asn(4294967294)
.description("acc-test")
.projectName("default")
.tags(TransitRouterTagArgs.builder()
.key("k1")
.value("v1")
.build())
.transitRouterName("acc-test-tr")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.transit_router.TransitRouter("foo",
asn=4294967294,
description="acc-test",
project_name="default",
tags=[volcengine.transit_router.TransitRouterTagArgs(
key="k1",
value="v1",
)],
transit_router_name="acc-test-tr")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.transit_router.TransitRouter("foo", {
asn: 4294967294,
description: "acc-test",
projectName: "default",
tags: [{
key: "k1",
value: "v1",
}],
transitRouterName: "acc-test-tr",
});
resources:
foo:
type: volcengine:transit_router:TransitRouter
properties:
asn: 4.294967294e+09
description: acc-test
projectName: default
tags:
- key: k1
value: v1
transitRouterName: acc-test-tr
Create TransitRouter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransitRouter(name: string, args?: TransitRouterArgs, opts?: CustomResourceOptions);
@overload
def TransitRouter(resource_name: str,
args: Optional[TransitRouterArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TransitRouter(resource_name: str,
opts: Optional[ResourceOptions] = None,
asn: Optional[int] = None,
description: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[TransitRouterTagArgs]] = None,
transit_router_name: Optional[str] = None)
func NewTransitRouter(ctx *Context, name string, args *TransitRouterArgs, opts ...ResourceOption) (*TransitRouter, error)
public TransitRouter(string name, TransitRouterArgs? args = null, CustomResourceOptions? opts = null)
public TransitRouter(String name, TransitRouterArgs args)
public TransitRouter(String name, TransitRouterArgs args, CustomResourceOptions options)
type: volcengine:transit_router:TransitRouter
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 TransitRouterArgs
- 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 TransitRouterArgs
- 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 TransitRouterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitRouterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitRouterArgs
- 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 transitRouterResource = new Volcengine.Transit_router.TransitRouter("transitRouterResource", new()
{
Asn = 0,
Description = "string",
ProjectName = "string",
Tags = new[]
{
new Volcengine.Transit_router.Inputs.TransitRouterTagArgs
{
Key = "string",
Value = "string",
},
},
TransitRouterName = "string",
});
example, err := transit_router.NewTransitRouter(ctx, "transitRouterResource", &transit_router.TransitRouterArgs{
Asn: pulumi.Int(0),
Description: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Tags: transit_router.TransitRouterTagArray{
&transit_router.TransitRouterTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TransitRouterName: pulumi.String("string"),
})
var transitRouterResource = new TransitRouter("transitRouterResource", TransitRouterArgs.builder()
.asn(0)
.description("string")
.projectName("string")
.tags(TransitRouterTagArgs.builder()
.key("string")
.value("string")
.build())
.transitRouterName("string")
.build());
transit_router_resource = volcengine.transit_router.TransitRouter("transitRouterResource",
asn=0,
description="string",
project_name="string",
tags=[volcengine.transit_router.TransitRouterTagArgs(
key="string",
value="string",
)],
transit_router_name="string")
const transitRouterResource = new volcengine.transit_router.TransitRouter("transitRouterResource", {
asn: 0,
description: "string",
projectName: "string",
tags: [{
key: "string",
value: "string",
}],
transitRouterName: "string",
});
type: volcengine:transit_router:TransitRouter
properties:
asn: 0
description: string
projectName: string
tags:
- key: string
value: string
transitRouterName: string
TransitRouter 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 TransitRouter resource accepts the following input properties:
- Asn int
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- Description string
- The description of the transit router.
- Project
Name string - The ProjectName of the transit router.
- List<Transit
Router Tag> - Tags.
- Transit
Router stringName - The name of the transit router.
- Asn int
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- Description string
- The description of the transit router.
- Project
Name string - The ProjectName of the transit router.
- []Transit
Router Tag Args - Tags.
- Transit
Router stringName - The name of the transit router.
- asn Integer
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- description String
- The description of the transit router.
- project
Name String - The ProjectName of the transit router.
- List<Transit
Router Tag> - Tags.
- transit
Router StringName - The name of the transit router.
- asn number
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- description string
- The description of the transit router.
- project
Name string - The ProjectName of the transit router.
- Transit
Router Tag[] - Tags.
- transit
Router stringName - The name of the transit router.
- asn int
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- description str
- The description of the transit router.
- project_
name str - The ProjectName of the transit router.
- Sequence[Transit
Router Tag Args] - Tags.
- transit_
router_ strname - The name of the transit router.
- asn Number
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- description String
- The description of the transit router.
- project
Name String - The ProjectName of the transit router.
- List<Property Map>
- Tags.
- transit
Router StringName - The name of the transit router.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitRouter resource produces the following output properties:
- Account
Id string - The ID of account.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Overdue
Time string - The overdue time.
- Status string
- The status of the transit router.
- Transit
Router List<TransitAttachments Router Transit Router Attachment> - The attachments of transit router.
- Transit
Router stringId - The ID of the transit router.
- Update
Time string - The update time.
- Account
Id string - The ID of account.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Overdue
Time string - The overdue time.
- Status string
- The status of the transit router.
- Transit
Router []TransitAttachments Router Transit Router Attachment - The attachments of transit router.
- Transit
Router stringId - The ID of the transit router.
- Update
Time string - The update time.
- account
Id String - The ID of account.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- id String
- The provider-assigned unique ID for this managed resource.
- overdue
Time String - The overdue time.
- status String
- The status of the transit router.
- transit
Router List<TransitAttachments Router Transit Router Attachment> - The attachments of transit router.
- transit
Router StringId - The ID of the transit router.
- update
Time String - The update time.
- account
Id string - The ID of account.
- business
Status string - The business status of the transit router.
- creation
Time string - The create time.
- id string
- The provider-assigned unique ID for this managed resource.
- overdue
Time string - The overdue time.
- status string
- The status of the transit router.
- transit
Router TransitAttachments Router Transit Router Attachment[] - The attachments of transit router.
- transit
Router stringId - The ID of the transit router.
- update
Time string - The update time.
- account_
id str - The ID of account.
- business_
status str - The business status of the transit router.
- creation_
time str - The create time.
- id str
- The provider-assigned unique ID for this managed resource.
- overdue_
time str - The overdue time.
- status str
- The status of the transit router.
- transit_
router_ Sequence[Transitattachments Router Transit Router Attachment] - The attachments of transit router.
- transit_
router_ strid - The ID of the transit router.
- update_
time str - The update time.
- account
Id String - The ID of account.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- id String
- The provider-assigned unique ID for this managed resource.
- overdue
Time String - The overdue time.
- status String
- The status of the transit router.
- transit
Router List<Property Map>Attachments - The attachments of transit router.
- transit
Router StringId - The ID of the transit router.
- update
Time String - The update time.
Look up Existing TransitRouter Resource
Get an existing TransitRouter 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?: TransitRouterState, opts?: CustomResourceOptions): TransitRouter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
asn: Optional[int] = None,
business_status: Optional[str] = None,
creation_time: Optional[str] = None,
description: Optional[str] = None,
overdue_time: Optional[str] = None,
project_name: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[TransitRouterTagArgs]] = None,
transit_router_attachments: Optional[Sequence[TransitRouterTransitRouterAttachmentArgs]] = None,
transit_router_id: Optional[str] = None,
transit_router_name: Optional[str] = None,
update_time: Optional[str] = None) -> TransitRouter
func GetTransitRouter(ctx *Context, name string, id IDInput, state *TransitRouterState, opts ...ResourceOption) (*TransitRouter, error)
public static TransitRouter Get(string name, Input<string> id, TransitRouterState? state, CustomResourceOptions? opts = null)
public static TransitRouter get(String name, Output<String> id, TransitRouterState 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.
- Account
Id string - The ID of account.
- Asn int
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Description string
- The description of the transit router.
- Overdue
Time string - The overdue time.
- Project
Name string - The ProjectName of the transit router.
- Status string
- The status of the transit router.
- List<Transit
Router Tag> - Tags.
- Transit
Router List<TransitAttachments Router Transit Router Attachment> - The attachments of transit router.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringName - The name of the transit router.
- Update
Time string - The update time.
- Account
Id string - The ID of account.
- Asn int
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- Business
Status string - The business status of the transit router.
- Creation
Time string - The create time.
- Description string
- The description of the transit router.
- Overdue
Time string - The overdue time.
- Project
Name string - The ProjectName of the transit router.
- Status string
- The status of the transit router.
- []Transit
Router Tag Args - Tags.
- Transit
Router []TransitAttachments Router Transit Router Attachment Args - The attachments of transit router.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringName - The name of the transit router.
- Update
Time string - The update time.
- account
Id String - The ID of account.
- asn Integer
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- description String
- The description of the transit router.
- overdue
Time String - The overdue time.
- project
Name String - The ProjectName of the transit router.
- status String
- The status of the transit router.
- List<Transit
Router Tag> - Tags.
- transit
Router List<TransitAttachments Router Transit Router Attachment> - The attachments of transit router.
- transit
Router StringId - The ID of the transit router.
- transit
Router StringName - The name of the transit router.
- update
Time String - The update time.
- account
Id string - The ID of account.
- asn number
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- business
Status string - The business status of the transit router.
- creation
Time string - The create time.
- description string
- The description of the transit router.
- overdue
Time string - The overdue time.
- project
Name string - The ProjectName of the transit router.
- status string
- The status of the transit router.
- Transit
Router Tag[] - Tags.
- transit
Router TransitAttachments Router Transit Router Attachment[] - The attachments of transit router.
- transit
Router stringId - The ID of the transit router.
- transit
Router stringName - The name of the transit router.
- update
Time string - The update time.
- account_
id str - The ID of account.
- asn int
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- business_
status str - The business status of the transit router.
- creation_
time str - The create time.
- description str
- The description of the transit router.
- overdue_
time str - The overdue time.
- project_
name str - The ProjectName of the transit router.
- status str
- The status of the transit router.
- Sequence[Transit
Router Tag Args] - Tags.
- transit_
router_ Sequence[Transitattachments Router Transit Router Attachment Args] - The attachments of transit router.
- transit_
router_ strid - The ID of the transit router.
- transit_
router_ strname - The name of the transit router.
- update_
time str - The update time.
- account
Id String - The ID of account.
- asn Number
- The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
- business
Status String - The business status of the transit router.
- creation
Time String - The create time.
- description String
- The description of the transit router.
- overdue
Time String - The overdue time.
- project
Name String - The ProjectName of the transit router.
- status String
- The status of the transit router.
- List<Property Map>
- Tags.
- transit
Router List<Property Map>Attachments - The attachments of transit router.
- transit
Router StringId - The ID of the transit router.
- transit
Router StringName - The name of the transit router.
- update
Time String - The update time.
Supporting Types
TransitRouterTag, TransitRouterTagArgs
TransitRouterTransitRouterAttachment, TransitRouterTransitRouterAttachmentArgs
- Creation
Time string - The create time.
- Resource
Id string - The id of resource.
- Resource
Type string - The type of resource.
- Status string
- The status of the transit router.
- Transit
Router stringAttachment Id - The id of transit router attachment.
- Transit
Router stringAttachment Name - The name of transit router attachment.
- Transit
Router stringRoute Table Id - The id of transit router route table.
- Update
Time string - The update time.
- Creation
Time string - The create time.
- Resource
Id string - The id of resource.
- Resource
Type string - The type of resource.
- Status string
- The status of the transit router.
- Transit
Router stringAttachment Id - The id of transit router attachment.
- Transit
Router stringAttachment Name - The name of transit router attachment.
- Transit
Router stringRoute Table Id - The id of transit router route table.
- Update
Time string - The update time.
- creation
Time String - The create time.
- resource
Id String - The id of resource.
- resource
Type String - The type of resource.
- status String
- The status of the transit router.
- transit
Router StringAttachment Id - The id of transit router attachment.
- transit
Router StringAttachment Name - The name of transit router attachment.
- transit
Router StringRoute Table Id - The id of transit router route table.
- update
Time String - The update time.
- creation
Time string - The create time.
- resource
Id string - The id of resource.
- resource
Type string - The type of resource.
- status string
- The status of the transit router.
- transit
Router stringAttachment Id - The id of transit router attachment.
- transit
Router stringAttachment Name - The name of transit router attachment.
- transit
Router stringRoute Table Id - The id of transit router route table.
- update
Time string - The update time.
- creation_
time str - The create time.
- resource_
id str - The id of resource.
- resource_
type str - The type of resource.
- status str
- The status of the transit router.
- transit_
router_ strattachment_ id - The id of transit router attachment.
- transit_
router_ strattachment_ name - The name of transit router attachment.
- transit_
router_ strroute_ table_ id - The id of transit router route table.
- update_
time str - The update time.
- creation
Time String - The create time.
- resource
Id String - The id of resource.
- resource
Type String - The type of resource.
- status String
- The status of the transit router.
- transit
Router StringAttachment Id - The id of transit router attachment.
- transit
Router StringAttachment Name - The name of transit router attachment.
- transit
Router StringRoute Table Id - The id of transit router route table.
- update
Time String - The update time.
Import
TransitRouter can be imported using the id, e.g.
$ pulumi import volcengine:transit_router/transitRouter:TransitRouter default tr-2d6fr7mzya2gw58ozfes5g2oh
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.