azure-native.network.RouteFilterRule
Explore with Pulumi AI
Route Filter Rule Resource.
Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.
Other available API versions: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]
. See the version guide for details.
Create RouteFilterRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouteFilterRule(name: string, args: RouteFilterRuleArgs, opts?: CustomResourceOptions);
@overload
def RouteFilterRule(resource_name: str,
args: RouteFilterRuleInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouteFilterRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
access: Optional[Union[str, Access]] = None,
communities: Optional[Sequence[str]] = None,
resource_group_name: Optional[str] = None,
route_filter_name: Optional[str] = None,
route_filter_rule_type: Optional[Union[str, RouteFilterRuleType]] = None,
id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
rule_name: Optional[str] = None)
func NewRouteFilterRule(ctx *Context, name string, args RouteFilterRuleArgs, opts ...ResourceOption) (*RouteFilterRule, error)
public RouteFilterRule(string name, RouteFilterRuleArgs args, CustomResourceOptions? opts = null)
public RouteFilterRule(String name, RouteFilterRuleArgs args)
public RouteFilterRule(String name, RouteFilterRuleArgs args, CustomResourceOptions options)
type: azure-native:network:RouteFilterRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RouteFilterRuleArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. RouteFilterRuleInitArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RouteFilterRuleArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RouteFilterRuleArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. RouteFilterRuleArgs - 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 routeFilterRuleResource = new AzureNative.Network.RouteFilterRule("routeFilterRuleResource", new()
{
Access = "string",
Communities = new[]
{
"string",
},
ResourceGroupName = "string",
RouteFilterName = "string",
RouteFilterRuleType = "string",
Id = "string",
Location = "string",
Name = "string",
RuleName = "string",
});
example, err := network.NewRouteFilterRule(ctx, "routeFilterRuleResource", &network.RouteFilterRuleArgs{
Access: pulumi.String("string"),
Communities: pulumi.StringArray{
pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
RouteFilterName: pulumi.String("string"),
RouteFilterRuleType: pulumi.String("string"),
Id: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
RuleName: pulumi.String("string"),
})
var routeFilterRuleResource = new RouteFilterRule("routeFilterRuleResource", RouteFilterRuleArgs.builder()
.access("string")
.communities("string")
.resourceGroupName("string")
.routeFilterName("string")
.routeFilterRuleType("string")
.id("string")
.location("string")
.name("string")
.ruleName("string")
.build());
route_filter_rule_resource = azure_native.network.RouteFilterRule("routeFilterRuleResource",
access="string",
communities=["string"],
resource_group_name="string",
route_filter_name="string",
route_filter_rule_type="string",
id="string",
location="string",
name="string",
rule_name="string")
const routeFilterRuleResource = new azure_native.network.RouteFilterRule("routeFilterRuleResource", {
access: "string",
communities: ["string"],
resourceGroupName: "string",
routeFilterName: "string",
routeFilterRuleType: "string",
id: "string",
location: "string",
name: "string",
ruleName: "string",
});
type: azure-native:network:RouteFilterRule
properties:
access: string
communities:
- string
id: string
location: string
name: string
resourceGroupName: string
routeFilterName: string
routeFilterRuleType: string
ruleName: string
RouteFilterRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RouteFilterRule resource accepts the following input properties:
- Access
This property is required. string | Pulumi.Azure Native. Network. Access - The access type of the rule.
- Communities
This property is required. List<string> - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Route
Filter Name This property is required. Changes to this property will trigger replacement.
- The name of the route filter.
- Route
Filter Rule Type This property is required. string | Pulumi.Azure Native. Network. Route Filter Rule Type - The rule type of the rule.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Rule
Name Changes to this property will trigger replacement.
- The name of the route filter rule.
- Access
This property is required. string | Access - The access type of the rule.
- Communities
This property is required. []string - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Route
Filter Name This property is required. Changes to this property will trigger replacement.
- The name of the route filter.
- Route
Filter Rule Type This property is required. string | RouteFilter Rule Type Enum - The rule type of the rule.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Rule
Name Changes to this property will trigger replacement.
- The name of the route filter rule.
- access
This property is required. String | Access - The access type of the rule.
- communities
This property is required. List<String> - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- route
Filter Name This property is required. Changes to this property will trigger replacement.
- The name of the route filter.
- route
Filter Rule Type This property is required. String | RouteFilter Rule Type - The rule type of the rule.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- rule
Name Changes to this property will trigger replacement.
- The name of the route filter rule.
- access
This property is required. string | Access - The access type of the rule.
- communities
This property is required. string[] - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- route
Filter Name This property is required. Changes to this property will trigger replacement.
- The name of the route filter.
- route
Filter Rule Type This property is required. string | RouteFilter Rule Type - The rule type of the rule.
- id string
- Resource ID.
- location string
- Resource location.
- name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- rule
Name Changes to this property will trigger replacement.
- The name of the route filter rule.
- access
This property is required. str | Access - The access type of the rule.
- communities
This property is required. Sequence[str] - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- route_
filter_ name This property is required. Changes to this property will trigger replacement.
- The name of the route filter.
- route_
filter_ rule_ type This property is required. str | RouteFilter Rule Type - The rule type of the rule.
- id str
- Resource ID.
- location str
- Resource location.
- name str
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- rule_
name Changes to this property will trigger replacement.
- The name of the route filter rule.
- access
This property is required. String | "Allow" | "Deny" - The access type of the rule.
- communities
This property is required. List<String> - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'].
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- route
Filter Name This property is required. Changes to this property will trigger replacement.
- The name of the route filter.
- route
Filter Rule Type This property is required. String | "Community" - The rule type of the rule.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- rule
Name Changes to this property will trigger replacement.
- The name of the route filter rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteFilterRule resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state of the route filter rule resource.
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning state of the route filter rule resource.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state of the route filter rule resource.
- azure
Api stringVersion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - The provisioning state of the route filter rule resource.
- azure_
api_ strversion - The Azure API version of the resource.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - The provisioning state of the route filter rule resource.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning state of the route filter rule resource.
Supporting Types
Access, AccessArgs
- Allow
- Allow
- Deny
- Deny
- Access
Allow - Allow
- Access
Deny - Deny
- Allow
- Allow
- Deny
- Deny
- Allow
- Allow
- Deny
- Deny
- ALLOW
- Allow
- DENY
- Deny
- "Allow"
- Allow
- "Deny"
- Deny
RouteFilterRuleType, RouteFilterRuleTypeArgs
- Community
- Community
- Route
Filter Rule Type Community - Community
- Community
- Community
- Community
- Community
- COMMUNITY
- Community
- "Community"
- Community
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:RouteFilterRule ruleName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0