class CfnLoggingConfigurationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.NetworkFirewall.CfnLoggingConfigurationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsnetworkfirewall#CfnLoggingConfigurationPropsMixin |
Java | software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.CfnLoggingConfigurationPropsMixin |
Python | aws_cdk.cfn_property_mixins.aws_networkfirewall.CfnLoggingConfigurationPropsMixin |
TypeScript | @aws-cdk/cfn-property-mixins » aws_networkfirewall » CfnLoggingConfigurationPropsMixin |
Implements
IMixin
Extends
Mixin
Use the logging configuration to define the destinations and logging options for an firewall.
You must change the logging configuration by changing one LogDestinationConfig setting at a time in your LogDestinationConfigs .
You can make only one of the following changes to your logging configuration resource:
- Create a new log destination object by adding a single
LogDestinationConfigarray element toLogDestinationConfigs. - Delete a log destination object by removing a single
LogDestinationConfigarray element fromLogDestinationConfigs. - Change the
LogDestinationsetting in a singleLogDestinationConfigarray element.
You can't change the LogDestinationType or LogType in a LogDestinationConfig . To change these settings, delete the existing LogDestinationConfig object and create a new one, in two separate modifications.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from '@aws-cdk/cfn-property-mixins';
import * as cdk from 'aws-cdk-lib';
declare const mergeStrategy: cdk.IMergeStrategy;
const cfnLoggingConfigurationPropsMixin = new networkfirewall.CfnLoggingConfigurationPropsMixin({
enableMonitoringDashboard: false,
firewallArn: 'firewallArn',
firewallName: 'firewallName',
loggingConfiguration: {
logDestinationConfigs: [{
logDestination: {
logDestinationKey: 'logDestination',
},
logDestinationType: 'logDestinationType',
logType: 'logType',
}],
},
}, /* all optional props */ {
strategy: mergeStrategy,
});
Initializer
new CfnLoggingConfigurationPropsMixin(props: CfnLoggingConfigurationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Logging Configuration Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::NetworkFirewall::LoggingConfiguration.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | IMerge | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
IMerge
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): void
Parameters
- construct
IConstruct
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