UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

136 lines (135 loc) 4.81 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage cfw control policy priority * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooCfwAddressBook = new volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook", { * groupName: "acc-test-address-book", * description: "acc-test", * groupType: "ip", * addressLists: [ * "192.168.1.1", * "192.168.2.2", * ], * }); * const fooCfwControlPolicy = new volcengine.cloud_firewall.CfwControlPolicy("fooCfwControlPolicy", { * direction: "in", * action: "accept", * destinationType: "group", * destination: fooCfwAddressBook.id, * proto: "TCP", * sourceType: "net", * source: "0.0.0.0/0", * description: "acc-test-control-policy", * destPortType: "port", * destPort: "300", * repeatType: "Weekly", * repeatStartTime: "01:00", * repeatEndTime: "11:00", * repeatDays: [ * 2, * 5, * ], * startTime: 1736092800, * endTime: 1738339140, * priority: 1, * status: true, * }); * const fooCfwControlPolicyPriority = new volcengine.cloud_firewall.CfwControlPolicyPriority("fooCfwControlPolicyPriority", { * direction: "in", * ruleId: fooCfwControlPolicy.ruleId, * newPrio: 5, * }); * ``` * * ## Import * * ControlPolicyPriority can be imported using the direction:rule_id, e.g. * * ```sh * $ pulumi import volcengine:cloud_firewall/cfwControlPolicyPriority:CfwControlPolicyPriority default resource_id * ``` */ export declare class CfwControlPolicyPriority extends pulumi.CustomResource { /** * Get an existing CfwControlPolicyPriority resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CfwControlPolicyPriorityState, opts?: pulumi.CustomResourceOptions): CfwControlPolicyPriority; /** * Returns true if the given object is an instance of CfwControlPolicyPriority. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CfwControlPolicyPriority; /** * The direction of the control policy. Valid values: `in`, `out`. */ readonly direction: pulumi.Output<string>; /** * The new priority of the control policy. The priority increases in order from 1, with lower priority indicating higher priority. */ readonly newPrio: pulumi.Output<number | undefined>; /** * The priority of the control policy. */ readonly prio: pulumi.Output<number>; /** * The rule id of the control policy. */ readonly ruleId: pulumi.Output<string>; /** * Create a CfwControlPolicyPriority resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CfwControlPolicyPriorityArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CfwControlPolicyPriority resources. */ export interface CfwControlPolicyPriorityState { /** * The direction of the control policy. Valid values: `in`, `out`. */ direction?: pulumi.Input<string>; /** * The new priority of the control policy. The priority increases in order from 1, with lower priority indicating higher priority. */ newPrio?: pulumi.Input<number>; /** * The priority of the control policy. */ prio?: pulumi.Input<number>; /** * The rule id of the control policy. */ ruleId?: pulumi.Input<string>; } /** * The set of arguments for constructing a CfwControlPolicyPriority resource. */ export interface CfwControlPolicyPriorityArgs { /** * The direction of the control policy. Valid values: `in`, `out`. */ direction: pulumi.Input<string>; /** * The new priority of the control policy. The priority increases in order from 1, with lower priority indicating higher priority. */ newPrio?: pulumi.Input<number>; /** * The rule id of the control policy. */ ruleId: pulumi.Input<string>; }