1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. expressconnect
  5. RouterExpressConnectRouter
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.expressconnect.RouterExpressConnectRouter

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Import

    Express Connect Router Express Connect Router can be imported using the id, e.g.

    $ pulumi import alicloud:expressconnect/routerExpressConnectRouter:RouterExpressConnectRouter example <id>
    

    Create RouterExpressConnectRouter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RouterExpressConnectRouter(name: string, args: RouterExpressConnectRouterArgs, opts?: CustomResourceOptions);
    @overload
    def RouterExpressConnectRouter(resource_name: str,
                                   args: RouterExpressConnectRouterArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def RouterExpressConnectRouter(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   alibaba_side_asn: Optional[int] = None,
                                   description: Optional[str] = None,
                                   ecr_name: Optional[str] = None,
                                   regions: Optional[Sequence[RouterExpressConnectRouterRegionArgs]] = None,
                                   resource_group_id: Optional[str] = None,
                                   tags: Optional[Mapping[str, Any]] = None)
    func NewRouterExpressConnectRouter(ctx *Context, name string, args RouterExpressConnectRouterArgs, opts ...ResourceOption) (*RouterExpressConnectRouter, error)
    public RouterExpressConnectRouter(string name, RouterExpressConnectRouterArgs args, CustomResourceOptions? opts = null)
    public RouterExpressConnectRouter(String name, RouterExpressConnectRouterArgs args)
    public RouterExpressConnectRouter(String name, RouterExpressConnectRouterArgs args, CustomResourceOptions options)
    
    type: alicloud:expressconnect:RouterExpressConnectRouter
    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 RouterExpressConnectRouterArgs
    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 RouterExpressConnectRouterArgs
    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 RouterExpressConnectRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RouterExpressConnectRouterArgs
    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 routerExpressConnectRouterResource = new AliCloud.ExpressConnect.RouterExpressConnectRouter("routerExpressConnectRouterResource", new()
    {
        AlibabaSideAsn = 0,
        Description = "string",
        EcrName = "string",
        Regions = new[]
        {
            new AliCloud.ExpressConnect.Inputs.RouterExpressConnectRouterRegionArgs
            {
                RegionId = "string",
                TransitMode = "string",
            },
        },
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "any" },
        },
    });
    
    example, err := expressconnect.NewRouterExpressConnectRouter(ctx, "routerExpressConnectRouterResource", &expressconnect.RouterExpressConnectRouterArgs{
    	AlibabaSideAsn: pulumi.Int(0),
    	Description:    pulumi.String("string"),
    	EcrName:        pulumi.String("string"),
    	Regions: expressconnect.RouterExpressConnectRouterRegionArray{
    		&expressconnect.RouterExpressConnectRouterRegionArgs{
    			RegionId:    pulumi.String("string"),
    			TransitMode: pulumi.String("string"),
    		},
    	},
    	ResourceGroupId: pulumi.String("string"),
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var routerExpressConnectRouterResource = new RouterExpressConnectRouter("routerExpressConnectRouterResource", RouterExpressConnectRouterArgs.builder()
        .alibabaSideAsn(0)
        .description("string")
        .ecrName("string")
        .regions(RouterExpressConnectRouterRegionArgs.builder()
            .regionId("string")
            .transitMode("string")
            .build())
        .resourceGroupId("string")
        .tags(Map.of("string", "any"))
        .build());
    
    router_express_connect_router_resource = alicloud.expressconnect.RouterExpressConnectRouter("routerExpressConnectRouterResource",
        alibaba_side_asn=0,
        description="string",
        ecr_name="string",
        regions=[alicloud.expressconnect.RouterExpressConnectRouterRegionArgs(
            region_id="string",
            transit_mode="string",
        )],
        resource_group_id="string",
        tags={
            "string": "any",
        })
    
    const routerExpressConnectRouterResource = new alicloud.expressconnect.RouterExpressConnectRouter("routerExpressConnectRouterResource", {
        alibabaSideAsn: 0,
        description: "string",
        ecrName: "string",
        regions: [{
            regionId: "string",
            transitMode: "string",
        }],
        resourceGroupId: "string",
        tags: {
            string: "any",
        },
    });
    
    type: alicloud:expressconnect:RouterExpressConnectRouter
    properties:
        alibabaSideAsn: 0
        description: string
        ecrName: string
        regions:
            - regionId: string
              transitMode: string
        resourceGroupId: string
        tags:
            string: any
    

    RouterExpressConnectRouter 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 RouterExpressConnectRouter resource accepts the following input properties:

    AlibabaSideAsn int
    ASN representing resources.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions List<Pulumi.AliCloud.ExpressConnect.Inputs.RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Tags Dictionary<string, object>
    The tag of the resource.
    AlibabaSideAsn int
    ASN representing resources.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions []RouterExpressConnectRouterRegionArgs
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Tags map[string]interface{}
    The tag of the resource.
    alibabaSideAsn Integer
    ASN representing resources.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags Map<String,Object>
    The tag of the resource.
    alibabaSideAsn number
    ASN representing resources.
    description string
    Represents the description of the leased line gateway.
    ecrName string
    Name of the Gateway representing the leased line.
    regions RouterExpressConnectRouterRegion[]
    List of regions representing leased line gateways. See regions below.
    resourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags {[key: string]: any}
    The tag of the resource.
    alibaba_side_asn int
    ASN representing resources.
    description str
    Represents the description of the leased line gateway.
    ecr_name str
    Name of the Gateway representing the leased line.
    regions Sequence[RouterExpressConnectRouterRegionArgs]
    List of regions representing leased line gateways. See regions below.
    resource_group_id str
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags Mapping[str, Any]
    The tag of the resource.
    alibabaSideAsn Number
    ASN representing resources.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<Property Map>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    tags Map<Any>
    The tag of the resource.

    Outputs

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

    CreateTime string
    Represents the creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    CreateTime string
    Represents the creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    createTime String
    Represents the creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    createTime string
    Represents the creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource.
    create_time str
    Represents the creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource.
    createTime String
    Represents the creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.

    Look up Existing RouterExpressConnectRouter Resource

    Get an existing RouterExpressConnectRouter 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?: RouterExpressConnectRouterState, opts?: CustomResourceOptions): RouterExpressConnectRouter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alibaba_side_asn: Optional[int] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            ecr_name: Optional[str] = None,
            regions: Optional[Sequence[RouterExpressConnectRouterRegionArgs]] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None) -> RouterExpressConnectRouter
    func GetRouterExpressConnectRouter(ctx *Context, name string, id IDInput, state *RouterExpressConnectRouterState, opts ...ResourceOption) (*RouterExpressConnectRouter, error)
    public static RouterExpressConnectRouter Get(string name, Input<string> id, RouterExpressConnectRouterState? state, CustomResourceOptions? opts = null)
    public static RouterExpressConnectRouter get(String name, Output<String> id, RouterExpressConnectRouterState 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:
    AlibabaSideAsn int
    ASN representing resources.
    CreateTime string
    Represents the creation time of the resource.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions List<Pulumi.AliCloud.ExpressConnect.Inputs.RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Status string
    The status of the resource.
    Tags Dictionary<string, object>
    The tag of the resource.
    AlibabaSideAsn int
    ASN representing resources.
    CreateTime string
    Represents the creation time of the resource.
    Description string
    Represents the description of the leased line gateway.
    EcrName string
    Name of the Gateway representing the leased line.
    Regions []RouterExpressConnectRouterRegionArgs
    List of regions representing leased line gateways. See regions below.
    ResourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    Status string
    The status of the resource.
    Tags map[string]interface{}
    The tag of the resource.
    alibabaSideAsn Integer
    ASN representing resources.
    createTime String
    Represents the creation time of the resource.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<RouterExpressConnectRouterRegion>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status String
    The status of the resource.
    tags Map<String,Object>
    The tag of the resource.
    alibabaSideAsn number
    ASN representing resources.
    createTime string
    Represents the creation time of the resource.
    description string
    Represents the description of the leased line gateway.
    ecrName string
    Name of the Gateway representing the leased line.
    regions RouterExpressConnectRouterRegion[]
    List of regions representing leased line gateways. See regions below.
    resourceGroupId string
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status string
    The status of the resource.
    tags {[key: string]: any}
    The tag of the resource.
    alibaba_side_asn int
    ASN representing resources.
    create_time str
    Represents the creation time of the resource.
    description str
    Represents the description of the leased line gateway.
    ecr_name str
    Name of the Gateway representing the leased line.
    regions Sequence[RouterExpressConnectRouterRegionArgs]
    List of regions representing leased line gateways. See regions below.
    resource_group_id str
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status str
    The status of the resource.
    tags Mapping[str, Any]
    The tag of the resource.
    alibabaSideAsn Number
    ASN representing resources.
    createTime String
    Represents the creation time of the resource.
    description String
    Represents the description of the leased line gateway.
    ecrName String
    Name of the Gateway representing the leased line.
    regions List<Property Map>
    List of regions representing leased line gateways. See regions below.
    resourceGroupId String
    The ID of the resource group to which the ECR instance belongs.

    • A string consisting of letters, numbers, hyphens (-), and underscores (_), and the string length can be 0 to 64 characters.
    status String
    The status of the resource.
    tags Map<Any>
    The tag of the resource.

    Supporting Types

    RouterExpressConnectRouterRegion, RouterExpressConnectRouterRegionArgs

    RegionId string
    Representative region ID.
    TransitMode string
    Represents the forwarding mode of the current region.
    RegionId string
    Representative region ID.
    TransitMode string
    Represents the forwarding mode of the current region.
    regionId String
    Representative region ID.
    transitMode String
    Represents the forwarding mode of the current region.
    regionId string
    Representative region ID.
    transitMode string
    Represents the forwarding mode of the current region.
    region_id str
    Representative region ID.
    transit_mode str
    Represents the forwarding mode of the current region.
    regionId String
    Representative region ID.
    transitMode String
    Represents the forwarding mode of the current region.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi