Class CfnVpcEndpointAssociationPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
Firewall .
You can define VPC endpoint associations only in the Availability Zones that already have a subnet mapping defined in the Firewall resource.
You can retrieve the list of Availability Zones that are available for use by calling
DescribeFirewallMetadata.
To manage firewall endpoints, first, in the Firewall specification, you specify a single VPC and one subnet for each of the Availability Zones where you want to use the firewall. Then you can define additional endpoints as VPC endpoint associations.
You can use VPC endpoint associations to expand the protections of the firewall as follows:
- Protect multiple VPCs with a single firewall - You can use the firewall to protect other VPCs, either in your account or in accounts where the firewall is shared. You can only specify Availability Zones that already have a firewall endpoint defined in the
Firewallsubnet mappings. - Define multiple firewall endpoints for a VPC in an Availability Zone - You can create additional firewall endpoints for the VPC that you have defined in the firewall, in any Availability Zone that already has an endpoint defined in the
Firewallsubnet mappings. You can create multiple VPC endpoint associations for any other VPC where you use the firewall.
You can use AWS Resource Access Manager to share a Firewall that you own with other accounts, which gives them the ability to use the firewall to create VPC endpoint associations. For information about sharing a firewall, see PutResourcePolicy in this guide and see Sharing Network Firewall resources in the AWS Network Firewall Developer Guide .
The status of the VPC endpoint association, which indicates whether it's ready to filter network traffic, is provided in the corresponding VPC endpoint association status. You can retrieve both the association and its status by calling DescribeVpcEndpointAssociation .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnVpcEndpointAssociationPropsMixin cfnVpcEndpointAssociationPropsMixin = CfnVpcEndpointAssociationPropsMixin.Builder.create(CfnVpcEndpointAssociationMixinProps.builder()
.description("description")
.firewallArn("firewallArn")
.subnetMapping(SubnetMappingProperty.builder()
.ipAddressType("ipAddressType")
.subnetId("subnetId")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcId("vpcId")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnVpcEndpointAssociationPropsMixin.static interfaceThe ID for a subnet that's used in an association with a firewall.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::NetworkFirewall::VpcEndpointAssociation.CfnVpcEndpointAssociationPropsMixin(CfnVpcEndpointAssociationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::NetworkFirewall::VpcEndpointAssociation.protectedCfnVpcEndpointAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVpcEndpointAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnVpcEndpointAssociationMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnVpcEndpointAssociationPropsMixin
protected CfnVpcEndpointAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVpcEndpointAssociationPropsMixin
protected CfnVpcEndpointAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVpcEndpointAssociationPropsMixin
@Stability(Stable) public CfnVpcEndpointAssociationPropsMixin(@NotNull CfnVpcEndpointAssociationMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::NetworkFirewall::VpcEndpointAssociation.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnVpcEndpointAssociationPropsMixin
@Stability(Stable) public CfnVpcEndpointAssociationPropsMixin(@NotNull CfnVpcEndpointAssociationMixinProps props) Create a mixin to apply properties toAWS::NetworkFirewall::VpcEndpointAssociation.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-