class CfnVpcEndpointAssociationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.NetworkFirewall.Mixins.CfnVpcEndpointAssociationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsnetworkfirewall/mixins#CfnVpcEndpointAssociationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.networkfirewall.mixins.CfnVpcEndpointAssociationPropsMixin |
Python | aws_cdk.mixins_preview.aws_networkfirewall.mixins.CfnVpcEndpointAssociationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_networkfirewall » mixins » CfnVpcEndpointAssociationPropsMixin |
Implements
IMixin
Extends
Mixin
A VPC endpoint association defines a single subnet to use for a firewall endpoint for a 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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as networkfirewall_mixins } from '@aws-cdk/mixins-preview/aws-networkfirewall';
const cfnVpcEndpointAssociationPropsMixin = new networkfirewall_mixins.CfnVpcEndpointAssociationPropsMixin({
description: 'description',
firewallArn: 'firewallArn',
subnetMapping: {
ipAddressType: 'ipAddressType',
subnetId: 'subnetId',
},
tags: [{
key: 'key',
value: 'value',
}],
vpcId: 'vpcId',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnVpcEndpointAssociationPropsMixin(props: CfnVpcEndpointAssociationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Vpc Endpoint Association Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::NetworkFirewall::VpcEndpointAssociation.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript