1. Packages
  2. AWS Classic
  3. API Docs
  4. networkfirewall
  5. LoggingConfiguration

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.networkfirewall.LoggingConfiguration

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides an AWS Network Firewall Logging Configuration Resource

    Example Usage

    Logging to S3

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkfirewall.LoggingConfiguration("example", {
        firewallArn: exampleAwsNetworkfirewallFirewall.arn,
        loggingConfiguration: {
            logDestinationConfigs: [{
                logDestination: {
                    bucketName: exampleAwsS3Bucket.bucket,
                    prefix: "/example",
                },
                logDestinationType: "S3",
                logType: "FLOW",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkfirewall.LoggingConfiguration("example",
        firewall_arn=example_aws_networkfirewall_firewall["arn"],
        logging_configuration={
            "logDestinationConfigs": [{
                "logDestination": {
                    "bucketName": example_aws_s3_bucket["bucket"],
                    "prefix": "/example",
                },
                "logDestinationType": "S3",
                "logType": "FLOW",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkfirewall.NewLoggingConfiguration(ctx, "example", &networkfirewall.LoggingConfigurationArgs{
    			FirewallArn: pulumi.Any(exampleAwsNetworkfirewallFirewall.Arn),
    			LoggingConfiguration: &networkfirewall.LoggingConfigurationLoggingConfigurationArgs{
    				LogDestinationConfigs: networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArray{
    					&networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs{
    						LogDestination: pulumi.StringMap{
    							"bucketName": pulumi.Any(exampleAwsS3Bucket.Bucket),
    							"prefix":     pulumi.String("/example"),
    						},
    						LogDestinationType: pulumi.String("S3"),
    						LogType:            pulumi.String("FLOW"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.NetworkFirewall.LoggingConfiguration("example", new()
        {
            FirewallArn = exampleAwsNetworkfirewallFirewall.Arn,
            LoggingConfig = new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationArgs
            {
                LogDestinationConfigs = new[]
                {
                    new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs
                    {
                        LogDestination = 
                        {
                            { "bucketName", exampleAwsS3Bucket.Bucket },
                            { "prefix", "/example" },
                        },
                        LogDestinationType = "S3",
                        LogType = "FLOW",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkfirewall.LoggingConfiguration;
    import com.pulumi.aws.networkfirewall.LoggingConfigurationArgs;
    import com.pulumi.aws.networkfirewall.inputs.LoggingConfigurationLoggingConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new LoggingConfiguration("example", LoggingConfigurationArgs.builder()
                .firewallArn(exampleAwsNetworkfirewallFirewall.arn())
                .loggingConfiguration(LoggingConfigurationLoggingConfigurationArgs.builder()
                    .logDestinationConfigs(LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs.builder()
                        .logDestination(Map.ofEntries(
                            Map.entry("bucketName", exampleAwsS3Bucket.bucket()),
                            Map.entry("prefix", "/example")
                        ))
                        .logDestinationType("S3")
                        .logType("FLOW")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkfirewall:LoggingConfiguration
        properties:
          firewallArn: ${exampleAwsNetworkfirewallFirewall.arn}
          loggingConfiguration:
            logDestinationConfigs:
              - logDestination:
                  bucketName: ${exampleAwsS3Bucket.bucket}
                  prefix: /example
                logDestinationType: S3
                logType: FLOW
    

    Logging to CloudWatch

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkfirewall.LoggingConfiguration("example", {
        firewallArn: exampleAwsNetworkfirewallFirewall.arn,
        loggingConfiguration: {
            logDestinationConfigs: [{
                logDestination: {
                    logGroup: exampleAwsCloudwatchLogGroup.name,
                },
                logDestinationType: "CloudWatchLogs",
                logType: "ALERT",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkfirewall.LoggingConfiguration("example",
        firewall_arn=example_aws_networkfirewall_firewall["arn"],
        logging_configuration={
            "logDestinationConfigs": [{
                "logDestination": {
                    "logGroup": example_aws_cloudwatch_log_group["name"],
                },
                "logDestinationType": "CloudWatchLogs",
                "logType": "ALERT",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkfirewall.NewLoggingConfiguration(ctx, "example", &networkfirewall.LoggingConfigurationArgs{
    			FirewallArn: pulumi.Any(exampleAwsNetworkfirewallFirewall.Arn),
    			LoggingConfiguration: &networkfirewall.LoggingConfigurationLoggingConfigurationArgs{
    				LogDestinationConfigs: networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArray{
    					&networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs{
    						LogDestination: pulumi.StringMap{
    							"logGroup": pulumi.Any(exampleAwsCloudwatchLogGroup.Name),
    						},
    						LogDestinationType: pulumi.String("CloudWatchLogs"),
    						LogType:            pulumi.String("ALERT"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.NetworkFirewall.LoggingConfiguration("example", new()
        {
            FirewallArn = exampleAwsNetworkfirewallFirewall.Arn,
            LoggingConfig = new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationArgs
            {
                LogDestinationConfigs = new[]
                {
                    new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs
                    {
                        LogDestination = 
                        {
                            { "logGroup", exampleAwsCloudwatchLogGroup.Name },
                        },
                        LogDestinationType = "CloudWatchLogs",
                        LogType = "ALERT",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkfirewall.LoggingConfiguration;
    import com.pulumi.aws.networkfirewall.LoggingConfigurationArgs;
    import com.pulumi.aws.networkfirewall.inputs.LoggingConfigurationLoggingConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new LoggingConfiguration("example", LoggingConfigurationArgs.builder()
                .firewallArn(exampleAwsNetworkfirewallFirewall.arn())
                .loggingConfiguration(LoggingConfigurationLoggingConfigurationArgs.builder()
                    .logDestinationConfigs(LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs.builder()
                        .logDestination(Map.of("logGroup", exampleAwsCloudwatchLogGroup.name()))
                        .logDestinationType("CloudWatchLogs")
                        .logType("ALERT")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkfirewall:LoggingConfiguration
        properties:
          firewallArn: ${exampleAwsNetworkfirewallFirewall.arn}
          loggingConfiguration:
            logDestinationConfigs:
              - logDestination:
                  logGroup: ${exampleAwsCloudwatchLogGroup.name}
                logDestinationType: CloudWatchLogs
                logType: ALERT
    

    Logging to Kinesis Data Firehose

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkfirewall.LoggingConfiguration("example", {
        firewallArn: exampleAwsNetworkfirewallFirewall.arn,
        loggingConfiguration: {
            logDestinationConfigs: [{
                logDestination: {
                    deliveryStream: exampleAwsKinesisFirehoseDeliveryStream.name,
                },
                logDestinationType: "KinesisDataFirehose",
                logType: "ALERT",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkfirewall.LoggingConfiguration("example",
        firewall_arn=example_aws_networkfirewall_firewall["arn"],
        logging_configuration={
            "logDestinationConfigs": [{
                "logDestination": {
                    "deliveryStream": example_aws_kinesis_firehose_delivery_stream["name"],
                },
                "logDestinationType": "KinesisDataFirehose",
                "logType": "ALERT",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkfirewall.NewLoggingConfiguration(ctx, "example", &networkfirewall.LoggingConfigurationArgs{
    			FirewallArn: pulumi.Any(exampleAwsNetworkfirewallFirewall.Arn),
    			LoggingConfiguration: &networkfirewall.LoggingConfigurationLoggingConfigurationArgs{
    				LogDestinationConfigs: networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArray{
    					&networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs{
    						LogDestination: pulumi.StringMap{
    							"deliveryStream": pulumi.Any(exampleAwsKinesisFirehoseDeliveryStream.Name),
    						},
    						LogDestinationType: pulumi.String("KinesisDataFirehose"),
    						LogType:            pulumi.String("ALERT"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.NetworkFirewall.LoggingConfiguration("example", new()
        {
            FirewallArn = exampleAwsNetworkfirewallFirewall.Arn,
            LoggingConfig = new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationArgs
            {
                LogDestinationConfigs = new[]
                {
                    new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs
                    {
                        LogDestination = 
                        {
                            { "deliveryStream", exampleAwsKinesisFirehoseDeliveryStream.Name },
                        },
                        LogDestinationType = "KinesisDataFirehose",
                        LogType = "ALERT",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkfirewall.LoggingConfiguration;
    import com.pulumi.aws.networkfirewall.LoggingConfigurationArgs;
    import com.pulumi.aws.networkfirewall.inputs.LoggingConfigurationLoggingConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new LoggingConfiguration("example", LoggingConfigurationArgs.builder()
                .firewallArn(exampleAwsNetworkfirewallFirewall.arn())
                .loggingConfiguration(LoggingConfigurationLoggingConfigurationArgs.builder()
                    .logDestinationConfigs(LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs.builder()
                        .logDestination(Map.of("deliveryStream", exampleAwsKinesisFirehoseDeliveryStream.name()))
                        .logDestinationType("KinesisDataFirehose")
                        .logType("ALERT")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkfirewall:LoggingConfiguration
        properties:
          firewallArn: ${exampleAwsNetworkfirewallFirewall.arn}
          loggingConfiguration:
            logDestinationConfigs:
              - logDestination:
                  deliveryStream: ${exampleAwsKinesisFirehoseDeliveryStream.name}
                logDestinationType: KinesisDataFirehose
                logType: ALERT
    

    Create LoggingConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoggingConfiguration(name: string, args: LoggingConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def LoggingConfiguration(resource_name: str,
                             args: LoggingConfigurationArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoggingConfiguration(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             firewall_arn: Optional[str] = None,
                             logging_configuration: Optional[LoggingConfigurationLoggingConfigurationArgs] = None)
    func NewLoggingConfiguration(ctx *Context, name string, args LoggingConfigurationArgs, opts ...ResourceOption) (*LoggingConfiguration, error)
    public LoggingConfiguration(string name, LoggingConfigurationArgs args, CustomResourceOptions? opts = null)
    public LoggingConfiguration(String name, LoggingConfigurationArgs args)
    public LoggingConfiguration(String name, LoggingConfigurationArgs args, CustomResourceOptions options)
    
    type: aws:networkfirewall:LoggingConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var awsLoggingConfigurationResource = new Aws.NetworkFirewall.LoggingConfiguration("awsLoggingConfigurationResource", new()
    {
        FirewallArn = "string",
        LoggingConfig = new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationArgs
        {
            LogDestinationConfigs = new[]
            {
                new Aws.NetworkFirewall.Inputs.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs
                {
                    LogDestination = 
                    {
                        { "string", "string" },
                    },
                    LogDestinationType = "string",
                    LogType = "string",
                },
            },
        },
    });
    
    example, err := networkfirewall.NewLoggingConfiguration(ctx, "awsLoggingConfigurationResource", &networkfirewall.LoggingConfigurationArgs{
    	FirewallArn: pulumi.String("string"),
    	LoggingConfiguration: &networkfirewall.LoggingConfigurationLoggingConfigurationArgs{
    		LogDestinationConfigs: networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArray{
    			&networkfirewall.LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs{
    				LogDestination: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				LogDestinationType: pulumi.String("string"),
    				LogType:            pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var awsLoggingConfigurationResource = new LoggingConfiguration("awsLoggingConfigurationResource", LoggingConfigurationArgs.builder()
        .firewallArn("string")
        .loggingConfiguration(LoggingConfigurationLoggingConfigurationArgs.builder()
            .logDestinationConfigs(LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs.builder()
                .logDestination(Map.of("string", "string"))
                .logDestinationType("string")
                .logType("string")
                .build())
            .build())
        .build());
    
    aws_logging_configuration_resource = aws.networkfirewall.LoggingConfiguration("awsLoggingConfigurationResource",
        firewall_arn="string",
        logging_configuration={
            "logDestinationConfigs": [{
                "logDestination": {
                    "string": "string",
                },
                "logDestinationType": "string",
                "logType": "string",
            }],
        })
    
    const awsLoggingConfigurationResource = new aws.networkfirewall.LoggingConfiguration("awsLoggingConfigurationResource", {
        firewallArn: "string",
        loggingConfiguration: {
            logDestinationConfigs: [{
                logDestination: {
                    string: "string",
                },
                logDestinationType: "string",
                logType: "string",
            }],
        },
    });
    
    type: aws:networkfirewall:LoggingConfiguration
    properties:
        firewallArn: string
        loggingConfiguration:
            logDestinationConfigs:
                - logDestination:
                    string: string
                  logDestinationType: string
                  logType: string
    

    LoggingConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LoggingConfiguration resource accepts the following input properties:

    FirewallArn string
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    LoggingConfig LoggingConfigurationLoggingConfiguration
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    FirewallArn string
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    LoggingConfiguration LoggingConfigurationLoggingConfigurationArgs
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewallArn String
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    loggingConfiguration LoggingConfigurationLoggingConfiguration
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewallArn string
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    loggingConfiguration LoggingConfigurationLoggingConfiguration
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewall_arn str
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    logging_configuration LoggingConfigurationLoggingConfigurationArgs
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewallArn String
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    loggingConfiguration Property Map
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoggingConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LoggingConfiguration Resource

    Get an existing LoggingConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LoggingConfigurationState, opts?: CustomResourceOptions): LoggingConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            firewall_arn: Optional[str] = None,
            logging_configuration: Optional[LoggingConfigurationLoggingConfigurationArgs] = None) -> LoggingConfiguration
    func GetLoggingConfiguration(ctx *Context, name string, id IDInput, state *LoggingConfigurationState, opts ...ResourceOption) (*LoggingConfiguration, error)
    public static LoggingConfiguration Get(string name, Input<string> id, LoggingConfigurationState? state, CustomResourceOptions? opts = null)
    public static LoggingConfiguration get(String name, Output<String> id, LoggingConfigurationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    FirewallArn string
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    LoggingConfig LoggingConfigurationLoggingConfiguration
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    FirewallArn string
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    LoggingConfiguration LoggingConfigurationLoggingConfigurationArgs
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewallArn String
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    loggingConfiguration LoggingConfigurationLoggingConfiguration
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewallArn string
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    loggingConfiguration LoggingConfigurationLoggingConfiguration
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewall_arn str
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    logging_configuration LoggingConfigurationLoggingConfigurationArgs
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.
    firewallArn String
    The Amazon Resource Name (ARN) of the Network Firewall firewall.
    loggingConfiguration Property Map
    A configuration block describing how AWS Network Firewall performs logging for a firewall. See Logging Configuration below for details.

    Supporting Types

    LoggingConfigurationLoggingConfiguration, LoggingConfigurationLoggingConfigurationArgs

    LogDestinationConfigs List<LoggingConfigurationLoggingConfigurationLogDestinationConfig>
    Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs.
    LogDestinationConfigs []LoggingConfigurationLoggingConfigurationLogDestinationConfig
    Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs.
    logDestinationConfigs List<LoggingConfigurationLoggingConfigurationLogDestinationConfig>
    Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs.
    logDestinationConfigs LoggingConfigurationLoggingConfigurationLogDestinationConfig[]
    Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs.
    log_destination_configs Sequence[LoggingConfigurationLoggingConfigurationLogDestinationConfig]
    Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs.
    logDestinationConfigs List<Property Map>
    Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for FLOW logs and one for ALERT logs.

    LoggingConfigurationLoggingConfigurationLogDestinationConfig, LoggingConfigurationLoggingConfigurationLogDestinationConfigArgs

    LogDestination Dictionary<string, string>
    A map describing the logging destination for the chosen log_destination_type.

    • For an Amazon S3 bucket, specify the key bucketName with the name of the bucket and optionally specify the key prefix with a path.
    • For a CloudWatch log group, specify the key logGroup with the name of the CloudWatch log group.
    • For a Kinesis Data Firehose delivery stream, specify the key deliveryStream with the name of the delivery stream.
    LogDestinationType string
    The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose.
    LogType string
    The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs.
    LogDestination map[string]string
    A map describing the logging destination for the chosen log_destination_type.

    • For an Amazon S3 bucket, specify the key bucketName with the name of the bucket and optionally specify the key prefix with a path.
    • For a CloudWatch log group, specify the key logGroup with the name of the CloudWatch log group.
    • For a Kinesis Data Firehose delivery stream, specify the key deliveryStream with the name of the delivery stream.
    LogDestinationType string
    The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose.
    LogType string
    The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs.
    logDestination Map<String,String>
    A map describing the logging destination for the chosen log_destination_type.

    • For an Amazon S3 bucket, specify the key bucketName with the name of the bucket and optionally specify the key prefix with a path.
    • For a CloudWatch log group, specify the key logGroup with the name of the CloudWatch log group.
    • For a Kinesis Data Firehose delivery stream, specify the key deliveryStream with the name of the delivery stream.
    logDestinationType String
    The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose.
    logType String
    The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs.
    logDestination {[key: string]: string}
    A map describing the logging destination for the chosen log_destination_type.

    • For an Amazon S3 bucket, specify the key bucketName with the name of the bucket and optionally specify the key prefix with a path.
    • For a CloudWatch log group, specify the key logGroup with the name of the CloudWatch log group.
    • For a Kinesis Data Firehose delivery stream, specify the key deliveryStream with the name of the delivery stream.
    logDestinationType string
    The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose.
    logType string
    The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs.
    log_destination Mapping[str, str]
    A map describing the logging destination for the chosen log_destination_type.

    • For an Amazon S3 bucket, specify the key bucketName with the name of the bucket and optionally specify the key prefix with a path.
    • For a CloudWatch log group, specify the key logGroup with the name of the CloudWatch log group.
    • For a Kinesis Data Firehose delivery stream, specify the key deliveryStream with the name of the delivery stream.
    log_destination_type str
    The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose.
    log_type str
    The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs.
    logDestination Map<String>
    A map describing the logging destination for the chosen log_destination_type.

    • For an Amazon S3 bucket, specify the key bucketName with the name of the bucket and optionally specify the key prefix with a path.
    • For a CloudWatch log group, specify the key logGroup with the name of the CloudWatch log group.
    • For a Kinesis Data Firehose delivery stream, specify the key deliveryStream with the name of the delivery stream.
    logDestinationType String
    The location to send logs to. Valid values: S3, CloudWatchLogs, KinesisDataFirehose.
    logType String
    The type of log to send. Valid values: ALERT or FLOW. Alert logs report traffic that matches a StatefulRule with an action setting that sends a log message. Flow logs are standard network traffic flow logs.

    Import

    Using pulumi import, import Network Firewall Logging Configurations using the firewall_arn. For example:

    $ pulumi import aws:networkfirewall/loggingConfiguration:LoggingConfiguration example arn:aws:network-firewall:us-west-1:123456789012:firewall/example
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi