@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
136 lines (135 loc) • 4.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage cfw vpc firewall acl rule 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 fooCfwVpcFirewallAclRule = new volcengine.cloud_firewall.CfwVpcFirewallAclRule("fooCfwVpcFirewallAclRule", {
* vpcFirewallId: "vfw-ydmjakzksgf7u99j****",
* 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 fooCfwVpcFirewallAclRulePriority = new volcengine.cloud_firewall.CfwVpcFirewallAclRulePriority("fooCfwVpcFirewallAclRulePriority", {
* vpcFirewallId: "vfw-ydmjakzksgf7u99j****",
* ruleId: fooCfwVpcFirewallAclRule.ruleId,
* newPrio: 3,
* });
* ```
*
* ## Import
*
* VpcFirewallAclRulePriority can be imported using the vpc_firewall_id:rule_id, e.g.
*
* ```sh
* $ pulumi import volcengine:cloud_firewall/cfwVpcFirewallAclRulePriority:CfwVpcFirewallAclRulePriority default resource_id
* ```
*/
export declare class CfwVpcFirewallAclRulePriority extends pulumi.CustomResource {
/**
* Get an existing CfwVpcFirewallAclRulePriority 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?: CfwVpcFirewallAclRulePriorityState, opts?: pulumi.CustomResourceOptions): CfwVpcFirewallAclRulePriority;
/**
* Returns true if the given object is an instance of CfwVpcFirewallAclRulePriority. 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 CfwVpcFirewallAclRulePriority;
/**
* The new priority of the vpc firewall acl rule. The priority increases in order from 1, with lower priority indicating higher priority.
*/
readonly newPrio: pulumi.Output<number | undefined>;
/**
* The priority of the vpc firewall acl rule.
*/
readonly prio: pulumi.Output<number>;
/**
* The rule id of the vpc firewall acl rule.
*/
readonly ruleId: pulumi.Output<string>;
/**
* The id of the vpc firewall.
*/
readonly vpcFirewallId: pulumi.Output<string>;
/**
* Create a CfwVpcFirewallAclRulePriority 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: CfwVpcFirewallAclRulePriorityArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CfwVpcFirewallAclRulePriority resources.
*/
export interface CfwVpcFirewallAclRulePriorityState {
/**
* The new priority of the vpc firewall acl rule. The priority increases in order from 1, with lower priority indicating higher priority.
*/
newPrio?: pulumi.Input<number>;
/**
* The priority of the vpc firewall acl rule.
*/
prio?: pulumi.Input<number>;
/**
* The rule id of the vpc firewall acl rule.
*/
ruleId?: pulumi.Input<string>;
/**
* The id of the vpc firewall.
*/
vpcFirewallId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a CfwVpcFirewallAclRulePriority resource.
*/
export interface CfwVpcFirewallAclRulePriorityArgs {
/**
* The new priority of the vpc firewall acl rule. The priority increases in order from 1, with lower priority indicating higher priority.
*/
newPrio?: pulumi.Input<number>;
/**
* The rule id of the vpc firewall acl rule.
*/
ruleId: pulumi.Input<string>;
/**
* The id of the vpc firewall.
*/
vpcFirewallId: pulumi.Input<string>;
}