TrafficMarkingPolicy

class TrafficMarkingPolicy : KotlinCustomResource

Provides a Cloud Enterprise Network (CEN) Traffic Marking Policy resource. For information about Cloud Enterprise Network (CEN) Traffic Marking Policy and how to use it, see What is Traffic Marking Policy.

NOTE: Available since v1.173.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.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.cen.TrafficMarkingPolicy;
import com.pulumi.alicloud.cen.TrafficMarkingPolicyArgs;
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 exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.cenInstanceName("tf_example")
.description("an example for cen")
.build());
var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
.transitRouterName("tf_example")
.cenId(exampleInstance.id())
.build());
var exampleTrafficMarkingPolicy = new TrafficMarkingPolicy("exampleTrafficMarkingPolicy", TrafficMarkingPolicyArgs.builder()
.markingDscp(1)
.priority(1)
.trafficMarkingPolicyName("tf_example")
.transitRouterId(exampleTransitRouter.transitRouterId())
.build());
}
}

Import

Cloud Enterprise Network (CEN) Traffic Marking Policy can be imported using the id, e.g.

$ pulumi import alicloud:cen/trafficMarkingPolicy:TrafficMarkingPolicy example <transit_router_id>:<traffic_marking_policy_id>

Properties

Link copied to clipboard
val description: Output<String>?

The description of the Traffic Marking Policy. The description must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

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

The dry run.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val markingDscp: Output<Int>

The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy. Value range: 0~63.

Link copied to clipboard
val priority: Output<Int>

The Priority of the Traffic Marking Policy. Value range: 1~100.

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

The status of the resource.

Link copied to clipboard

The ID of the Traffic Marking Policy.

Link copied to clipboard

The name of the Traffic Marking Policy. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

Link copied to clipboard
val transitRouterId: Output<String>

The ID of the transit router.

Link copied to clipboard
val urn: Output<String>