@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:37.343Z") @Stability(value=Stable) public class CfnLoggingConfiguration extends CfnResource implements IInspectable
Use the LoggingConfiguration 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 LoggingConfiguration resource:
LogDestinationConfig array element to LogDestinationConfigs .LogDestinationConfig array element from LogDestinationConfigs .LogDestination setting in a single LogDestinationConfig array 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 software.amazon.awscdk.services.networkfirewall.*;
CfnLoggingConfiguration cfnLoggingConfiguration = CfnLoggingConfiguration.Builder.create(this, "MyCfnLoggingConfiguration")
.firewallArn("firewallArn")
.loggingConfiguration(LoggingConfigurationProperty.builder()
.logDestinationConfigs(List.of(LogDestinationConfigProperty.builder()
.logDestination(Map.of(
"logDestinationKey", "logDestination"))
.logDestinationType("logDestinationType")
.logType("logType")
.build()))
.build())
// the properties below are optional
.firewallName("firewallName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnLoggingConfiguration.Builder
A fluent builder for
CfnLoggingConfiguration. |
static interface |
CfnLoggingConfiguration.LogDestinationConfigProperty
Defines where AWS Network Firewall sends logs for the firewall for one log type.
|
static interface |
CfnLoggingConfiguration.LoggingConfigurationProperty
Defines how AWS Network Firewall performs logging for a `Firewall` .
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLoggingConfiguration(Construct scope,
String id,
CfnLoggingConfigurationProps props)
Create a new `AWS::NetworkFirewall::LoggingConfiguration`.
|
protected |
CfnLoggingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLoggingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getFirewallArn()
The Amazon Resource Name (ARN) of the `Firewall` that the logging configuration is associated with.
|
String |
getFirewallName()
The name of the firewall that the logging configuration is associated with.
|
Object |
getLoggingConfiguration()
Defines how AWS Network Firewall performs logging for a `Firewall` .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setFirewallArn(String value)
The Amazon Resource Name (ARN) of the `Firewall` that the logging configuration is associated with.
|
void |
setFirewallName(String value)
The name of the firewall that the logging configuration is associated with.
|
void |
setLoggingConfiguration(CfnLoggingConfiguration.LoggingConfigurationProperty value)
Defines how AWS Network Firewall performs logging for a `Firewall` .
|
void |
setLoggingConfiguration(IResolvable value)
Defines how AWS Network Firewall performs logging for a `Firewall` .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLoggingConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLoggingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLoggingConfiguration(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnLoggingConfigurationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getFirewallArn()
You can't change the firewall specification after you create the logging configuration.
@Stability(value=Stable)
public void setFirewallArn(@NotNull
String value)
You can't change the firewall specification after you create the logging configuration.
@Stability(value=Stable) @NotNull public Object getLoggingConfiguration()
@Stability(value=Stable)
public void setLoggingConfiguration(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setLoggingConfiguration(@NotNull
CfnLoggingConfiguration.LoggingConfigurationProperty value)
@Stability(value=Stable) @Nullable public String getFirewallName()
You can't change the firewall specification after you create the logging configuration.
@Stability(value=Stable)
public void setFirewallName(@Nullable
String value)
You can't change the firewall specification after you create the logging configuration.
Copyright © 2022. All rights reserved.