Import
Cloud Firewall Vpc Firewall Ips Config can be imported using the id, e.g.
$ pulumi import alicloud:cloudfirewall/vpcFirewallIpsConfig:VpcFirewallIpsConfig example <id>
Create VpcFirewallIpsConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcFirewallIpsConfig(name: string, args: VpcFirewallIpsConfigArgs, opts?: CustomResourceOptions);@overload
def VpcFirewallIpsConfig(resource_name: str,
args: VpcFirewallIpsConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcFirewallIpsConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
basic_rules: Optional[int] = None,
enable_all_patch: Optional[int] = None,
run_mode: Optional[int] = None,
vpc_firewall_id: Optional[str] = None,
lang: Optional[str] = None,
member_uid: Optional[str] = None,
rule_class: Optional[str] = None)func NewVpcFirewallIpsConfig(ctx *Context, name string, args VpcFirewallIpsConfigArgs, opts ...ResourceOption) (*VpcFirewallIpsConfig, error)public VpcFirewallIpsConfig(string name, VpcFirewallIpsConfigArgs args, CustomResourceOptions? opts = null)
public VpcFirewallIpsConfig(String name, VpcFirewallIpsConfigArgs args)
public VpcFirewallIpsConfig(String name, VpcFirewallIpsConfigArgs args, CustomResourceOptions options)
type: alicloud:cloudfirewall:VpcFirewallIpsConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcFirewallIpsConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcFirewallIpsConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcFirewallIpsConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcFirewallIpsConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcFirewallIpsConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcFirewallIpsConfigResource = new AliCloud.CloudFirewall.VpcFirewallIpsConfig("vpcFirewallIpsConfigResource", new()
{
BasicRules = 0,
EnableAllPatch = 0,
RunMode = 0,
VpcFirewallId = "string",
Lang = "string",
MemberUid = "string",
RuleClass = "string",
});
example, err := cloudfirewall.NewVpcFirewallIpsConfig(ctx, "vpcFirewallIpsConfigResource", &cloudfirewall.VpcFirewallIpsConfigArgs{
BasicRules: pulumi.Int(0),
EnableAllPatch: pulumi.Int(0),
RunMode: pulumi.Int(0),
VpcFirewallId: pulumi.String("string"),
Lang: pulumi.String("string"),
MemberUid: pulumi.String("string"),
RuleClass: pulumi.String("string"),
})
var vpcFirewallIpsConfigResource = new VpcFirewallIpsConfig("vpcFirewallIpsConfigResource", VpcFirewallIpsConfigArgs.builder()
.basicRules(0)
.enableAllPatch(0)
.runMode(0)
.vpcFirewallId("string")
.lang("string")
.memberUid("string")
.ruleClass("string")
.build());
vpc_firewall_ips_config_resource = alicloud.cloudfirewall.VpcFirewallIpsConfig("vpcFirewallIpsConfigResource",
basic_rules=0,
enable_all_patch=0,
run_mode=0,
vpc_firewall_id="string",
lang="string",
member_uid="string",
rule_class="string")
const vpcFirewallIpsConfigResource = new alicloud.cloudfirewall.VpcFirewallIpsConfig("vpcFirewallIpsConfigResource", {
basicRules: 0,
enableAllPatch: 0,
runMode: 0,
vpcFirewallId: "string",
lang: "string",
memberUid: "string",
ruleClass: "string",
});
type: alicloud:cloudfirewall:VpcFirewallIpsConfig
properties:
basicRules: 0
enableAllPatch: 0
lang: string
memberUid: string
ruleClass: string
runMode: 0
vpcFirewallId: string
VpcFirewallIpsConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcFirewallIpsConfig resource accepts the following input properties:
- Basic
Rules int - Base rule switch. Value:
- Enable
All intPatch - Virtual patch switch. Value:
- Run
Mode int - IPS defense mode. Value:
- Vpc
Firewall stringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- Lang string
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Member
Uid string MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Rule
Class string - IPS rule Group
- Basic
Rules int - Base rule switch. Value:
- Enable
All intPatch - Virtual patch switch. Value:
- Run
Mode int - IPS defense mode. Value:
- Vpc
Firewall stringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- Lang string
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Member
Uid string MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Rule
Class string - IPS rule Group
- basic
Rules Integer - Base rule switch. Value:
- enable
All IntegerPatch - Virtual patch switch. Value:
- run
Mode Integer - IPS defense mode. Value:
- vpc
Firewall StringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- lang String
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member
Uid String MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule
Class String - IPS rule Group
- basic
Rules number - Base rule switch. Value:
- enable
All numberPatch - Virtual patch switch. Value:
- run
Mode number - IPS defense mode. Value:
- vpc
Firewall stringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- lang string
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member
Uid string MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule
Class string - IPS rule Group
- basic_
rules int - Base rule switch. Value:
- enable_
all_ intpatch - Virtual patch switch. Value:
- run_
mode int - IPS defense mode. Value:
- vpc_
firewall_ strid - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- lang str
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member_
uid str MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule_
class str - IPS rule Group
- basic
Rules Number - Base rule switch. Value:
- enable
All NumberPatch - Virtual patch switch. Value:
- run
Mode Number - IPS defense mode. Value:
- vpc
Firewall StringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- lang String
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member
Uid String MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule
Class String - IPS rule Group
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcFirewallIpsConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpcFirewallIpsConfig Resource
Get an existing VpcFirewallIpsConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcFirewallIpsConfigState, opts?: CustomResourceOptions): VpcFirewallIpsConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
basic_rules: Optional[int] = None,
enable_all_patch: Optional[int] = None,
lang: Optional[str] = None,
member_uid: Optional[str] = None,
rule_class: Optional[str] = None,
run_mode: Optional[int] = None,
vpc_firewall_id: Optional[str] = None) -> VpcFirewallIpsConfigfunc GetVpcFirewallIpsConfig(ctx *Context, name string, id IDInput, state *VpcFirewallIpsConfigState, opts ...ResourceOption) (*VpcFirewallIpsConfig, error)public static VpcFirewallIpsConfig Get(string name, Input<string> id, VpcFirewallIpsConfigState? state, CustomResourceOptions? opts = null)public static VpcFirewallIpsConfig get(String name, Output<String> id, VpcFirewallIpsConfigState state, CustomResourceOptions options)resources: _: type: alicloud:cloudfirewall:VpcFirewallIpsConfig get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Basic
Rules int - Base rule switch. Value:
- Enable
All intPatch - Virtual patch switch. Value:
- Lang string
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Member
Uid string MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Rule
Class string - IPS rule Group
- Run
Mode int - IPS defense mode. Value:
- Vpc
Firewall stringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- Basic
Rules int - Base rule switch. Value:
- Enable
All intPatch - Virtual patch switch. Value:
- Lang string
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Member
Uid string MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Rule
Class string - IPS rule Group
- Run
Mode int - IPS defense mode. Value:
- Vpc
Firewall stringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- basic
Rules Integer - Base rule switch. Value:
- enable
All IntegerPatch - Virtual patch switch. Value:
- lang String
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member
Uid String MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule
Class String - IPS rule Group
- run
Mode Integer - IPS defense mode. Value:
- vpc
Firewall StringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- basic
Rules number - Base rule switch. Value:
- enable
All numberPatch - Virtual patch switch. Value:
- lang string
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member
Uid string MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule
Class string - IPS rule Group
- run
Mode number - IPS defense mode. Value:
- vpc
Firewall stringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- basic_
rules int - Base rule switch. Value:
- enable_
all_ intpatch - Virtual patch switch. Value:
- lang str
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member_
uid str MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule_
class str - IPS rule Group
- run_
mode int - IPS defense mode. Value:
- vpc_
firewall_ strid - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
- basic
Rules Number - Base rule switch. Value:
- enable
All NumberPatch - Virtual patch switch. Value:
- lang String
Language
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- member
Uid String MemberUid
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- rule
Class String - IPS rule Group
- run
Mode Number - IPS defense mode. Value:
- vpc
Firewall StringId - The ID of the VPC firewall instance. Value:
- When VPC firewall protects the network instances (including VPC, VBR, and CCN) and the specified VPC, the instance ID uses the CEN instance ID. You can call the DescribeVpcFirewallCenList operation to query the instance ID of CEN.
- When the VPC firewall protects the traffic between two VPCs connected through the express connection, the instance ID uses the VPC firewall instance ID. You can call the DescribeVpcFirewallList operation to query the instance ID of the VPC firewall.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
