alicloud.vpc.TrafficMirrorFilterIngressRule
Explore with Pulumi AI
Provides a VPC Traffic Mirror Filter Ingress Rule resource. Traffic mirror entry rule.
For information about VPC Traffic Mirror Filter Ingress Rule and how to use it, see What is Traffic Mirror Filter Ingress Rule.
NOTE: Available since v1.141.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.vpc.TrafficMirrorFilter("example", {trafficMirrorFilterName: "example_value"});
const exampleTrafficMirrorFilterIngressRule = new alicloud.vpc.TrafficMirrorFilterIngressRule("example", {
trafficMirrorFilterId: example.id,
priority: 1,
action: "accept",
protocol: "UDP",
destinationCidrBlock: "10.0.0.0/24",
sourceCidrBlock: "10.0.0.0/24",
destinationPortRange: "1/120",
sourcePortRange: "1/120",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.vpc.TrafficMirrorFilter("example", traffic_mirror_filter_name="example_value")
example_traffic_mirror_filter_ingress_rule = alicloud.vpc.TrafficMirrorFilterIngressRule("example",
traffic_mirror_filter_id=example.id,
priority=1,
action="accept",
protocol="UDP",
destination_cidr_block="10.0.0.0/24",
source_cidr_block="10.0.0.0/24",
destination_port_range="1/120",
source_port_range="1/120")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := vpc.NewTrafficMirrorFilter(ctx, "example", &vpc.TrafficMirrorFilterArgs{
TrafficMirrorFilterName: pulumi.String("example_value"),
})
if err != nil {
return err
}
_, err = vpc.NewTrafficMirrorFilterIngressRule(ctx, "example", &vpc.TrafficMirrorFilterIngressRuleArgs{
TrafficMirrorFilterId: example.ID(),
Priority: pulumi.Int(1),
Action: pulumi.String("accept"),
Protocol: pulumi.String("UDP"),
DestinationCidrBlock: pulumi.String("10.0.0.0/24"),
SourceCidrBlock: pulumi.String("10.0.0.0/24"),
DestinationPortRange: pulumi.String("1/120"),
SourcePortRange: pulumi.String("1/120"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Vpc.TrafficMirrorFilter("example", new()
{
TrafficMirrorFilterName = "example_value",
});
var exampleTrafficMirrorFilterIngressRule = new AliCloud.Vpc.TrafficMirrorFilterIngressRule("example", new()
{
TrafficMirrorFilterId = example.Id,
Priority = 1,
Action = "accept",
Protocol = "UDP",
DestinationCidrBlock = "10.0.0.0/24",
SourceCidrBlock = "10.0.0.0/24",
DestinationPortRange = "1/120",
SourcePortRange = "1/120",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.TrafficMirrorFilter;
import com.pulumi.alicloud.vpc.TrafficMirrorFilterArgs;
import com.pulumi.alicloud.vpc.TrafficMirrorFilterIngressRule;
import com.pulumi.alicloud.vpc.TrafficMirrorFilterIngressRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TrafficMirrorFilter("example", TrafficMirrorFilterArgs.builder()
.trafficMirrorFilterName("example_value")
.build());
var exampleTrafficMirrorFilterIngressRule = new TrafficMirrorFilterIngressRule("exampleTrafficMirrorFilterIngressRule", TrafficMirrorFilterIngressRuleArgs.builder()
.trafficMirrorFilterId(example.id())
.priority("1")
.action("accept")
.protocol("UDP")
.destinationCidrBlock("10.0.0.0/24")
.sourceCidrBlock("10.0.0.0/24")
.destinationPortRange("1/120")
.sourcePortRange("1/120")
.build());
}
}
resources:
example:
type: alicloud:vpc:TrafficMirrorFilter
properties:
trafficMirrorFilterName: example_value
exampleTrafficMirrorFilterIngressRule:
type: alicloud:vpc:TrafficMirrorFilterIngressRule
name: example
properties:
trafficMirrorFilterId: ${example.id}
priority: '1'
action: accept
protocol: UDP
destinationCidrBlock: 10.0.0.0/24
sourceCidrBlock: 10.0.0.0/24
destinationPortRange: 1/120
sourcePortRange: 1/120
Create TrafficMirrorFilterIngressRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficMirrorFilterIngressRule(name: string, args: TrafficMirrorFilterIngressRuleArgs, opts?: CustomResourceOptions);
@overload
def TrafficMirrorFilterIngressRule(resource_name: str,
args: TrafficMirrorFilterIngressRuleInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficMirrorFilterIngressRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_cidr_block: Optional[str] = None,
priority: Optional[int] = None,
protocol: Optional[str] = None,
source_cidr_block: Optional[str] = None,
traffic_mirror_filter_id: Optional[str] = None,
action: Optional[str] = None,
destination_port_range: Optional[str] = None,
dry_run: Optional[bool] = None,
rule_action: Optional[str] = None,
source_port_range: Optional[str] = None)
func NewTrafficMirrorFilterIngressRule(ctx *Context, name string, args TrafficMirrorFilterIngressRuleArgs, opts ...ResourceOption) (*TrafficMirrorFilterIngressRule, error)
public TrafficMirrorFilterIngressRule(string name, TrafficMirrorFilterIngressRuleArgs args, CustomResourceOptions? opts = null)
public TrafficMirrorFilterIngressRule(String name, TrafficMirrorFilterIngressRuleArgs args)
public TrafficMirrorFilterIngressRule(String name, TrafficMirrorFilterIngressRuleArgs args, CustomResourceOptions options)
type: alicloud:vpc:TrafficMirrorFilterIngressRule
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 TrafficMirrorFilterIngressRuleArgs
- 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 TrafficMirrorFilterIngressRuleInitArgs
- 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 TrafficMirrorFilterIngressRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficMirrorFilterIngressRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficMirrorFilterIngressRuleArgs
- 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 trafficMirrorFilterIngressRuleResource = new AliCloud.Vpc.TrafficMirrorFilterIngressRule("trafficMirrorFilterIngressRuleResource", new()
{
DestinationCidrBlock = "string",
Priority = 0,
Protocol = "string",
SourceCidrBlock = "string",
TrafficMirrorFilterId = "string",
Action = "string",
DestinationPortRange = "string",
DryRun = false,
SourcePortRange = "string",
});
example, err := vpc.NewTrafficMirrorFilterIngressRule(ctx, "trafficMirrorFilterIngressRuleResource", &vpc.TrafficMirrorFilterIngressRuleArgs{
DestinationCidrBlock: pulumi.String("string"),
Priority: pulumi.Int(0),
Protocol: pulumi.String("string"),
SourceCidrBlock: pulumi.String("string"),
TrafficMirrorFilterId: pulumi.String("string"),
Action: pulumi.String("string"),
DestinationPortRange: pulumi.String("string"),
DryRun: pulumi.Bool(false),
SourcePortRange: pulumi.String("string"),
})
var trafficMirrorFilterIngressRuleResource = new TrafficMirrorFilterIngressRule("trafficMirrorFilterIngressRuleResource", TrafficMirrorFilterIngressRuleArgs.builder()
.destinationCidrBlock("string")
.priority(0)
.protocol("string")
.sourceCidrBlock("string")
.trafficMirrorFilterId("string")
.action("string")
.destinationPortRange("string")
.dryRun(false)
.sourcePortRange("string")
.build());
traffic_mirror_filter_ingress_rule_resource = alicloud.vpc.TrafficMirrorFilterIngressRule("trafficMirrorFilterIngressRuleResource",
destination_cidr_block="string",
priority=0,
protocol="string",
source_cidr_block="string",
traffic_mirror_filter_id="string",
action="string",
destination_port_range="string",
dry_run=False,
source_port_range="string")
const trafficMirrorFilterIngressRuleResource = new alicloud.vpc.TrafficMirrorFilterIngressRule("trafficMirrorFilterIngressRuleResource", {
destinationCidrBlock: "string",
priority: 0,
protocol: "string",
sourceCidrBlock: "string",
trafficMirrorFilterId: "string",
action: "string",
destinationPortRange: "string",
dryRun: false,
sourcePortRange: "string",
});
type: alicloud:vpc:TrafficMirrorFilterIngressRule
properties:
action: string
destinationCidrBlock: string
destinationPortRange: string
dryRun: false
priority: 0
protocol: string
sourceCidrBlock: string
sourcePortRange: string
trafficMirrorFilterId: string
TrafficMirrorFilterIngressRule 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 TrafficMirrorFilterIngressRule resource accepts the following input properties:
- Destination
Cidr stringBlock - The destination CIDR block of the inbound traffic.
- Priority int
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - Protocol string
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - Source
Cidr stringBlock - The source CIDR block of the inbound traffic.
- Traffic
Mirror stringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- Action string
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - Destination
Port stringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - Dry
Run bool - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- Rule
Action string - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- Source
Port stringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid.
- Destination
Cidr stringBlock - The destination CIDR block of the inbound traffic.
- Priority int
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - Protocol string
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - Source
Cidr stringBlock - The source CIDR block of the inbound traffic.
- Traffic
Mirror stringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- Action string
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - Destination
Port stringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - Dry
Run bool - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- Rule
Action string - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- Source
Port stringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid.
- destination
Cidr StringBlock - The destination CIDR block of the inbound traffic.
- priority Integer
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol String
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - source
Cidr StringBlock - The source CIDR block of the inbound traffic.
- traffic
Mirror StringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- action String
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination
Port StringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry
Run Boolean - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- rule
Action String - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source
Port StringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid.
- destination
Cidr stringBlock - The destination CIDR block of the inbound traffic.
- priority number
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol string
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - source
Cidr stringBlock - The source CIDR block of the inbound traffic.
- traffic
Mirror stringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- action string
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination
Port stringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry
Run boolean - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- rule
Action string - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source
Port stringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid.
- destination_
cidr_ strblock - The destination CIDR block of the inbound traffic.
- priority int
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol str
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - source_
cidr_ strblock - The source CIDR block of the inbound traffic.
- traffic_
mirror_ strfilter_ id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- action str
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination_
port_ strrange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry_
run bool - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- rule_
action str - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source_
port_ strrange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid.
- destination
Cidr StringBlock - The destination CIDR block of the inbound traffic.
- priority Number
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol String
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - source
Cidr StringBlock - The source CIDR block of the inbound traffic.
- traffic
Mirror StringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- action String
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination
Port StringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry
Run Boolean - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- rule
Action String - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source
Port StringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficMirrorFilterIngressRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - Traffic
Mirror stringFilter Ingress Rule Id - The ID of the outbound rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - Traffic
Mirror stringFilter Ingress Rule Id - The ID of the outbound rule.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic
Mirror StringFilter Ingress Rule Id - The ID of the outbound rule.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic
Mirror stringFilter Ingress Rule Id - The ID of the outbound rule.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic_
mirror_ strfilter_ ingress_ rule_ id - The ID of the outbound rule.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic
Mirror StringFilter Ingress Rule Id - The ID of the outbound rule.
Look up Existing TrafficMirrorFilterIngressRule Resource
Get an existing TrafficMirrorFilterIngressRule 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?: TrafficMirrorFilterIngressRuleState, opts?: CustomResourceOptions): TrafficMirrorFilterIngressRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
destination_cidr_block: Optional[str] = None,
destination_port_range: Optional[str] = None,
dry_run: Optional[bool] = None,
priority: Optional[int] = None,
protocol: Optional[str] = None,
rule_action: Optional[str] = None,
source_cidr_block: Optional[str] = None,
source_port_range: Optional[str] = None,
status: Optional[str] = None,
traffic_mirror_filter_id: Optional[str] = None,
traffic_mirror_filter_ingress_rule_id: Optional[str] = None) -> TrafficMirrorFilterIngressRule
func GetTrafficMirrorFilterIngressRule(ctx *Context, name string, id IDInput, state *TrafficMirrorFilterIngressRuleState, opts ...ResourceOption) (*TrafficMirrorFilterIngressRule, error)
public static TrafficMirrorFilterIngressRule Get(string name, Input<string> id, TrafficMirrorFilterIngressRuleState? state, CustomResourceOptions? opts = null)
public static TrafficMirrorFilterIngressRule get(String name, Output<String> id, TrafficMirrorFilterIngressRuleState 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.
- Action string
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - Destination
Cidr stringBlock - The destination CIDR block of the inbound traffic.
- Destination
Port stringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - Dry
Run bool - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- Priority int
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - Protocol string
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - Rule
Action string - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- Source
Cidr stringBlock - The source CIDR block of the inbound traffic.
- Source
Port stringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - Status string
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - Traffic
Mirror stringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- Traffic
Mirror stringFilter Ingress Rule Id - The ID of the outbound rule.
- Action string
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - Destination
Cidr stringBlock - The destination CIDR block of the inbound traffic.
- Destination
Port stringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - Dry
Run bool - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- Priority int
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - Protocol string
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - Rule
Action string - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- Source
Cidr stringBlock - The source CIDR block of the inbound traffic.
- Source
Port stringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - Status string
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - Traffic
Mirror stringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- Traffic
Mirror stringFilter Ingress Rule Id - The ID of the outbound rule.
- action String
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination
Cidr StringBlock - The destination CIDR block of the inbound traffic.
- destination
Port StringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry
Run Boolean - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- priority Integer
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol String
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - rule
Action String - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source
Cidr StringBlock - The source CIDR block of the inbound traffic.
- source
Port StringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - status String
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic
Mirror StringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- traffic
Mirror StringFilter Ingress Rule Id - The ID of the outbound rule.
- action string
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination
Cidr stringBlock - The destination CIDR block of the inbound traffic.
- destination
Port stringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry
Run boolean - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- priority number
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol string
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - rule
Action string - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source
Cidr stringBlock - The source CIDR block of the inbound traffic.
- source
Port stringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - status string
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic
Mirror stringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- traffic
Mirror stringFilter Ingress Rule Id - The ID of the outbound rule.
- action str
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination_
cidr_ strblock - The destination CIDR block of the inbound traffic.
- destination_
port_ strrange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry_
run bool - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- priority int
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol str
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - rule_
action str - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source_
cidr_ strblock - The source CIDR block of the inbound traffic.
- source_
port_ strrange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - status str
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic_
mirror_ strfilter_ id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- traffic_
mirror_ strfilter_ ingress_ rule_ id - The ID of the outbound rule.
- action String
- The collection policy of the inbound rule. Valid values:
accept
ordrop
.accept
: collects network traffic.drop
: does not collect network traffic. - destination
Cidr StringBlock - The destination CIDR block of the inbound traffic.
- destination
Port StringRange - The destination CIDR block of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - dry
Run Boolean - Whether to PreCheck this request only. Value:
- true: sends a check request and does not create inbound or outbound rules. Check items include whether required parameters are filled in, request format, and restrictions. If the check fails, the corresponding error is returned. If the check passes, the error code 'DryRunOperation' is returned '.
- false (default): Sends a normal request and directly creates an inbound or outbound direction rule after checking.
- priority Number
- The priority of the inbound rule. A smaller value indicates a higher priority. The maximum value is
10
, which indicates that you can configure at most 10 inbound rules for a filter. - protocol String
- The transport protocol used by inbound traffic that needs to be mirrored. Valid values:
ALL
,ICMP
,TCP
,UDP
. - rule
Action String - . Field 'rule_action' has been deprecated from provider version 1.211.0. New field 'action' instead.
- source
Cidr StringBlock - The source CIDR block of the inbound traffic.
- source
Port StringRange - The source port range of the inbound traffic. Valid values:
1
to65535
. Separate the first port and last port with a forward slash (/), for example,1/200
or80/80
. A value of-1/-1
indicates that all ports are available. Therefore, do not set the value to-1/-1
. NOTE: Whenprotocol
isICMP
, this parameter is invalid. - status String
- The state of the inbound rule.
Creating
,Created
,Modifying
andDeleting
. - traffic
Mirror StringFilter Id The ID of the filter.
The following arguments will be discarded. Please use new fields as soon as possible:
- traffic
Mirror StringFilter Ingress Rule Id - The ID of the outbound rule.
Import
VPC Traffic Mirror Filter Ingress Rule can be imported using the id, e.g.
$ pulumi import alicloud:vpc/trafficMirrorFilterIngressRule:TrafficMirrorFilterIngressRule example <traffic_mirror_filter_id>:<traffic_mirror_filter_ingress_rule_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.