Class CfnFirewall
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::NetworkFirewall::Firewall.
Use the Firewall to provide stateful, managed, network firewall and intrusion detection and prevention filtering for your VPCs in Amazon VPC .
The firewall defines the configuration settings for an AWS Network Firewall firewall. The settings include the firewall policy, the subnets in your VPC to use for the firewall endpoints, and any tags that are attached to the firewall AWS resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;
CfnFirewall cfnFirewall = CfnFirewall.Builder.create(this, "MyCfnFirewall")
.firewallName("firewallName")
.firewallPolicyArn("firewallPolicyArn")
.subnetMappings(List.of(SubnetMappingProperty.builder()
.subnetId("subnetId")
// the properties below are optional
.ipAddressType("ipAddressType")
.build()))
.vpcId("vpcId")
// the properties below are optional
.deleteProtection(false)
.description("description")
.firewallPolicyChangeProtection(false)
.subnetChangeProtection(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFirewall.static interfaceThe ID for a subnet that you want to associate with the firewall.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnFirewall(Construct scope, String id, CfnFirewallProps props) Create a newAWS::NetworkFirewall::Firewall.protectedCfnFirewall(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFirewall(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall.The Amazon Resource Name (ARN) of theFirewall.The name of theFirewallresource.A flag indicating whether it is possible to delete the firewall.A description of the firewall.The descriptive name of the firewall.The Amazon Resource Name (ARN) of the firewall policy.A setting indicating whether the firewall is protected against a change to the firewall policy association.A setting indicating whether the firewall is protected against changes to the subnet associations.The public subnets that Network Firewall is using for the firewall.getTags()An array of key-value pairs to apply to this resource.getVpcId()The unique identifier of the VPC where the firewall is in use.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDeleteProtection(Boolean value) A flag indicating whether it is possible to delete the firewall.voidsetDeleteProtection(IResolvable value) A flag indicating whether it is possible to delete the firewall.voidsetDescription(String value) A description of the firewall.voidsetFirewallName(String value) The descriptive name of the firewall.voidsetFirewallPolicyArn(String value) The Amazon Resource Name (ARN) of the firewall policy.voidA setting indicating whether the firewall is protected against a change to the firewall policy association.voidA setting indicating whether the firewall is protected against a change to the firewall policy association.voidsetSubnetChangeProtection(Boolean value) A setting indicating whether the firewall is protected against changes to the subnet associations.voidA setting indicating whether the firewall is protected against changes to the subnet associations.voidsetSubnetMappings(List<Object> value) The public subnets that Network Firewall is using for the firewall.voidsetSubnetMappings(IResolvable value) The public subnets that Network Firewall is using for the firewall.voidThe unique identifier of the VPC where the firewall is in use.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFirewall
protected CfnFirewall(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFirewall
protected CfnFirewall(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFirewall
@Stability(Stable) public CfnFirewall(@NotNull Construct scope, @NotNull String id, @NotNull CfnFirewallProps props) Create a newAWS::NetworkFirewall::Firewall.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrEndpointIds
The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall.The subnets are not listed in any particular order. For example:
["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"]. -
getAttrFirewallArn
The Amazon Resource Name (ARN) of theFirewall. -
getAttrFirewallId
The name of theFirewallresource. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getFirewallName
The descriptive name of the firewall.You can't change the name of a firewall after you create it.
-
setFirewallName
The descriptive name of the firewall.You can't change the name of a firewall after you create it.
-
getFirewallPolicyArn
The Amazon Resource Name (ARN) of the firewall policy.The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
-
setFirewallPolicyArn
The Amazon Resource Name (ARN) of the firewall policy.The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
-
getSubnetMappings
The public subnets that Network Firewall is using for the firewall.Each subnet must belong to a different Availability Zone.
-
setSubnetMappings
The public subnets that Network Firewall is using for the firewall.Each subnet must belong to a different Availability Zone.
-
setSubnetMappings
The public subnets that Network Firewall is using for the firewall.Each subnet must belong to a different Availability Zone.
-
getVpcId
The unique identifier of the VPC where the firewall is in use.You can't change the VPC of a firewall after you create the firewall.
-
setVpcId
The unique identifier of the VPC where the firewall is in use.You can't change the VPC of a firewall after you create the firewall.
-
getDeleteProtection
A flag indicating whether it is possible to delete the firewall.A setting of
TRUEindicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag toTRUE. -
setDeleteProtection
A flag indicating whether it is possible to delete the firewall.A setting of
TRUEindicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag toTRUE. -
setDeleteProtection
A flag indicating whether it is possible to delete the firewall.A setting of
TRUEindicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag toTRUE. -
getDescription
A description of the firewall. -
setDescription
A description of the firewall. -
getFirewallPolicyChangeProtection
A setting indicating whether the firewall is protected against a change to the firewall policy association.Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to
TRUE. -
setFirewallPolicyChangeProtection
A setting indicating whether the firewall is protected against a change to the firewall policy association.Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to
TRUE. -
setFirewallPolicyChangeProtection
A setting indicating whether the firewall is protected against a change to the firewall policy association.Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to
TRUE. -
getSubnetChangeProtection
A setting indicating whether the firewall is protected against changes to the subnet associations.Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to
TRUE. -
setSubnetChangeProtection
A setting indicating whether the firewall is protected against changes to the subnet associations.Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to
TRUE. -
setSubnetChangeProtection
A setting indicating whether the firewall is protected against changes to the subnet associations.Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to
TRUE.
-