TrafficMirrorFilterEgressRule

class TrafficMirrorFilterEgressRule : KotlinCustomResource

Provides a VPC Traffic Mirror Filter Egress Rule resource. For information about VPC Traffic Mirror Filter Egress Rule and how to use it, see What is Traffic Mirror Filter Egress Rule.

NOTE: Available in v1.140.0+.

Example Usage

Basic Usage

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.TrafficMirrorFilterEgressRule;
import com.pulumi.alicloud.vpc.TrafficMirrorFilterEgressRuleArgs;
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 exampleTrafficMirrorFilter = new TrafficMirrorFilter("exampleTrafficMirrorFilter", TrafficMirrorFilterArgs.builder()
.trafficMirrorFilterName("example_value")
.build());
var exampleTrafficMirrorFilterEgressRule = new TrafficMirrorFilterEgressRule("exampleTrafficMirrorFilterEgressRule", TrafficMirrorFilterEgressRuleArgs.builder()
.trafficMirrorFilterId(exampleTrafficMirrorFilter.id())
.priority("1")
.ruleAction("accept")
.protocol("UDP")
.destinationCidrBlock("10.0.0.0/24")
.sourceCidrBlock("10.0.0.0/24")
.destinationPortRange("1/120")
.sourcePortRange("1/120")
.build());
}
}

Import

VPC Traffic Mirror Filter Egress Rule can be imported using the id, e.g.

$ pulumi import alicloud:vpc/trafficMirrorFilterEgressRule:TrafficMirrorFilterEgressRule example <traffic_mirror_filter_id>:<traffic_mirror_filter_egress_rule_id>

Properties

Link copied to clipboard

The destination CIDR block of the outbound traffic.

Link copied to clipboard

The destination CIDR block of the outbound traffic. Valid values: 1 to 65535. Separate the first port and last port with a forward slash (/), for example, 1/200 or 80/80. A value of -1/-1 indicates that all ports are available. Therefore, do not set the value to -1/-1. NOTE: When protocol is ICMP, this parameter is invalid.

Link copied to clipboard
val dryRun: Output<Boolean>?

Whether to pre-check this request only. Default to: false

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val priority: Output<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.

Link copied to clipboard
val protocol: Output<String>

The transport protocol used by outbound traffic that needs to be mirrored. Valid values: ALL, ICMP, TCP, UDP.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ruleAction: Output<String>

The collection policy of the inbound rule. Valid values: accept or drop. accept: collects network traffic. drop: does not collect network traffic.

Link copied to clipboard
val sourceCidrBlock: Output<String>

The source CIDR block of the outbound traffic.

Link copied to clipboard
val sourcePortRange: Output<String>

The source port range of the outbound traffic. Valid values: 1 to 65535. Separate the first port and last port with a forward slash (/), for example, 1/200 or 80/80. A value of -1/-1 indicates that all ports are available. Therefore, do not set the value to -1/-1. NOTE: When protocol is ICMP, this parameter is invalid.

Link copied to clipboard
val status: Output<String>

The state of the inbound rule. Valid values:Creating, Created, Modifying and Deleting.

Link copied to clipboard

The ID of the outbound rule.

Link copied to clipboard

The ID of the filter.

Link copied to clipboard
val urn: Output<String>