Skip to content

VpcFirewallCen

This class encapsulates and extends the ROS resource type ALIYUN::CLOUDFW::VpcFirewallCen.

Initializers

import com.aliyun.ros.cdk.cloudfw.VpcFirewallCen;
VpcFirewallCen.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .cenId(java.lang.String)
    .cenId(IResolvable)
    .firewallSwitch(java.lang.String)
    .firewallSwitch(IResolvable)
    .firewallVpcZoneId(java.lang.String)
    .firewallVpcZoneId(IResolvable)
    .networkInstanceId(java.lang.String)
    .networkInstanceId(IResolvable)
    .vpcFirewallName(java.lang.String)
    .vpcFirewallName(IResolvable)
    .vpcRegion(java.lang.String)
    .vpcRegion(IResolvable)
//  .firewallVpcCidrBlock(java.lang.String)
//  .firewallVpcCidrBlock(IResolvable)
//  .firewallVSwitchCidrBlock(java.lang.String)
//  .firewallVSwitchCidrBlock(IResolvable)
//  .memberUid(java.lang.String)
//  .memberUid(IResolvable)
//  .vSwitchId(java.lang.String)
//  .vSwitchId(IResolvable)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct No description.
id java.lang.String No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
cenId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cenId: The ID of the CEN instance.
firewallSwitch java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property firewallSwitch: Specifies whether to enable the VPC firewall.
firewallVpcZoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property firewallVpcZoneId: The ID of the zone to which the vSwitch belongs.
networkInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property networkInstanceId: The ID of the VPC for which you want to create the VPC firewall.
vpcFirewallName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcFirewallName: The instance name of the VPC firewall.
vpcRegion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcRegion: The ID of the region to which the VPC belongs.
firewallVpcCidrBlock java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property firewallVpcCidrBlock: The CIDR block of the VPC that is automatically created for the VPC firewall.
firewallVSwitchCidrBlock java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property firewallVSwitchCidrBlock: The CIDR block of the vSwitch that is automatically created for the VPC firewall.You must specify a CIDR block for the Cloud_Firewall_VSWITCH VPC that is automatically created for the VPC firewall for traffic redirection. The CIDR block does not conflict with your network plan. The subnet mask of the CIDR block must be less than or equal to 29 bits in length. The CIDR block of the vSwitch must be within the network segment of the VPC.If you do not specify a value, the CIDR block 10.219.219.216\/29 is automatically allocated.
memberUid java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property memberUid: The UID of the member that is managed by your Alibaba Cloud account.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: The ID of the vSwitch that is used to associate with the elastic network interface (ENI) required by the VPC firewall.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

cenIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cenId: The ID of the CEN instance.


firewallSwitchRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property firewallSwitch: Specifies whether to enable the VPC firewall.

Valid values: open: After you create the VPC firewall, the VPC firewall is automatically enabled. This is the default value. close: After you create the VPC firewall, the VPC firewall is disabled. You can call the ModifyVpcFirewallCenSwitchStatus operation to manually enable the VPC firewall.


firewallVpcZoneIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property firewallVpcZoneId: The ID of the zone to which the vSwitch belongs.

If your service is latency-sensitive, you can specify the same zone for the vSwitch of the firewall and the vSwitch of your business VPC to minimize latency.If you do not specify a value, a zone is automatically assigned for the vSwitch.


networkInstanceIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property networkInstanceId: The ID of the VPC for which you want to create the VPC firewall.


vpcFirewallNameRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcFirewallName: The instance name of the VPC firewall.


vpcRegionRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcRegion: The ID of the region to which the VPC belongs.


firewallVpcCidrBlockOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property firewallVpcCidrBlock: The CIDR block of the VPC that is automatically created for the VPC firewall.

You must specify a CIDR block for the Cloud_Firewall_VPC VPC that is automatically created for the VPC firewall for traffic redirection. The subnet mask of the CIDR block must be less than or equal to 28 bits in length.If you do not specify a value, the CIDR block 10.0.0.0/8 is automatically allocated.


firewallVSwitchCidrBlockOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property firewallVSwitchCidrBlock: The CIDR block of the vSwitch that is automatically created for the VPC firewall.You must specify a CIDR block for the Cloud_Firewall_VSWITCH VPC that is automatically created for the VPC firewall for traffic redirection. The CIDR block does not conflict with your network plan. The subnet mask of the CIDR block must be less than or equal to 29 bits in length. The CIDR block of the vSwitch must be within the network segment of the VPC.If you do not specify a value, the CIDR block 10.219.219.216\/29 is automatically allocated.


memberUidOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property memberUid: The UID of the member that is managed by your Alibaba Cloud account.


vSwitchIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vSwitchId: The ID of the vSwitch that is used to associate with the elastic network interface (ENI) required by the VPC firewall.


Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
getAtt No description.
setMetadata No description.

toString

public java.lang.String toString()

Returns a string representation of this construct.

synthesize

public void synthesize(ISynthesisSession session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.cloudfw.VpcFirewallCen;
VpcFirewallCen.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
ref java.lang.String No description.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
resource com.aliyun.ros.cdk.core.RosResource No description.
attrVpcFirewallId com.aliyun.ros.cdk.core.IResolvable Attribute VpcFirewallId: The instance ID of the VPC firewall.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrVpcFirewallIdRequired

public IResolvable getAttrVpcFirewallId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute VpcFirewallId: The instance ID of the VPC firewall.