alicloud.expressconnect.RouterExpressConnectRouter
Explore with Pulumi AI
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:
- Alibaba
Side intAsn - ASN representing resources.
- Description string
- Represents the description of the leased line gateway.
- Ecr
Name string - Name of the Gateway representing the leased line.
- Regions
List<Pulumi.
Ali Cloud. Express Connect. Inputs. Router Express Connect Router Region> - List of regions representing leased line gateways. See
regions
below. - Resource
Group stringId - 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.
- Dictionary<string, object>
- The tag of the resource.
- Alibaba
Side intAsn - ASN representing resources.
- Description string
- Represents the description of the leased line gateway.
- Ecr
Name string - Name of the Gateway representing the leased line.
- Regions
[]Router
Express Connect Router Region Args - List of regions representing leased line gateways. See
regions
below. - Resource
Group stringId - 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.
- map[string]interface{}
- The tag of the resource.
- alibaba
Side IntegerAsn - ASN representing resources.
- description String
- Represents the description of the leased line gateway.
- ecr
Name String - Name of the Gateway representing the leased line.
- regions
List<Router
Express Connect Router Region> - List of regions representing leased line gateways. See
regions
below. - resource
Group StringId - 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.
- Map<String,Object>
- The tag of the resource.
- alibaba
Side numberAsn - ASN representing resources.
- description string
- Represents the description of the leased line gateway.
- ecr
Name string - Name of the Gateway representing the leased line.
- regions
Router
Express Connect Router Region[] - List of regions representing leased line gateways. See
regions
below. - resource
Group stringId - 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.
- {[key: string]: any}
- The tag of the resource.
- alibaba_
side_ intasn - 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[Router
Express Connect Router Region Args] - List of regions representing leased line gateways. See
regions
below. - resource_
group_ strid - 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.
- Mapping[str, Any]
- The tag of the resource.
- alibaba
Side NumberAsn - ASN representing resources.
- description String
- Represents the description of the leased line gateway.
- ecr
Name String - Name of the Gateway representing the leased line.
- regions List<Property Map>
- List of regions representing leased line gateways. See
regions
below. - resource
Group StringId - 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.
- 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:
- Create
Time 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 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 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 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.
- create
Time 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.
- Alibaba
Side intAsn - ASN representing resources.
- Create
Time string - Represents the creation time of the resource.
- Description string
- Represents the description of the leased line gateway.
- Ecr
Name string - Name of the Gateway representing the leased line.
- Regions
List<Pulumi.
Ali Cloud. Express Connect. Inputs. Router Express Connect Router Region> - List of regions representing leased line gateways. See
regions
below. - Resource
Group stringId - 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.
- Dictionary<string, object>
- The tag of the resource.
- Alibaba
Side intAsn - ASN representing resources.
- Create
Time string - Represents the creation time of the resource.
- Description string
- Represents the description of the leased line gateway.
- Ecr
Name string - Name of the Gateway representing the leased line.
- Regions
[]Router
Express Connect Router Region Args - List of regions representing leased line gateways. See
regions
below. - Resource
Group stringId - 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.
- map[string]interface{}
- The tag of the resource.
- alibaba
Side IntegerAsn - ASN representing resources.
- create
Time String - Represents the creation time of the resource.
- description String
- Represents the description of the leased line gateway.
- ecr
Name String - Name of the Gateway representing the leased line.
- regions
List<Router
Express Connect Router Region> - List of regions representing leased line gateways. See
regions
below. - resource
Group StringId - 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.
- Map<String,Object>
- The tag of the resource.
- alibaba
Side numberAsn - ASN representing resources.
- create
Time string - Represents the creation time of the resource.
- description string
- Represents the description of the leased line gateway.
- ecr
Name string - Name of the Gateway representing the leased line.
- regions
Router
Express Connect Router Region[] - List of regions representing leased line gateways. See
regions
below. - resource
Group stringId - 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.
- {[key: string]: any}
- The tag of the resource.
- alibaba_
side_ intasn - 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[Router
Express Connect Router Region Args] - List of regions representing leased line gateways. See
regions
below. - resource_
group_ strid - 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.
- Mapping[str, Any]
- The tag of the resource.
- alibaba
Side NumberAsn - ASN representing resources.
- create
Time String - Represents the creation time of the resource.
- description String
- Represents the description of the leased line gateway.
- ecr
Name String - Name of the Gateway representing the leased line.
- regions List<Property Map>
- List of regions representing leased line gateways. See
regions
below. - resource
Group StringId - 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.
- Map<Any>
- The tag of the resource.
Supporting Types
RouterExpressConnectRouterRegion, RouterExpressConnectRouterRegionArgs
- Region
Id string - Representative region ID.
- Transit
Mode string - Represents the forwarding mode of the current region.
- Region
Id string - Representative region ID.
- Transit
Mode string - Represents the forwarding mode of the current region.
- region
Id String - Representative region ID.
- transit
Mode String - Represents the forwarding mode of the current region.
- region
Id string - Representative region ID.
- transit
Mode 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.
- region
Id String - Representative region ID.
- transit
Mode 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.