This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.
cen¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.
- class
pulumi_alicloud.cen.AwaitableGetBandwidthLimitsResult(id=None, instance_ids=None, limits=None, output_file=None)¶
- class
pulumi_alicloud.cen.AwaitableGetBandwidthPackagesResult(id=None, ids=None, instance_id=None, name_regex=None, names=None, output_file=None, packages=None)¶
- class
pulumi_alicloud.cen.AwaitableGetFlowlogsResult(cen_id=None, description=None, flowlogs=None, id=None, ids=None, log_store_name=None, name_regex=None, names=None, output_file=None, project_name=None, status=None)¶
- class
pulumi_alicloud.cen.AwaitableGetInstancesResult(id=None, ids=None, instances=None, name_regex=None, names=None, output_file=None, tags=None)¶
- class
pulumi_alicloud.cen.AwaitableGetPrivateZonesResult(cen_id=None, host_region_id=None, id=None, ids=None, output_file=None, status=None, zones=None)¶
- class
pulumi_alicloud.cen.AwaitableGetRegionRouteEntriesResult(entries=None, id=None, instance_id=None, output_file=None, region_id=None)¶
- class
pulumi_alicloud.cen.AwaitableGetRouteEntriesResult(cidr_block=None, entries=None, id=None, instance_id=None, output_file=None, route_table_id=None)¶
- class
pulumi_alicloud.cen.AwaitableGetRouteMapsResult(cen_id=None, cen_region_id=None, description_regex=None, id=None, ids=None, maps=None, output_file=None, status=None, transmit_direction=None)¶
- class
pulumi_alicloud.cen.BandwidthLimit(resource_name, opts=None, bandwidth_limit=None, instance_id=None, region_ids=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CEN cross-regional interconnection bandwidth resource. To connect networks in different regions, you must set cross-region interconnection bandwidth after buying a bandwidth package. The total bandwidth set for all the interconnected regions of a bandwidth package cannot exceed the bandwidth of the bandwidth package. By default, 1 Kbps bandwidth is provided for connectivity test. To run normal business, you must buy a bandwidth package and set a proper interconnection bandwidth.
For example, a CEN instance is bound to a bandwidth package of 20 Mbps and the interconnection areas are Mainland China and North America. You can set the cross-region interconnection bandwidth between US West 1 and China East 1, China East 2, China South 1, and so on. However, the total bandwidth set for all the interconnected regions cannot exceed 20 Mbps.
For information about CEN and how to use it, see Cross-region interconnection bandwidth
import pulumi import pulumi_alicloud as alicloud import pulumi_pulumi as pulumi config = pulumi.Config() name = config.get("name") if name is None: name = "tf-testAccCenBandwidthLimitConfig" fra = pulumi.providers.Alicloud("fra", region="eu-central-1") sh = pulumi.providers.Alicloud("sh", region="cn-shanghai") vpc1 = alicloud.vpc.Network("vpc1", cidr_block="192.168.0.0/16") vpc2 = alicloud.vpc.Network("vpc2", cidr_block="172.16.0.0/12") cen = alicloud.cen.Instance("cen", description="tf-testAccCenBandwidthLimitConfigDescription") bwp = alicloud.cen.BandwidthPackage("bwp", bandwidth=5, geographic_region_ids=[ "Europe", "China", ]) bwp_attach = alicloud.cen.BandwidthPackageAttachment("bwpAttach", bandwidth_package_id=bwp.id, instance_id=cen.id) vpc_attach1 = alicloud.cen.InstanceAttachment("vpcAttach1", child_instance_id=vpc1.id, child_instance_region_id="eu-central-1", instance_id=cen.id) vpc_attach2 = alicloud.cen.InstanceAttachment("vpcAttach2", child_instance_id=vpc2.id, child_instance_region_id="cn-shanghai", instance_id=cen.id) foo = alicloud.cen.BandwidthLimit("foo", bandwidth_limit=4, instance_id=cen.id, region_ids=[ "eu-central-1", "cn-shanghai", ])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth_limit (pulumi.Input[float]) – The bandwidth configured for the interconnected regions communication.
instance_id (pulumi.Input[str]) – The ID of the CEN.
region_ids (pulumi.Input[list]) – List of the two regions to interconnect. Must be two different regions.
bandwidth_limit: pulumi.Output[float] = None¶The bandwidth configured for the interconnected regions communication.
instance_id: pulumi.Output[str] = None¶The ID of the CEN.
region_ids: pulumi.Output[list] = None¶List of the two regions to interconnect. Must be two different regions.
- static
get(resource_name, id, opts=None, bandwidth_limit=None, instance_id=None, region_ids=None)¶ Get an existing BandwidthLimit resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth_limit (pulumi.Input[float]) – The bandwidth configured for the interconnected regions communication.
instance_id (pulumi.Input[str]) – The ID of the CEN.
region_ids (pulumi.Input[list]) – List of the two regions to interconnect. Must be two different regions.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.BandwidthPackage(resource_name, opts=None, bandwidth=None, charge_type=None, description=None, geographic_region_ids=None, name=None, period=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CEN bandwidth package resource. The CEN bandwidth package is an abstracted object that includes an interconnection bandwidth and interconnection areas. To buy a bandwidth package, you must specify the areas to connect. An area consists of one or more Alibaba Cloud regions. The areas in CEN include Mainland China, Asia Pacific, North America, and Europe.
For information about CEN and how to use it, see Manage bandwidth packages.
import pulumi import pulumi_alicloud as alicloud foo = alicloud.cen.BandwidthPackage("foo", bandwidth=5, geographic_region_ids=[ "China", "Asia-Pacific", ])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth (pulumi.Input[float]) – The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
charge_type (pulumi.Input[str]) – The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
description (pulumi.Input[str]) – The description of the bandwidth package. Default to null.
geographic_region_ids (pulumi.Input[list]) – List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
name (pulumi.Input[str]) – The name of the bandwidth package. Defaults to null.
period (pulumi.Input[float]) – The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
bandwidth: pulumi.Output[float] = None¶The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
charge_type: pulumi.Output[str] = None¶The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
description: pulumi.Output[str] = None¶The description of the bandwidth package. Default to null.
expired_time: pulumi.Output[str] = None¶The time of the bandwidth package to expire.
geographic_region_ids: pulumi.Output[list] = None¶List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
name: pulumi.Output[str] = None¶The name of the bandwidth package. Defaults to null.
period: pulumi.Output[float] = None¶The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
status: pulumi.Output[str] = None¶The status of the bandwidth, including “InUse” and “Idle”.
- static
get(resource_name, id, opts=None, bandwidth=None, charge_type=None, description=None, expired_time=None, geographic_region_ids=None, name=None, period=None, status=None)¶ Get an existing BandwidthPackage resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth (pulumi.Input[float]) – The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
charge_type (pulumi.Input[str]) – The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
description (pulumi.Input[str]) – The description of the bandwidth package. Default to null.
expired_time (pulumi.Input[str]) – The time of the bandwidth package to expire.
geographic_region_ids (pulumi.Input[list]) – List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East | Australia.
name (pulumi.Input[str]) – The name of the bandwidth package. Defaults to null.
period (pulumi.Input[float]) – The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
status (pulumi.Input[str]) – The status of the bandwidth, including “InUse” and “Idle”.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.BandwidthPackageAttachment(resource_name, opts=None, bandwidth_package_id=None, instance_id=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CEN bandwidth package attachment resource. The resource can be used to bind a bandwidth package to a specified CEN instance.
import pulumi import pulumi_alicloud as alicloud # Create a new bandwidth package attachment and use it to attach a bandwidth package to a new CEN cen = alicloud.cen.Instance("cen", description="tf-testAccCenBandwidthPackageAttachmentDescription") bwp = alicloud.cen.BandwidthPackage("bwp", bandwidth=20, geographic_region_ids=[ "China", "Asia-Pacific", ]) foo = alicloud.cen.BandwidthPackageAttachment("foo", bandwidth_package_id=bwp.id, instance_id=cen.id)
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth_package_id (pulumi.Input[str]) – The ID of the bandwidth package.
instance_id (pulumi.Input[str]) – The ID of the CEN.
bandwidth_package_id: pulumi.Output[str] = None¶The ID of the bandwidth package.
instance_id: pulumi.Output[str] = None¶The ID of the CEN.
- static
get(resource_name, id, opts=None, bandwidth_package_id=None, instance_id=None)¶ Get an existing BandwidthPackageAttachment resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
bandwidth_package_id (pulumi.Input[str]) – The ID of the bandwidth package.
instance_id (pulumi.Input[str]) – The ID of the CEN.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.FlowLog(resource_name, opts=None, cen_id=None, description=None, flow_log_name=None, log_store_name=None, project_name=None, status=None, __props__=None, __name__=None, __opts__=None)¶ Create a FlowLog resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cen_id: The ID of the CEN Instance. :param pulumi.Input[str] description: The description of flowlog. :param pulumi.Input[str] flow_log_name: The name of flowlog. :param pulumi.Input[str] log_store_name: The name of the log store which is in the
project_nameSLS project. :param pulumi.Input[str] project_name: The name of the SLS project. :param pulumi.Input[str] status: The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.cen_id: pulumi.Output[str] = None¶The ID of the CEN Instance.
description: pulumi.Output[str] = None¶The description of flowlog.
flow_log_name: pulumi.Output[str] = None¶The name of flowlog.
log_store_name: pulumi.Output[str] = None¶The name of the log store which is in the
project_nameSLS project.
project_name: pulumi.Output[str] = None¶The name of the SLS project.
status: pulumi.Output[str] = None¶The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
- static
get(resource_name, id, opts=None, cen_id=None, description=None, flow_log_name=None, log_store_name=None, project_name=None, status=None)¶ Get an existing FlowLog resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
cen_id (pulumi.Input[str]) – The ID of the CEN Instance.
description (pulumi.Input[str]) – The description of flowlog.
flow_log_name (pulumi.Input[str]) – The name of flowlog.
log_store_name (pulumi.Input[str]) – The name of the log store which is in the
project_nameSLS project.project_name (pulumi.Input[str]) – The name of the SLS project.
status (pulumi.Input[str]) – The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.GetBandwidthLimitsResult(id=None, instance_ids=None, limits=None, output_file=None)¶ A collection of values returned by getBandwidthLimits.
id= None¶The provider-assigned unique ID for this managed resource.
limits= None¶A list of CEN Bandwidth Limits. Each element contains the following attributes:
- class
pulumi_alicloud.cen.GetBandwidthPackagesResult(id=None, ids=None, instance_id=None, name_regex=None, names=None, output_file=None, packages=None)¶ A collection of values returned by getBandwidthPackages.
id= None¶The provider-assigned unique ID for this managed resource.
instance_id= None¶ID of CEN instance that owns the CEN Bandwidth Package.
packages= None¶A list of CEN bandwidth package. Each element contains the following attributes:
- class
pulumi_alicloud.cen.GetFlowlogsResult(cen_id=None, description=None, flowlogs=None, id=None, ids=None, log_store_name=None, name_regex=None, names=None, output_file=None, project_name=None, status=None)¶ A collection of values returned by getFlowlogs.
cen_id= None¶The ID of the CEN Instance.
description= None¶The description of flowlog.
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of CEN flow log IDs.
log_store_name= None¶The name of the log store which is in the
project_nameSLS project.
names= None¶A list of CEN flow log names.
project_name= None¶The name of the SLS project.
status= None¶The status of flowlog.
- class
pulumi_alicloud.cen.GetInstancesResult(id=None, ids=None, instances=None, name_regex=None, names=None, output_file=None, tags=None)¶ A collection of values returned by getInstances.
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of CEN instances IDs.
instances= None¶A list of CEN instances. Each element contains the following attributes:
names= None¶A list of CEN instances names.
A map of tags assigned to the Cen Instance.
- class
pulumi_alicloud.cen.GetPrivateZonesResult(cen_id=None, host_region_id=None, id=None, ids=None, output_file=None, status=None, zones=None)¶ A collection of values returned by getPrivateZones.
cen_id= None¶The ID of the CEN instance.
host_region_id= None¶The service region. The service region is the target region of the PrivateZone service accessed through CEN.
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of CEN private zone IDs.
status= None¶The status of the PrivateZone service.
zones= None¶A list of CEN private zones. Each element contains the following attributes:
- class
pulumi_alicloud.cen.GetRegionRouteEntriesResult(entries=None, id=None, instance_id=None, output_file=None, region_id=None)¶ A collection of values returned by getRegionRouteEntries.
entries= None¶A list of CEN Route Entries. Each element contains the following attributes:
id= None¶The provider-assigned unique ID for this managed resource.
- class
pulumi_alicloud.cen.GetRouteEntriesResult(cidr_block=None, entries=None, id=None, instance_id=None, output_file=None, route_table_id=None)¶ A collection of values returned by getRouteEntries.
cidr_block= None¶The destination CIDR block of the conflicted route entry.
entries= None¶A list of CEN Route Entries. Each element contains the following attributes:
id= None¶The provider-assigned unique ID for this managed resource.
instance_id= None¶ID of the CEN child instance.
route_table_id= None¶ID of the route table.
- class
pulumi_alicloud.cen.GetRouteMapsResult(cen_id=None, cen_region_id=None, description_regex=None, id=None, ids=None, maps=None, output_file=None, status=None, transmit_direction=None)¶ A collection of values returned by getRouteMaps.
cen_id= None¶The ID of the CEN instance.
cen_region_id= None¶The ID of the region to which the CEN instance belongs.
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of CEN route map IDs.
maps= None¶A list of CEN instances. Each element contains the following attributes:
status= None¶The status of the route map.
transmit_direction= None¶The direction in which the route map is applied.
- class
pulumi_alicloud.cen.Instance(resource_name, opts=None, description=None, name=None, protection_level=None, tags=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CEN instance resource. Cloud Enterprise Network (CEN) is a service that allows you to create a global network for rapidly building a distributed business system with a hybrid cloud computing solution. CEN enables you to build a secure, private, and enterprise-class interconnected network between VPCs in different regions and your local data centers. CEN provides enterprise-class scalability that automatically responds to your dynamic computing requirements.
For information about CEN and how to use it, see What is Cloud Enterprise Network.
import pulumi import pulumi_alicloud as alicloud cen = alicloud.cen.Instance("cen", description="an example for cen")
- Parameters
resource*name (str) –
The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
description (pulumi.Input[str]) – The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
name (pulumi.Input[str]) – The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (*), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
protection_level (pulumi.Input[str]) – (Available in 1.76.0+) Indicates the allowed level of CIDR block overlapping.
tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
description: pulumi.Output[str] = None¶The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
name: pulumi.Output[str] = None¶The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
protection_level: pulumi.Output[str] = None¶(Available in 1.76.0+) Indicates the allowed level of CIDR block overlapping.
status: pulumi.Output[str] = None¶The Cen Instance current status.
A mapping of tags to assign to the resource.
- static
get(resource_name, id, opts=None, description=None, name=None, protection_level=None, status=None, tags=None)¶ Get an existing Instance resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource*name (str) –
The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
description (pulumi.Input[str]) – The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
name (pulumi.Input[str]) – The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (*), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
protection_level (pulumi.Input[str]) – (Available in 1.76.0+) Indicates the allowed level of CIDR block overlapping.
status (pulumi.Input[str]) – The Cen Instance current status.
tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.InstanceAttachment(resource_name, opts=None, child_instance_id=None, child_instance_owner_id=None, child_instance_region_id=None, instance_id=None, __props__=None, __name__=None, __opts__=None)¶ Create a InstanceAttachment resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] child_instance_id: The ID of the child instance to attach. :param pulumi.Input[str] child_instance_owner_id: The uid of the child instance. Only used when attach a child instance of other account. :param pulumi.Input[str] child_instance_region_id: The region ID of the child instance to attach. :param pulumi.Input[str] instance_id: The ID of the CEN.
child_instance_id: pulumi.Output[str] = None¶The ID of the child instance to attach.
child_instance_owner_id: pulumi.Output[str] = None¶The uid of the child instance. Only used when attach a child instance of other account.
child_instance_region_id: pulumi.Output[str] = None¶The region ID of the child instance to attach.
instance_id: pulumi.Output[str] = None¶The ID of the CEN.
- static
get(resource_name, id, opts=None, child_instance_id=None, child_instance_owner_id=None, child_instance_region_id=None, instance_id=None)¶ Get an existing InstanceAttachment resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
child_instance_id (pulumi.Input[str]) – The ID of the child instance to attach.
child_instance_owner_id (pulumi.Input[str]) – The uid of the child instance. Only used when attach a child instance of other account.
child_instance_region_id (pulumi.Input[str]) – The region ID of the child instance to attach.
instance_id (pulumi.Input[str]) – The ID of the CEN.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.InstanceGrant(resource_name, opts=None, cen_id=None, cen_owner_id=None, child_instance_id=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CEN child instance grant resource, which allow you to authorize a VPC or VBR to a CEN of a different account.
For more information about how to use it, see Attach a network in a different account.
import pulumi import pulumi_alicloud as alicloud import pulumi_pulumi as pulumi # Create a new instance-grant and use it to grant one child instance of account1 to a new CEN of account 2. account1 = pulumi.providers.Alicloud("account1", access_key="access123", secret_key="secret123") account2 = pulumi.providers.Alicloud("account2", access_key="access456", secret_key="secret456") config = pulumi.Config() name = config.get("name") if name is None: name = "tf-testAccCenInstanceGrantBasic" cen = alicloud.cen.Instance("cen") vpc = alicloud.vpc.Network("vpc", cidr_block="192.168.0.0/16") foo_instance_grant = alicloud.cen.InstanceGrant("fooInstanceGrant", cen_id=cen.id, cen_owner_id="uid2", child_instance_id=vpc.id) foo_instance_attachment = alicloud.cen.InstanceAttachment("fooInstanceAttachment", child_instance_id=vpc.id, child_instance_owner_id="uid1", child_instance_region_id="cn-qingdao", instance_id=cen.id)
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
cen_id (pulumi.Input[str]) – The ID of the CEN.
cen_owner_id (pulumi.Input[str]) – The owner UID of the CEN which the child instance granted to.
child_instance_id (pulumi.Input[str]) – The ID of the child instance to grant.
cen_id: pulumi.Output[str] = None¶The ID of the CEN.
cen_owner_id: pulumi.Output[str] = None¶The owner UID of the CEN which the child instance granted to.
child_instance_id: pulumi.Output[str] = None¶The ID of the child instance to grant.
- static
get(resource_name, id, opts=None, cen_id=None, cen_owner_id=None, child_instance_id=None)¶ Get an existing InstanceGrant resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
cen_id (pulumi.Input[str]) – The ID of the CEN.
cen_owner_id (pulumi.Input[str]) – The owner UID of the CEN which the child instance granted to.
child_instance_id (pulumi.Input[str]) – The ID of the child instance to grant.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.PrivateZone(resource_name, opts=None, access_region_id=None, cen_id=None, host_region_id=None, host_vpc_id=None, __props__=None, __name__=None, __opts__=None)¶ This topic describes how to configure PrivateZone access. PrivateZone is a VPC-based resolution and management service for private domain names. After you set a PrivateZone access, the Cloud Connect Network (CCN) and Virtual Border Router (VBR) attached to a CEN instance can access the PrivateZone service through CEN.
For information about CEN Private Zone and how to use it, see Manage CEN Private Zone.
NOTE: Available in 1.83.0+
import pulumi import pulumi_alicloud as alicloud default_instance = alicloud.cen.Instance("defaultInstance") default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/12") default_instance_attachment = alicloud.cen.InstanceAttachment("defaultInstanceAttachment", child_instance_id=default_network.id, child_instance_region_id="cn-hangzhou", instance_id=default_instance.id) default_private_zone = alicloud.cen.PrivateZone("defaultPrivateZone", access_region_id="cn-hangzhou", cen_id=default_instance.id, host_region_id="cn-hangzhou", host_vpc_id=default_network.id)
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
access_region_id (pulumi.Input[str]) – The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
cen_id (pulumi.Input[str]) – The ID of the CEN instance.
host_region_id (pulumi.Input[str]) – The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
host_vpc_id (pulumi.Input[str]) – The VPC that belongs to the service region.
access_region_id: pulumi.Output[str] = None¶The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
cen_id: pulumi.Output[str] = None¶The ID of the CEN instance.
host_region_id: pulumi.Output[str] = None¶The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
host_vpc_id: pulumi.Output[str] = None¶The VPC that belongs to the service region.
status: pulumi.Output[str] = None¶The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
- static
get(resource_name, id, opts=None, access_region_id=None, cen_id=None, host_region_id=None, host_vpc_id=None, status=None)¶ Get an existing PrivateZone resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
access_region_id (pulumi.Input[str]) – The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
cen_id (pulumi.Input[str]) – The ID of the CEN instance.
host_region_id (pulumi.Input[str]) – The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
host_vpc_id (pulumi.Input[str]) – The VPC that belongs to the service region.
status (pulumi.Input[str]) – The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.RouteEntry(resource_name, opts=None, cidr_block=None, instance_id=None, route_table_id=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CEN route entry resource. Cloud Enterprise Network (CEN) supports publishing and withdrawing route entries of attached networks. You can publish a route entry of an attached VPC or VBR to a CEN instance, then other attached networks can learn the route if there is no route conflict. You can withdraw a published route entry when CEN does not need it any more.
For information about CEN route entries publishment and how to use it, see Manage network routes.
import pulumi import pulumi_alicloud as alicloud import pulumi_pulumi as pulumi hz = pulumi.providers.Alicloud("hz", region="cn-hangzhou") config = pulumi.Config() name = config.get("name") if name is None: name = "tf-testAccCenRouteEntryConfig" default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency", available_resource_creation="VSwitch") default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0]["id"], cpu_core_count=1, memory_size=2) default_images = alicloud.ecs.get_images(most_recent=True, name_regex="^ubuntu_18.*64", owners="system") vpc = alicloud.vpc.Network("vpc", cidr_block="172.16.0.0/12") default_switch = alicloud.vpc.Switch("defaultSwitch", availability_zone=default_zones.zones[0]["id"], cidr_block="172.16.0.0/21", vpc_id=vpc.id) default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", description="foo", vpc_id=vpc.id) default_instance = alicloud.ecs.Instance("defaultInstance", image_id=default_images.images[0]["id"], instance_name=name, instance_type=default_instance_types.instance_types[0]["id"], internet_charge_type="PayByTraffic", internet_max_bandwidth_out=5, security_groups=[default_security_group.id], system_disk_category="cloud_efficiency", vswitch_id=default_switch.id) cen = alicloud.cen.Instance("cen") attach = alicloud.cen.InstanceAttachment("attach", child_instance_id=vpc.id, child_instance_region_id="cn-hangzhou", instance_id=cen.id) route = alicloud.vpc.RouteEntry("route", destination_cidrblock="11.0.0.0/16", nexthop_id=default_instance.id, nexthop_type="Instance", route_table_id=vpc.route_table_id) foo = alicloud.cen.RouteEntry("foo", cidr_block=route.destination_cidrblock, instance_id=cen.id, route_table_id=vpc.route_table_id)
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
cidr_block (pulumi.Input[str]) – The destination CIDR block of the route entry to publish.
instance_id (pulumi.Input[str]) – The ID of the CEN.
route_table_id (pulumi.Input[str]) – The route table of the attached VBR or VPC.
cidr_block: pulumi.Output[str] = None¶The destination CIDR block of the route entry to publish.
instance_id: pulumi.Output[str] = None¶The ID of the CEN.
route_table_id: pulumi.Output[str] = None¶The route table of the attached VBR or VPC.
- static
get(resource_name, id, opts=None, cidr_block=None, instance_id=None, route_table_id=None)¶ Get an existing RouteEntry resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
cidr_block (pulumi.Input[str]) – The destination CIDR block of the route entry to publish.
instance_id (pulumi.Input[str]) – The ID of the CEN.
route_table_id (pulumi.Input[str]) – The route table of the attached VBR or VPC.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.RouteMap(resource_name, opts=None, as_path_match_mode=None, cen_id=None, cen_region_id=None, cidr_match_mode=None, community_match_mode=None, community_operate_mode=None, description=None, destination_child_instance_types=None, destination_cidr_blocks=None, destination_instance_ids=None, destination_instance_ids_reverse_match=None, destination_route_table_ids=None, map_result=None, match_asns=None, match_community_sets=None, next_priority=None, operate_community_sets=None, preference=None, prepend_as_paths=None, priority=None, route_types=None, source_child_instance_types=None, source_instance_ids=None, source_instance_ids_reverse_match=None, source_region_ids=None, source_route_table_ids=None, transmit_direction=None, __props__=None, __name__=None, __opts__=None)¶ This topic provides an overview of the route map function of Cloud Enterprise Networks (CENs). You can use the route map function to filter routes and modify route attributes. By doing so, you can manage the communication between networks attached to a CEN.
For information about CEN Route Map and how to use it, see Manage CEN Route Map.
NOTE: Available in 1.82.0+
import pulumi import pulumi_alicloud as alicloud import pulumi_pulumi as pulumi default_instance = alicloud.cen.Instance("defaultInstance") vpc00_region = pulumi.providers.Alicloud("vpc00Region", region="cn-hangzhou") vpc01_region = pulumi.providers.Alicloud("vpc01Region", region="cn-shanghai") vpc00 = alicloud.vpc.Network("vpc00", cidr_block="172.16.0.0/12") vpc01 = alicloud.vpc.Network("vpc01", cidr_block="172.16.0.0/12") default00 = alicloud.cen.InstanceAttachment("default00", child_instance_id=vpc00.id, child_instance_region_id="cn-hangzhou", instance_id=default_instance.id) default01 = alicloud.cen.InstanceAttachment("default01", child_instance_id=vpc01.id, child_instance_region_id="cn-shanghai", instance_id=default_instance.id) default_route_map = alicloud.cen.RouteMap("defaultRouteMap", as_path_match_mode="Include", cen_id=alicloud_cen_instance["cen"]["id"], cen_region_id="cn-hangzhou", cidr_match_mode="Include", community_match_mode="Include", community_operate_mode="Additive", description="test-desc", destination_child_instance_types=["VPC"], destination_cidr_blocks=[vpc01.cidr_block], destination_instance_ids=[vpc01.id], destination_instance_ids_reverse_match="false", destination_route_table_ids=[vpc01.route_table_id], map_result="Permit", match_asns=["65501"], match_community_sets=["65501:1"], next_priority="1", operate_community_sets=["65501:1"], preference="20", prepend_as_paths=["65501"], priority="1", route_types=["System"], source_child_instance_types=["VPC"], source_instance_ids=[vpc00.id], source_instance_ids_reverse_match="false", source_region_ids=["cn-hangzhou"], source_route_table_ids=[vpc00.route_table_id], transmit_direction="RegionIn")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
as_path_match_mode (pulumi.Input[str]) – A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: [“Include”, “Complete”].
cen_id (pulumi.Input[str]) – The ID of the CEN instance.
cen_region_id (pulumi.Input[str]) – The ID of the region to which the CEN instance belongs.
cidr_match_mode (pulumi.Input[str]) – A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: [“Include”, “Complete”].
community_match_mode (pulumi.Input[str]) – A match statement. It indicates the mode in which the community attribute is matched. Valid values: [“Include”, “Complete”].
community_operate_mode (pulumi.Input[str]) – An action statement. It indicates the mode in which the community attribute is operated. Valid values: [“Additive”, “Replace”].
description (pulumi.Input[str]) – The description of the route map.
destination_child_instance_types (pulumi.Input[list]) – A match statement that indicates the list of destination instance types. Valid values: [“VPC”, “VBR”, “CCN”].
destination_cidr_blocks (pulumi.Input[list]) – A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
destination_instance_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the destination instances.
destination_instance_ids_reverse_match (pulumi.Input[bool]) – Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
destination_route_table_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
map_result (pulumi.Input[str]) – The action that is performed to a route if the route matches all the match conditions. Valid values: [“Permit”, “Deny”].
match_asns (pulumi.Input[list]) – A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
match_community_sets (pulumi.Input[list]) – A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
next_priority (pulumi.Input[float]) – The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
operate_community_sets (pulumi.Input[list]) – An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
preference (pulumi.Input[float]) – An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
prepend_as_paths (pulumi.Input[list]) – An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
priority (pulumi.Input[float]) – The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
route_types (pulumi.Input[list]) – A match statement that indicates the list of route types. Valid values: [“System”, “Custom”, “BGP”].
source_child_instance_types (pulumi.Input[list]) – A match statement that indicates the list of source instance types. Valid values: [“VPC”, “VBR”, “CCN”].
source_instance_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the source instances.
source_instance_ids_reverse_match (pulumi.Input[bool]) – Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
source_region_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
source_route_table_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
transmit_direction (pulumi.Input[str]) – The direction in which the route map is applied. Valid values: [“RegionIn”, “RegionOut”].
as_path_match_mode: pulumi.Output[str] = None¶A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: [“Include”, “Complete”].
cen_id: pulumi.Output[str] = None¶The ID of the CEN instance.
cen_region_id: pulumi.Output[str] = None¶The ID of the region to which the CEN instance belongs.
cidr_match_mode: pulumi.Output[str] = None¶A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: [“Include”, “Complete”].
community_match_mode: pulumi.Output[str] = None¶A match statement. It indicates the mode in which the community attribute is matched. Valid values: [“Include”, “Complete”].
community_operate_mode: pulumi.Output[str] = None¶An action statement. It indicates the mode in which the community attribute is operated. Valid values: [“Additive”, “Replace”].
description: pulumi.Output[str] = None¶The description of the route map.
destination_child_instance_types: pulumi.Output[list] = None¶A match statement that indicates the list of destination instance types. Valid values: [“VPC”, “VBR”, “CCN”].
destination_cidr_blocks: pulumi.Output[list] = None¶A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
destination_instance_ids: pulumi.Output[list] = None¶A match statement that indicates the list of IDs of the destination instances.
destination_instance_ids_reverse_match: pulumi.Output[bool] = None¶Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
destination_route_table_ids: pulumi.Output[list] = None¶A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
map_result: pulumi.Output[str] = None¶The action that is performed to a route if the route matches all the match conditions. Valid values: [“Permit”, “Deny”].
match_asns: pulumi.Output[list] = None¶A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
match_community_sets: pulumi.Output[list] = None¶A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
next_priority: pulumi.Output[float] = None¶The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
operate_community_sets: pulumi.Output[list] = None¶An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
preference: pulumi.Output[float] = None¶An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
prepend_as_paths: pulumi.Output[list] = None¶An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
priority: pulumi.Output[float] = None¶The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
route_types: pulumi.Output[list] = None¶A match statement that indicates the list of route types. Valid values: [“System”, “Custom”, “BGP”].
source_child_instance_types: pulumi.Output[list] = None¶A match statement that indicates the list of source instance types. Valid values: [“VPC”, “VBR”, “CCN”].
source_instance_ids: pulumi.Output[list] = None¶A match statement that indicates the list of IDs of the source instances.
source_instance_ids_reverse_match: pulumi.Output[bool] = None¶Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
source_region_ids: pulumi.Output[list] = None¶A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
source_route_table_ids: pulumi.Output[list] = None¶A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
status: pulumi.Output[str] = None¶(Computed) The status of route map. Valid values: [“Creating”, “Active”, “Deleting”].
transmit_direction: pulumi.Output[str] = None¶The direction in which the route map is applied. Valid values: [“RegionIn”, “RegionOut”].
- static
get(resource_name, id, opts=None, as_path_match_mode=None, cen_id=None, cen_region_id=None, cidr_match_mode=None, community_match_mode=None, community_operate_mode=None, description=None, destination_child_instance_types=None, destination_cidr_blocks=None, destination_instance_ids=None, destination_instance_ids_reverse_match=None, destination_route_table_ids=None, map_result=None, match_asns=None, match_community_sets=None, next_priority=None, operate_community_sets=None, preference=None, prepend_as_paths=None, priority=None, route_map_id=None, route_types=None, source_child_instance_types=None, source_instance_ids=None, source_instance_ids_reverse_match=None, source_region_ids=None, source_route_table_ids=None, status=None, transmit_direction=None)¶ Get an existing RouteMap resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
as_path_match_mode (pulumi.Input[str]) – A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: [“Include”, “Complete”].
cen_id (pulumi.Input[str]) – The ID of the CEN instance.
cen_region_id (pulumi.Input[str]) – The ID of the region to which the CEN instance belongs.
cidr_match_mode (pulumi.Input[str]) – A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: [“Include”, “Complete”].
community_match_mode (pulumi.Input[str]) – A match statement. It indicates the mode in which the community attribute is matched. Valid values: [“Include”, “Complete”].
community_operate_mode (pulumi.Input[str]) – An action statement. It indicates the mode in which the community attribute is operated. Valid values: [“Additive”, “Replace”].
description (pulumi.Input[str]) – The description of the route map.
destination_child_instance_types (pulumi.Input[list]) – A match statement that indicates the list of destination instance types. Valid values: [“VPC”, “VBR”, “CCN”].
destination_cidr_blocks (pulumi.Input[list]) – A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
destination_instance_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the destination instances.
destination_instance_ids_reverse_match (pulumi.Input[bool]) – Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
destination_route_table_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
map_result (pulumi.Input[str]) – The action that is performed to a route if the route matches all the match conditions. Valid values: [“Permit”, “Deny”].
match_asns (pulumi.Input[list]) – A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
match_community_sets (pulumi.Input[list]) – A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
next_priority (pulumi.Input[float]) – The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
operate_community_sets (pulumi.Input[list]) – An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
preference (pulumi.Input[float]) – An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
prepend_as_paths (pulumi.Input[list]) – An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
priority (pulumi.Input[float]) – The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
route_types (pulumi.Input[list]) – A match statement that indicates the list of route types. Valid values: [“System”, “Custom”, “BGP”].
source_child_instance_types (pulumi.Input[list]) – A match statement that indicates the list of source instance types. Valid values: [“VPC”, “VBR”, “CCN”].
source_instance_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the source instances.
source_instance_ids_reverse_match (pulumi.Input[bool]) – Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
source_region_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
source_route_table_ids (pulumi.Input[list]) – A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
status (pulumi.Input[str]) – (Computed) The status of route map. Valid values: [“Creating”, “Active”, “Deleting”].
transmit_direction (pulumi.Input[str]) – The direction in which the route map is applied. Valid values: [“RegionIn”, “RegionOut”].
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cen.VbrHealthCheck(resource_name, opts=None, cen_id=None, health_check_interval=None, health_check_source_ip=None, health_check_target_ip=None, healthy_threshold=None, vbr_instance_id=None, vbr_instance_owner_id=None, vbr_instance_region_id=None, __props__=None, __name__=None, __opts__=None)¶ This topic describes how to configure the health check feature for a Cloud Enterprise Network (CEN) instance. After you attach a Virtual Border Router (VBR) to the CEN instance and configure the health check feature, you can monitor the network conditions of the on-premises data center connected to the VBR.
For information about CEN VBR HealthCheck and how to use it, see Manage CEN VBR HealthCheck.
NOTE: Available in 1.88.0+
import pulumi import pulumi_alicloud as alicloud default_instance = alicloud.cen.Instance("defaultInstance") default_instance_attachment = alicloud.cen.InstanceAttachment("defaultInstanceAttachment", child_instance_id="vbr-xxxxx", child_instance_region_id="cn-hangzhou", instance_id=default_instance.id) default_vbr_health_check = alicloud.cen.VbrHealthCheck("defaultVbrHealthCheck", cen_id=default_instance.id, health_check_interval=2, health_check_source_ip="192.168.1.2", health_check_target_ip="10.0.0.2", healthy_threshold=8, vbr_instance_id="vbr-xxxxx", vbr_instance_region_id="cn-hangzhou")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
cen_id (pulumi.Input[str]) – The ID of the CEN instance.
health_check_interval (pulumi.Input[float]) – Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
health_check_source_ip (pulumi.Input[str]) – The source IP address of health checks.
health_check_target_ip (pulumi.Input[str]) – The destination IP address of health checks.
healthy_threshold (pulumi.Input[float]) – Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
vbr_instance_id (pulumi.Input[str]) – The ID of the VBR.
vbr_instance_owner_id (pulumi.Input[float]) – The ID of the account to which the VBR belongs.
vbr_instance_region_id (pulumi.Input[str]) – The ID of the region to which the VBR belongs.
cen_id: pulumi.Output[str] = None¶The ID of the CEN instance.
health_check_interval: pulumi.Output[float] = None¶Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
health_check_source_ip: pulumi.Output[str] = None¶The source IP address of health checks.
health_check_target_ip: pulumi.Output[str] = None¶The destination IP address of health checks.
healthy_threshold: pulumi.Output[float] = None¶Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
vbr_instance_id: pulumi.Output[str] = None¶The ID of the VBR.
vbr_instance_owner_id: pulumi.Output[float] = None¶The ID of the account to which the VBR belongs.
vbr_instance_region_id: pulumi.Output[str] = None¶The ID of the region to which the VBR belongs.
- static
get(resource_name, id, opts=None, cen_id=None, health_check_interval=None, health_check_source_ip=None, health_check_target_ip=None, healthy_threshold=None, vbr_instance_id=None, vbr_instance_owner_id=None, vbr_instance_region_id=None)¶ Get an existing VbrHealthCheck resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
cen_id (pulumi.Input[str]) – The ID of the CEN instance.
health_check_interval (pulumi.Input[float]) – Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
health_check_source_ip (pulumi.Input[str]) – The source IP address of health checks.
health_check_target_ip (pulumi.Input[str]) – The destination IP address of health checks.
healthy_threshold (pulumi.Input[float]) – Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
vbr_instance_id (pulumi.Input[str]) – The ID of the VBR.
vbr_instance_owner_id (pulumi.Input[float]) – The ID of the account to which the VBR belongs.
vbr_instance_region_id (pulumi.Input[str]) – The ID of the region to which the VBR belongs.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
pulumi_alicloud.cen.get_bandwidth_limits(instance_ids=None, output_file=None, opts=None)¶This data source provides CEN Bandwidth Limits available to the user.
import pulumi import pulumi_alicloud as alicloud bwl = alicloud.cen.get_bandwidth_limits(instance_ids=["cen-id1"]) pulumi.export("firstCenBandwidthLimitsLocalRegionId", bwl.limits[0]["localRegionId"])
- Parameters
instance_ids (list) – A list of CEN instances IDs.
pulumi_alicloud.cen.get_bandwidth_packages(ids=None, instance_id=None, name_regex=None, output_file=None, opts=None)¶This data source provides CEN Bandwidth Packages available to the user.
import pulumi import pulumi_alicloud as alicloud bwp = alicloud.cen.get_bandwidth_packages(instance_id="cen-id1", name_regex="^foo") pulumi.export("firstCenBandwidthPackageId", bwp.packages[0]["id"])
- Parameters
ids (list) – Limit search to a list of specific CEN Bandwidth Package IDs.
instance_id (str) – ID of a CEN instance.
name_regex (str) – A regex string to filter CEN Bandwidth Package by name.
pulumi_alicloud.cen.get_flowlogs(cen_id=None, description=None, ids=None, log_store_name=None, name_regex=None, output_file=None, project_name=None, status=None, opts=None)¶This data source provides CEN flow logs available to the user.
NOTE: Available in 1.78.0+
import pulumi import pulumi_alicloud as alicloud default = alicloud.cen.get_flowlogs(ids=["flowlog-tig1xxxxx"], name_regex="^foo") pulumi.export("firstCenFlowlogId", data["cen.getInstances"]["default"]["flowlogs"][0]["id"])
- Parameters
cen_id (str) – The ID of the CEN Instance.
description (str) – The description of flowlog.
ids (list) – A list of CEN flow log IDs.
log_store_name (str) – The name of the log store which is in the
project_nameSLS project.name_regex (str) – A regex string to filter CEN flow logs by name.
project_name (str) – The name of the SLS project.
status (str) – The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
pulumi_alicloud.cen.get_instances(ids=None, name_regex=None, output_file=None, tags=None, opts=None)¶This data source provides CEN instances available to the user.
import pulumi import pulumi_alicloud as alicloud cen_instances_ds = alicloud.cen.get_instances(ids=["cen-id1"], name_regex="^foo") pulumi.export("firstCenInstanceId", cen_instances_ds.instances[0]["id"])
- Parameters
ids (list) – A list of CEN instances IDs.
name_regex (str) – A regex string to filter CEN instances by name.
tags (dict) – A mapping of tags to assign to the resource.
pulumi_alicloud.cen.get_private_zones(cen_id=None, host_region_id=None, ids=None, output_file=None, status=None, opts=None)¶This data source provides CEN Private Zones available to the user.
NOTE: Available in v1.88.0+.
- Parameters
cen_id (str) – The ID of the CEN instance.
host_region_id (str) – The service region. The service region is the target region of the PrivateZone service accessed through CEN.
ids (list) – A list of CEN private zone IDs.
* `host_region_id ` - (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- Parameters
status (str) – The status of the PrivateZone service, including
Creating,ActiveandDeleting.
pulumi_alicloud.cen.get_region_route_entries(instance_id=None, output_file=None, region_id=None, opts=None)¶This data source provides CEN Regional Route Entries available to the user.
import pulumi import pulumi_alicloud as alicloud entry = alicloud.cen.get_region_route_entries(instance_id="cen-id1", region_id="cn-beijing") pulumi.export("firstRegionRouteEntriesRouteEntryCidrBlock", entry.entries[0]["cidr_block"])
- Parameters
instance_id (str) – ID of the CEN instance.
region_id (str) – ID of the region.
pulumi_alicloud.cen.get_route_entries(cidr_block=None, instance_id=None, output_file=None, route_table_id=None, opts=None)¶This data source provides CEN Route Entries available to the user.
import pulumi import pulumi_alicloud as alicloud entry = alicloud.cen.get_route_entries(instance_id="cen-id1", route_table_id="vtb-id1") pulumi.export("firstRouteEntriesRouteEntryCidrBlock", entry.entries[0]["cidr_block"])
- Parameters
cidr_block (str) – The destination CIDR block of the route entry to query.
instance_id (str) – ID of the CEN instance.
route_table_id (str) – ID of the route table of the VPC or VBR.
pulumi_alicloud.cen.get_route_maps(cen_id=None, cen_region_id=None, description_regex=None, ids=None, output_file=None, status=None, transmit_direction=None, opts=None)¶This data source provides CEN Route Maps available to the user.
NOTE: Available in v1.87.0+.
import pulumi import pulumi_alicloud as alicloud this = alicloud.cen.get_route_maps(cen_id="cen-ihdlgo87ai********", cen_region_id="cn-hangzhou", description_regex="datasource_test", ids=["cenrmap-bnh97kb3mn********"], status="Active", transmit_direction="RegionIn") pulumi.export("firstCenRouteMapId", this.maps[0]["id"])
- Parameters
cen_id (str) – The ID of the CEN instance.
cen_region_id (str) – The ID of the region to which the CEN instance belongs.
description_regex (str) – A regex string to filter CEN route map by description.
ids (list) – A list of CEN route map IDs.
status (str) – The status of the route map, including
Creating,ActiveandDeleting.transmit_direction (str) – The direction in which the route map is applied, including
RegionInandRegionOut.