Updated on 2023-12-13 GMT+08:00

VPC.FirewallPolicy.Ingress

Element Description

ACL policies in the inbound direction belong to ACL group members. One policy can contain multiple ACL rules.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

firewallRulesIds

No

ACL rule ID referenced by the policy

Type: string Array

Value Description: You are advised to use the get_input function to obtain the value, or connect to the FirewallPolicy object and use the get_reference function to obtain the value from the VPC.FirewallRule object.

audited

No

Audit flag

Type: boolean

Value Description: True or false

name

No

ACL policy name

Type: string

Value Description: Supports customization.

Value Constraint: The value supports a maximum of 255 characters.

description

No

ACL policy description

Type: string

Value Description: Supports customization.

Value Constraint: The value supports a maximum of 255 characters.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Connected

VPC.FirewallRule

Return Value

Property

Type

Description

refID

string

ACL policy ID

refName

string

ACL policy name

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  vpcfg273:
    type: HuaweiCloud.VPC.FirewallGroup
    properties:
      subnetId:
        - get_input: subnet_name
      egressFirewallPolicyId:
        get_reference: vpcfp2gy
      ingressFirewallPolicyId:
        get_reference: vpcfp3np
    requirements:
      - egressFirewallPolicyId:
          node: vpcfp2gy
      - ingressFirewallPolicyId:
          node: vpcfp3np
  vpcfp2gy:
    type: HuaweiCloud.VPC.FirewallPolicy.Egress
    properties:
      firewallRulesIds:
        - get_reference: vpcfr3uk
    requirements:
      - firewallRulesIds:
          node: vpcfr3uk
  vpcfp3np:
    type: HuaweiCloud.VPC.FirewallPolicy.Ingress
    properties:
      firewallRulesIds:
        - get_reference: vpcfr3uk
    requirements:
      - firewallRulesIds:
          node: vpcfr3uk
  vpcfr3uk:
    type: HuaweiCloud.VPC.FirewallRule
    properties: {}
inputs:
  subnet_name:
    description: ID of the VPC to which the subnet belongs
    label: ''
outputs:
  firegroupId:
    value:
      get_attribute: [vpcfg273, refID]