All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.networkfirewall.kotlin.outputs.LoggingConfigurationLogDestinationConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkfirewall.kotlin.outputs

import com.pulumi.awsnative.networkfirewall.kotlin.enums.LoggingConfigurationLogDestinationConfigLogDestinationType
import com.pulumi.awsnative.networkfirewall.kotlin.enums.LoggingConfigurationLogDestinationConfigLogType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property logDestination A key-value pair to configure the logDestinations.
 * @property logDestinationType The type of storage destination to send these logs to. You can send logs to an Amazon S3 bucket, a CloudWatch log group, or a Firehose delivery stream.
 * @property logType The type of log to record. You can record the following types of logs from your Network Firewall stateful engine.
 * - `ALERT` - Logs for traffic that matches your stateful rules and that have an action that sends an alert. A stateful rule sends alerts for the rule actions DROP, ALERT, and REJECT. For more information, see the `StatefulRule` property.
 * - `FLOW` - Standard network traffic flow logs. The stateful rules engine records flow logs for all network traffic that it receives. Each flow log record captures the network flow for a specific standard stateless rule group.
 * - `TLS` - Logs for events that are related to TLS inspection. For more information, see [Inspecting SSL/TLS traffic with TLS inspection configurations](https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-configurations.html) in the *Network Firewall Developer Guide* .
 */
public data class LoggingConfigurationLogDestinationConfig(
    public val logDestination: Map,
    public val logDestinationType: LoggingConfigurationLogDestinationConfigLogDestinationType,
    public val logType: LoggingConfigurationLogDestinationConfigLogType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.networkfirewall.outputs.LoggingConfigurationLogDestinationConfig): LoggingConfigurationLogDestinationConfig = LoggingConfigurationLogDestinationConfig(
            logDestination = javaType.logDestination().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            logDestinationType = javaType.logDestinationType().let({ args0 ->
                com.pulumi.awsnative.networkfirewall.kotlin.enums.LoggingConfigurationLogDestinationConfigLogDestinationType.Companion.toKotlin(args0)
            }),
            logType = javaType.logType().let({ args0 ->
                com.pulumi.awsnative.networkfirewall.kotlin.enums.LoggingConfigurationLogDestinationConfigLogType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy