@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
151 lines (150 loc) • 5.62 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage cfw nat firewall 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 fooCfwNatFirewallControlPolicy = new volcengine.cloud_firewall.CfwNatFirewallControlPolicy("fooCfwNatFirewallControlPolicy", {
* direction: "in",
* natFirewallId: "nfw-ydmkayvjsw2vsavx****",
* 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,
* 4,
* ],
* startTime: 1736092800,
* endTime: 1738339140,
* priority: 1,
* status: true,
* });
* const fooCfwNatFirewallControlPolicyPriority = new volcengine.cloud_firewall.CfwNatFirewallControlPolicyPriority("fooCfwNatFirewallControlPolicyPriority", {
* direction: "in",
* natFirewallId: "nfw-ydmkayvjsw2vsavx****",
* ruleId: fooCfwNatFirewallControlPolicy.ruleId,
* newPrio: 2,
* });
* ```
*
* ## Import
*
* NatFirewallControlPolicyPriority can be imported using the direction_nat_firewall_id:rule_id, e.g.
*
* ```sh
* $ pulumi import volcengine:cloud_firewall/cfwNatFirewallControlPolicyPriority:CfwNatFirewallControlPolicyPriority default resource_id
* ```
*/
export declare class CfwNatFirewallControlPolicyPriority extends pulumi.CustomResource {
/**
* Get an existing CfwNatFirewallControlPolicyPriority 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?: CfwNatFirewallControlPolicyPriorityState, opts?: pulumi.CustomResourceOptions): CfwNatFirewallControlPolicyPriority;
/**
* Returns true if the given object is an instance of CfwNatFirewallControlPolicyPriority. 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 CfwNatFirewallControlPolicyPriority;
/**
* The direction of the nat firewall control policy. Valid values: `in`, `out`.
*/
readonly direction: pulumi.Output<string>;
/**
* The id of the nat firewall.
*/
readonly natFirewallId: pulumi.Output<string>;
/**
* The new priority of the nat firewall 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 nat firewall control policy.
*/
readonly prio: pulumi.Output<number>;
/**
* The rule id of the nat firewall control policy.
*/
readonly ruleId: pulumi.Output<string>;
/**
* Create a CfwNatFirewallControlPolicyPriority 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: CfwNatFirewallControlPolicyPriorityArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CfwNatFirewallControlPolicyPriority resources.
*/
export interface CfwNatFirewallControlPolicyPriorityState {
/**
* The direction of the nat firewall control policy. Valid values: `in`, `out`.
*/
direction?: pulumi.Input<string>;
/**
* The id of the nat firewall.
*/
natFirewallId?: pulumi.Input<string>;
/**
* The new priority of the nat firewall control policy. The priority increases in order from 1, with lower priority indicating higher priority.
*/
newPrio?: pulumi.Input<number>;
/**
* The priority of the nat firewall control policy.
*/
prio?: pulumi.Input<number>;
/**
* The rule id of the nat firewall control policy.
*/
ruleId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a CfwNatFirewallControlPolicyPriority resource.
*/
export interface CfwNatFirewallControlPolicyPriorityArgs {
/**
* The direction of the nat firewall control policy. Valid values: `in`, `out`.
*/
direction: pulumi.Input<string>;
/**
* The id of the nat firewall.
*/
natFirewallId: pulumi.Input<string>;
/**
* The new priority of the nat firewall control policy. The priority increases in order from 1, with lower priority indicating higher priority.
*/
newPrio?: pulumi.Input<number>;
/**
* The rule id of the nat firewall control policy.
*/
ruleId: pulumi.Input<string>;
}