Class CfnFirewall
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.networkfirewall.CfnFirewall
- All Implemented Interfaces:
IInspectable,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:11.349Z")
@Stability(Stable)
public class CfnFirewall
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested 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) -
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()Tag Manager which manages the tags for this resource.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.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.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, 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.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) - 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
-
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 theFirewall. -
getAttrFirewallId
The name of theFirewallresource. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
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. -
getSubnetMappings
The public subnets that Network Firewall is using for the firewall. -
setSubnetMappings
The public subnets that Network Firewall is using for the firewall. -
setSubnetMappings
The public subnets that Network Firewall is using for the 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. -
getDeleteProtection
A flag indicating whether it is possible to delete the firewall. -
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. -
getFirewallPolicyChangeProtection
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. -
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. -
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. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-