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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnFirewall
.static interface
The 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnFirewall
(Construct scope, String id, CfnFirewallProps props) Create a newAWS::NetworkFirewall::Firewall
.protected
CfnFirewall
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFirewall
(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 theFirewall
resource.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDeleteProtection
(Boolean value) A flag indicating whether it is possible to delete the firewall.void
setDeleteProtection
(IResolvable value) A flag indicating whether it is possible to delete the firewall.void
setDescription
(String value) A description of the firewall.void
setFirewallName
(String value) The descriptive name of the firewall.void
setFirewallPolicyArn
(String value) The Amazon Resource Name (ARN) of the firewall policy.void
A setting indicating whether the firewall is protected against a change to the firewall policy association.void
A setting indicating whether the firewall is protected against a change to the firewall policy association.void
setSubnetChangeProtection
(Boolean value) A setting indicating whether the firewall is protected against changes to the subnet associations.void
A setting indicating whether the firewall is protected against changes to the subnet associations.void
setSubnetMappings
(List<Object> value) The public subnets that Network Firewall is using for the firewall.void
setSubnetMappings
(IResolvable value) The public subnets that Network Firewall is using for the firewall.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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 theFirewall
resource. -
getCfnProperties
- Overrides:
getCfnProperties
in 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
TRUE
indicates 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
TRUE
indicates 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
TRUE
indicates 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
.
-