Class CfnFirewall
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IFirewallRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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")
// the properties below are optional
.availabilityZoneChangeProtection(false)
.availabilityZoneMappings(List.of(AvailabilityZoneMappingProperty.builder()
.availabilityZone("availabilityZone")
.build()))
.deleteProtection(false)
.description("description")
.enabledAnalysisTypes(List.of("enabledAnalysisTypes"))
.firewallPolicyChangeProtection(false)
.subnetChangeProtection(false)
.subnetMappings(List.of(SubnetMappingProperty.builder()
.subnetId("subnetId")
// the properties below are optional
.ipAddressType("ipAddressType")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.transitGatewayId("transitGatewayId")
.vpcId("vpcId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall.static 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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.networkfirewall.IFirewallRef
IFirewallRef.Jsii$Default, IFirewallRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFirewall(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFirewall(software.amazon.jsii.JsiiObjectRef objRef) CfnFirewall(software.constructs.Construct scope, String id, CfnFirewallProps props) Create a newAWS::NetworkFirewall::Firewall. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForFirewall(IFirewallRef resource) The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall.The Amazon Resource Name (ARN) of the firewall.The name of the firewallresource.The unique identifier of the transit gateway attachment associated with this firewall.A setting indicating whether the firewall is protected against changes to its Availability Zone configuration.The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall.A flag indicating whether it is possible to delete the firewall.A description of the firewall.An optional setting indicating the specific traffic analysis types to enable on 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 reference to a Firewall resource.A setting indicating whether the firewall is protected against changes to the subnet associations.The primary public subnets that Network Firewall is using for the firewall.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.The unique identifier of the transit gateway associated with this firewall.getVpcId()The unique identifier of the VPC where the firewall is in use.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnFirewall.renderProperties(Map<String, Object> props) voidA setting indicating whether the firewall is protected against changes to its Availability Zone configuration.voidA setting indicating whether the firewall is protected against changes to its Availability Zone configuration.voidsetAvailabilityZoneMappings(List<Object> value) The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall.voidThe Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall.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.voidsetEnabledAnalysisTypes(List<String> value) An optional setting indicating the specific traffic analysis types to enable on 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 primary public subnets that Network Firewall is using for the firewall.voidsetSubnetMappings(IResolvable value) The primary public subnets that Network Firewall is using for the firewall.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.voidsetTransitGatewayId(String value) The unique identifier of the transit gateway associated with this firewall.voidThe unique identifier of the VPC where the firewall is in use.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnFirewallProps props) Create a newAWS::NetworkFirewall::Firewall.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForFirewall
- Parameters:
resource- This parameter is required.
-
isCfnFirewall
Checks whether the given object is a CfnFirewall.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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 the firewall. -
getAttrFirewallId
The name of the firewallresource. -
getAttrTransitGatewayAttachmentId
The unique identifier of the transit gateway attachment associated with this firewall.This field is only present for transit gateway-attached firewalls.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFirewallRef
A reference to a Firewall resource.- Specified by:
getFirewallRefin interfaceIFirewallRef
-
getTags
Tag Manager which manages the tags for this resource. -
getFirewallName
The descriptive name of the firewall. -
setFirewallName
The descriptive name of the firewall. -
getFirewallPolicyArn
The Amazon Resource Name (ARN) of the firewall policy. -
setFirewallPolicyArn
The Amazon Resource Name (ARN) of the firewall policy. -
getAvailabilityZoneChangeProtection
A setting indicating whether the firewall is protected against changes to its Availability Zone configuration.Returns union: either
BooleanorIResolvable -
setAvailabilityZoneChangeProtection
A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. -
setAvailabilityZoneChangeProtection
A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. -
getAvailabilityZoneMappings
The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFirewall.AvailabilityZoneMappingProperty> -
setAvailabilityZoneMappings
The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. -
setAvailabilityZoneMappings
The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. -
getDeleteProtection
A flag indicating whether it is possible to delete the firewall.Returns union: either
BooleanorIResolvable -
setDeleteProtection
A flag indicating whether it is possible to delete the firewall. -
setDeleteProtection
A flag indicating whether it is possible to delete the firewall. -
getDescription
A description of the firewall. -
setDescription
A description of the firewall. -
getEnabledAnalysisTypes
An optional setting indicating the specific traffic analysis types to enable on the firewall. -
setEnabledAnalysisTypes
An optional setting indicating the specific traffic analysis types to enable on the firewall. -
getFirewallPolicyChangeProtection
A setting indicating whether the firewall is protected against a change to the firewall policy association.Returns union: either
BooleanorIResolvable -
setFirewallPolicyChangeProtection
A setting indicating whether the firewall is protected against a change to the firewall policy association. -
setFirewallPolicyChangeProtection
A setting indicating whether the firewall is protected against a change to the firewall policy association. -
getSubnetChangeProtection
A setting indicating whether the firewall is protected against changes to the subnet associations.Returns union: either
BooleanorIResolvable -
setSubnetChangeProtection
A setting indicating whether the firewall is protected against changes to the subnet associations. -
setSubnetChangeProtection
A setting indicating whether the firewall is protected against changes to the subnet associations. -
getSubnetMappings
The primary public subnets that Network Firewall is using for the firewall.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFirewall.SubnetMappingProperty> -
setSubnetMappings
The primary public subnets that Network Firewall is using for the firewall. -
setSubnetMappings
The primary public subnets that Network Firewall is using for the firewall. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource. -
getTransitGatewayId
The unique identifier of the transit gateway associated with this firewall. -
setTransitGatewayId
The unique identifier of the transit gateway associated with this firewall. -
getVpcId
The unique identifier of the VPC where the firewall is in use. -
setVpcId
The unique identifier of the VPC where the firewall is in use.
-