published on Wednesday, Jul 22, 2026 by Pulumi
published on Wednesday, Jul 22, 2026 by Pulumi
Resource for NGFW log profile manipulation.
Admin Permission Type
Firewall
Schema Overview
The log profile resource supports two schemas for configuring log delivery:
| V1 Schema | V2 Schema | |
|---|---|---|
| Block | logDestination | logConfig |
| Log types per block | One | Multiple (Set) |
| Cross-account logging | Not supported | Supported via roleType + accountId |
| Use case | Existing deployments | New deployments |
V1 Schema — logDestination (Existing Deployments)
Use V1 if you already have a log profile deployed using
logDestinationblocks. Existing configurations do not need to be migrated.
One logDestination block is required per log type. The following destination types
are supported: S3, CloudWatchLogs, KinesisDataFirehose.
Full example — V1 log profile with multiple destinations:
import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";
const example = new cloudngfwaws.NgfwLogProfile("example", {
ngfw: exampleCloudngfwawsNgfw.name,
accountId: exampleCloudngfwawsNgfw.accountId,
logDestinations: [
{
destinationType: "S3",
destination: "my-s3-bucket",
logType: "TRAFFIC",
},
{
destinationType: "CloudWatchLogs",
destination: "my-log-group",
logType: "THREAT",
},
{
destinationType: "KinesisDataFirehose",
destination: "my-firehose-stream",
logType: "DECRYPTION",
},
],
});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
example = cloudngfwaws.NgfwLogProfile("example",
ngfw=example_cloudngfwaws_ngfw["name"],
account_id=example_cloudngfwaws_ngfw["accountId"],
log_destinations=[
{
"destination_type": "S3",
"destination": "my-s3-bucket",
"log_type": "TRAFFIC",
},
{
"destination_type": "CloudWatchLogs",
"destination": "my-log-group",
"log_type": "THREAT",
},
{
"destination_type": "KinesisDataFirehose",
"destination": "my-firehose-stream",
"log_type": "DECRYPTION",
},
])
package main
import (
"github.com/pulumi/pulumi-cloudngfwaws/sdk/v2/go/cloudngfwaws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfwaws.NewNgfwLogProfile(ctx, "example", &cloudngfwaws.NgfwLogProfileArgs{
Ngfw: pulumi.Any(exampleCloudngfwawsNgfw.Name),
AccountId: pulumi.Any(exampleCloudngfwawsNgfw.AccountId),
LogDestinations: cloudngfwaws.NgfwLogProfileLogDestinationArray{
&cloudngfwaws.NgfwLogProfileLogDestinationArgs{
DestinationType: pulumi.String("S3"),
Destination: pulumi.String("my-s3-bucket"),
LogType: pulumi.String("TRAFFIC"),
},
&cloudngfwaws.NgfwLogProfileLogDestinationArgs{
DestinationType: pulumi.String("CloudWatchLogs"),
Destination: pulumi.String("my-log-group"),
LogType: pulumi.String("THREAT"),
},
&cloudngfwaws.NgfwLogProfileLogDestinationArgs{
DestinationType: pulumi.String("KinesisDataFirehose"),
Destination: pulumi.String("my-firehose-stream"),
LogType: pulumi.String("DECRYPTION"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;
return await Deployment.RunAsync(() =>
{
var example = new CloudNgfwAws.NgfwLogProfile("example", new()
{
Ngfw = exampleCloudngfwawsNgfw.Name,
AccountId = exampleCloudngfwawsNgfw.AccountId,
LogDestinations = new[]
{
new CloudNgfwAws.Inputs.NgfwLogProfileLogDestinationArgs
{
DestinationType = "S3",
Destination = "my-s3-bucket",
LogType = "TRAFFIC",
},
new CloudNgfwAws.Inputs.NgfwLogProfileLogDestinationArgs
{
DestinationType = "CloudWatchLogs",
Destination = "my-log-group",
LogType = "THREAT",
},
new CloudNgfwAws.Inputs.NgfwLogProfileLogDestinationArgs
{
DestinationType = "KinesisDataFirehose",
Destination = "my-firehose-stream",
LogType = "DECRYPTION",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.NgfwLogProfile;
import com.pulumi.cloudngfwaws.NgfwLogProfileArgs;
import com.pulumi.cloudngfwaws.inputs.NgfwLogProfileLogDestinationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 NgfwLogProfile("example", NgfwLogProfileArgs.builder()
.ngfw(exampleCloudngfwawsNgfw.name())
.accountId(exampleCloudngfwawsNgfw.accountId())
.logDestinations(
NgfwLogProfileLogDestinationArgs.builder()
.destinationType("S3")
.destination("my-s3-bucket")
.logType("TRAFFIC")
.build(),
NgfwLogProfileLogDestinationArgs.builder()
.destinationType("CloudWatchLogs")
.destination("my-log-group")
.logType("THREAT")
.build(),
NgfwLogProfileLogDestinationArgs.builder()
.destinationType("KinesisDataFirehose")
.destination("my-firehose-stream")
.logType("DECRYPTION")
.build())
.build());
}
}
resources:
example:
type: cloudngfwaws:NgfwLogProfile
properties:
ngfw: ${exampleCloudngfwawsNgfw.name}
accountId: ${exampleCloudngfwawsNgfw.accountId}
logDestinations:
- destinationType: S3
destination: my-s3-bucket
logType: TRAFFIC
- destinationType: CloudWatchLogs
destination: my-log-group
logType: THREAT
- destinationType: KinesisDataFirehose
destination: my-firehose-stream
logType: DECRYPTION
pulumi {
required_providers {
cloudngfwaws = {
source = "pulumi/cloudngfwaws"
}
}
}
resource "cloudngfwaws_ngfwlogprofile" "example" {
ngfw = exampleCloudngfwawsNgfw.name
account_id = exampleCloudngfwawsNgfw.accountId
log_destinations {
destination_type = "S3"
destination = "my-s3-bucket"
log_type = "TRAFFIC"
}
log_destinations {
destination_type = "CloudWatchLogs"
destination = "my-log-group"
log_type = "THREAT"
}
log_destinations {
destination_type = "KinesisDataFirehose"
destination = "my-firehose-stream"
log_type = "DECRYPTION"
}
}
To add a destination: add another logDestination block and re-apply.
To remove a destination: remove the block and re-apply.
V2 Schema — logConfig (New Deployments)
Use V2 for new deployments. It consolidates all destination configuration into a single
logConfigblock and supports multiple log types per destination.
Full example — V2 log profile, same-account delivery:
import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";
const example = new cloudngfwaws.NgfwLogProfile("example", {
ngfw: exampleCloudngfwawsNgfw.name,
accountId: exampleCloudngfwawsNgfw.accountId,
logConfig: {
logDestinationType: "S3",
logDestination: "my-s3-bucket",
logTypes: [
"TRAFFIC",
"THREAT",
"DECRYPTION",
],
},
});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
example = cloudngfwaws.NgfwLogProfile("example",
ngfw=example_cloudngfwaws_ngfw["name"],
account_id=example_cloudngfwaws_ngfw["accountId"],
log_config={
"log_destination_type": "S3",
"log_destination": "my-s3-bucket",
"log_types": [
"TRAFFIC",
"THREAT",
"DECRYPTION",
],
})
package main
import (
"github.com/pulumi/pulumi-cloudngfwaws/sdk/v2/go/cloudngfwaws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfwaws.NewNgfwLogProfile(ctx, "example", &cloudngfwaws.NgfwLogProfileArgs{
Ngfw: pulumi.Any(exampleCloudngfwawsNgfw.Name),
AccountId: pulumi.Any(exampleCloudngfwawsNgfw.AccountId),
LogConfig: &cloudngfwaws.NgfwLogProfileLogConfigArgs{
LogDestinationType: pulumi.String("S3"),
LogDestination: pulumi.String("my-s3-bucket"),
LogTypes: pulumi.StringArray{
pulumi.String("TRAFFIC"),
pulumi.String("THREAT"),
pulumi.String("DECRYPTION"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;
return await Deployment.RunAsync(() =>
{
var example = new CloudNgfwAws.NgfwLogProfile("example", new()
{
Ngfw = exampleCloudngfwawsNgfw.Name,
AccountId = exampleCloudngfwawsNgfw.AccountId,
LogConfig = new CloudNgfwAws.Inputs.NgfwLogProfileLogConfigArgs
{
LogDestinationType = "S3",
LogDestination = "my-s3-bucket",
LogTypes = new[]
{
"TRAFFIC",
"THREAT",
"DECRYPTION",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.NgfwLogProfile;
import com.pulumi.cloudngfwaws.NgfwLogProfileArgs;
import com.pulumi.cloudngfwaws.inputs.NgfwLogProfileLogConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 NgfwLogProfile("example", NgfwLogProfileArgs.builder()
.ngfw(exampleCloudngfwawsNgfw.name())
.accountId(exampleCloudngfwawsNgfw.accountId())
.logConfig(NgfwLogProfileLogConfigArgs.builder()
.logDestinationType("S3")
.logDestination("my-s3-bucket")
.logTypes(
"TRAFFIC",
"THREAT",
"DECRYPTION")
.build())
.build());
}
}
resources:
example:
type: cloudngfwaws:NgfwLogProfile
properties:
ngfw: ${exampleCloudngfwawsNgfw.name}
accountId: ${exampleCloudngfwawsNgfw.accountId}
logConfig:
logDestinationType: S3
logDestination: my-s3-bucket
logTypes:
- TRAFFIC
- THREAT
- DECRYPTION
pulumi {
required_providers {
cloudngfwaws = {
source = "pulumi/cloudngfwaws"
}
}
}
resource "cloudngfwaws_ngfwlogprofile" "example" {
ngfw = exampleCloudngfwawsNgfw.name
account_id = exampleCloudngfwawsNgfw.accountId
log_config = {
log_destination_type = "S3"
log_destination = "my-s3-bucket"
log_types = ["TRAFFIC", "THREAT", "DECRYPTION"]
}
}
Full example — V2 log profile with cross-account delivery:
import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";
const example = new cloudngfwaws.NgfwLogProfile("example", {
ngfw: exampleCloudngfwawsNgfw.name,
accountId: exampleCloudngfwawsNgfw.accountId,
logConfig: {
logDestinationType: "CloudWatchLogs",
logDestination: "arn:aws:logs:us-east-1:222222222222:log-group:my-log-group",
logTypes: [
"TRAFFIC",
"THREAT",
],
roleType: "CrossAccount",
accountId: "222222222222",
},
});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
example = cloudngfwaws.NgfwLogProfile("example",
ngfw=example_cloudngfwaws_ngfw["name"],
account_id=example_cloudngfwaws_ngfw["accountId"],
log_config={
"log_destination_type": "CloudWatchLogs",
"log_destination": "arn:aws:logs:us-east-1:222222222222:log-group:my-log-group",
"log_types": [
"TRAFFIC",
"THREAT",
],
"role_type": "CrossAccount",
"account_id": "222222222222",
})
package main
import (
"github.com/pulumi/pulumi-cloudngfwaws/sdk/v2/go/cloudngfwaws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfwaws.NewNgfwLogProfile(ctx, "example", &cloudngfwaws.NgfwLogProfileArgs{
Ngfw: pulumi.Any(exampleCloudngfwawsNgfw.Name),
AccountId: pulumi.Any(exampleCloudngfwawsNgfw.AccountId),
LogConfig: &cloudngfwaws.NgfwLogProfileLogConfigArgs{
LogDestinationType: pulumi.String("CloudWatchLogs"),
LogDestination: pulumi.String("arn:aws:logs:us-east-1:222222222222:log-group:my-log-group"),
LogTypes: pulumi.StringArray{
pulumi.String("TRAFFIC"),
pulumi.String("THREAT"),
},
RoleType: pulumi.String("CrossAccount"),
AccountId: pulumi.String("222222222222"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;
return await Deployment.RunAsync(() =>
{
var example = new CloudNgfwAws.NgfwLogProfile("example", new()
{
Ngfw = exampleCloudngfwawsNgfw.Name,
AccountId = exampleCloudngfwawsNgfw.AccountId,
LogConfig = new CloudNgfwAws.Inputs.NgfwLogProfileLogConfigArgs
{
LogDestinationType = "CloudWatchLogs",
LogDestination = "arn:aws:logs:us-east-1:222222222222:log-group:my-log-group",
LogTypes = new[]
{
"TRAFFIC",
"THREAT",
},
RoleType = "CrossAccount",
AccountId = "222222222222",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.NgfwLogProfile;
import com.pulumi.cloudngfwaws.NgfwLogProfileArgs;
import com.pulumi.cloudngfwaws.inputs.NgfwLogProfileLogConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 NgfwLogProfile("example", NgfwLogProfileArgs.builder()
.ngfw(exampleCloudngfwawsNgfw.name())
.accountId(exampleCloudngfwawsNgfw.accountId())
.logConfig(NgfwLogProfileLogConfigArgs.builder()
.logDestinationType("CloudWatchLogs")
.logDestination("arn:aws:logs:us-east-1:222222222222:log-group:my-log-group")
.logTypes(
"TRAFFIC",
"THREAT")
.roleType("CrossAccount")
.accountId("222222222222")
.build())
.build());
}
}
resources:
example:
type: cloudngfwaws:NgfwLogProfile
properties:
ngfw: ${exampleCloudngfwawsNgfw.name}
accountId: ${exampleCloudngfwawsNgfw.accountId}
logConfig:
logDestinationType: CloudWatchLogs
logDestination: arn:aws:logs:us-east-1:222222222222:log-group:my-log-group
logTypes:
- TRAFFIC
- THREAT
roleType: CrossAccount
accountId: '222222222222'
pulumi {
required_providers {
cloudngfwaws = {
source = "pulumi/cloudngfwaws"
}
}
}
resource "cloudngfwaws_ngfwlogprofile" "example" {
ngfw = exampleCloudngfwawsNgfw.name
account_id = exampleCloudngfwawsNgfw.accountId
log_config = {
log_destination_type = "CloudWatchLogs"
log_destination = "arn:aws:logs:us-east-1:222222222222:log-group:my-log-group"
log_types = ["TRAFFIC", "THREAT"]
role_type = "CrossAccount"
account_id = "222222222222"
}
}
Full example — V2 log profile with advanced threat logging and CloudWatch metrics:
import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";
const example = new cloudngfwaws.NgfwLogProfile("example", {
ngfw: exampleCloudngfwawsNgfw.name,
accountId: exampleCloudngfwawsNgfw.accountId,
advancedThreatLog: true,
cloudWatchMetricNamespace: "CloudNGFW",
logConfig: {
logDestinationType: "KinesisDataFirehose",
logDestination: "my-firehose-stream",
logTypes: [
"TRAFFIC",
"THREAT",
"DECRYPTION",
],
},
});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
example = cloudngfwaws.NgfwLogProfile("example",
ngfw=example_cloudngfwaws_ngfw["name"],
account_id=example_cloudngfwaws_ngfw["accountId"],
advanced_threat_log=True,
cloud_watch_metric_namespace="CloudNGFW",
log_config={
"log_destination_type": "KinesisDataFirehose",
"log_destination": "my-firehose-stream",
"log_types": [
"TRAFFIC",
"THREAT",
"DECRYPTION",
],
})
package main
import (
"github.com/pulumi/pulumi-cloudngfwaws/sdk/v2/go/cloudngfwaws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfwaws.NewNgfwLogProfile(ctx, "example", &cloudngfwaws.NgfwLogProfileArgs{
Ngfw: pulumi.Any(exampleCloudngfwawsNgfw.Name),
AccountId: pulumi.Any(exampleCloudngfwawsNgfw.AccountId),
AdvancedThreatLog: pulumi.Bool(true),
CloudWatchMetricNamespace: pulumi.String("CloudNGFW"),
LogConfig: &cloudngfwaws.NgfwLogProfileLogConfigArgs{
LogDestinationType: pulumi.String("KinesisDataFirehose"),
LogDestination: pulumi.String("my-firehose-stream"),
LogTypes: pulumi.StringArray{
pulumi.String("TRAFFIC"),
pulumi.String("THREAT"),
pulumi.String("DECRYPTION"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;
return await Deployment.RunAsync(() =>
{
var example = new CloudNgfwAws.NgfwLogProfile("example", new()
{
Ngfw = exampleCloudngfwawsNgfw.Name,
AccountId = exampleCloudngfwawsNgfw.AccountId,
AdvancedThreatLog = true,
CloudWatchMetricNamespace = "CloudNGFW",
LogConfig = new CloudNgfwAws.Inputs.NgfwLogProfileLogConfigArgs
{
LogDestinationType = "KinesisDataFirehose",
LogDestination = "my-firehose-stream",
LogTypes = new[]
{
"TRAFFIC",
"THREAT",
"DECRYPTION",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.NgfwLogProfile;
import com.pulumi.cloudngfwaws.NgfwLogProfileArgs;
import com.pulumi.cloudngfwaws.inputs.NgfwLogProfileLogConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 NgfwLogProfile("example", NgfwLogProfileArgs.builder()
.ngfw(exampleCloudngfwawsNgfw.name())
.accountId(exampleCloudngfwawsNgfw.accountId())
.advancedThreatLog(true)
.cloudWatchMetricNamespace("CloudNGFW")
.logConfig(NgfwLogProfileLogConfigArgs.builder()
.logDestinationType("KinesisDataFirehose")
.logDestination("my-firehose-stream")
.logTypes(
"TRAFFIC",
"THREAT",
"DECRYPTION")
.build())
.build());
}
}
resources:
example:
type: cloudngfwaws:NgfwLogProfile
properties:
ngfw: ${exampleCloudngfwawsNgfw.name}
accountId: ${exampleCloudngfwawsNgfw.accountId}
advancedThreatLog: true
cloudWatchMetricNamespace: CloudNGFW
logConfig:
logDestinationType: KinesisDataFirehose
logDestination: my-firehose-stream
logTypes:
- TRAFFIC
- THREAT
- DECRYPTION
pulumi {
required_providers {
cloudngfwaws = {
source = "pulumi/cloudngfwaws"
}
}
}
resource "cloudngfwaws_ngfwlogprofile" "example" {
ngfw = exampleCloudngfwawsNgfw.name
account_id = exampleCloudngfwawsNgfw.accountId
advanced_threat_log = true
cloud_watch_metric_namespace = "CloudNGFW"
log_config = {
log_destination_type = "KinesisDataFirehose"
log_destination = "my-firehose-stream"
log_types = ["TRAFFIC", "THREAT", "DECRYPTION"]
}
}
Create NgfwLogProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NgfwLogProfile(name: string, args?: NgfwLogProfileArgs, opts?: CustomResourceOptions);@overload
def NgfwLogProfile(resource_name: str,
args: Optional[NgfwLogProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def NgfwLogProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
advanced_threat_log: Optional[bool] = None,
cloud_watch_metric_namespace: Optional[str] = None,
cloudwatch_metric_fields: Optional[Sequence[str]] = None,
firewall_id: Optional[str] = None,
log_config: Optional[NgfwLogProfileLogConfigArgs] = None,
log_destinations: Optional[Sequence[NgfwLogProfileLogDestinationArgs]] = None,
ngfw: Optional[str] = None,
region: Optional[str] = None)func NewNgfwLogProfile(ctx *Context, name string, args *NgfwLogProfileArgs, opts ...ResourceOption) (*NgfwLogProfile, error)public NgfwLogProfile(string name, NgfwLogProfileArgs? args = null, CustomResourceOptions? opts = null)
public NgfwLogProfile(String name, NgfwLogProfileArgs args)
public NgfwLogProfile(String name, NgfwLogProfileArgs args, CustomResourceOptions options)
type: cloudngfwaws:NgfwLogProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudngfwaws_ngfw_log_profile" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args NgfwLogProfileArgs
- 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 NgfwLogProfileArgs
- 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 NgfwLogProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NgfwLogProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NgfwLogProfileArgs
- 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 ngfwLogProfileResource = new CloudNgfwAws.NgfwLogProfile("ngfwLogProfileResource", new()
{
AccountId = "string",
AdvancedThreatLog = false,
CloudWatchMetricNamespace = "string",
CloudwatchMetricFields = new[]
{
"string",
},
FirewallId = "string",
LogConfig = new CloudNgfwAws.Inputs.NgfwLogProfileLogConfigArgs
{
LogDestination = "string",
LogDestinationType = "string",
LogTypes = new[]
{
"string",
},
AccountId = "string",
RoleType = "string",
},
LogDestinations = new[]
{
new CloudNgfwAws.Inputs.NgfwLogProfileLogDestinationArgs
{
Destination = "string",
DestinationType = "string",
LogType = "string",
},
},
Ngfw = "string",
Region = "string",
});
example, err := cloudngfwaws.NewNgfwLogProfile(ctx, "ngfwLogProfileResource", &cloudngfwaws.NgfwLogProfileArgs{
AccountId: pulumi.String("string"),
AdvancedThreatLog: pulumi.Bool(false),
CloudWatchMetricNamespace: pulumi.String("string"),
CloudwatchMetricFields: pulumi.StringArray{
pulumi.String("string"),
},
FirewallId: pulumi.String("string"),
LogConfig: &cloudngfwaws.NgfwLogProfileLogConfigArgs{
LogDestination: pulumi.String("string"),
LogDestinationType: pulumi.String("string"),
LogTypes: pulumi.StringArray{
pulumi.String("string"),
},
AccountId: pulumi.String("string"),
RoleType: pulumi.String("string"),
},
LogDestinations: cloudngfwaws.NgfwLogProfileLogDestinationArray{
&cloudngfwaws.NgfwLogProfileLogDestinationArgs{
Destination: pulumi.String("string"),
DestinationType: pulumi.String("string"),
LogType: pulumi.String("string"),
},
},
Ngfw: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "cloudngfwaws_ngfw_log_profile" "ngfwLogProfileResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
advanced_threat_log = false
cloud_watch_metric_namespace = "string"
cloudwatch_metric_fields = ["string"]
firewall_id = "string"
log_config = {
log_destination = "string"
log_destination_type = "string"
log_types = ["string"]
account_id = "string"
role_type = "string"
}
log_destinations {
destination = "string"
destination_type = "string"
log_type = "string"
}
ngfw = "string"
region = "string"
}
var ngfwLogProfileResource = new NgfwLogProfile("ngfwLogProfileResource", NgfwLogProfileArgs.builder()
.accountId("string")
.advancedThreatLog(false)
.cloudWatchMetricNamespace("string")
.cloudwatchMetricFields("string")
.firewallId("string")
.logConfig(NgfwLogProfileLogConfigArgs.builder()
.logDestination("string")
.logDestinationType("string")
.logTypes("string")
.accountId("string")
.roleType("string")
.build())
.logDestinations(NgfwLogProfileLogDestinationArgs.builder()
.destination("string")
.destinationType("string")
.logType("string")
.build())
.ngfw("string")
.region("string")
.build());
ngfw_log_profile_resource = cloudngfwaws.NgfwLogProfile("ngfwLogProfileResource",
account_id="string",
advanced_threat_log=False,
cloud_watch_metric_namespace="string",
cloudwatch_metric_fields=["string"],
firewall_id="string",
log_config={
"log_destination": "string",
"log_destination_type": "string",
"log_types": ["string"],
"account_id": "string",
"role_type": "string",
},
log_destinations=[{
"destination": "string",
"destination_type": "string",
"log_type": "string",
}],
ngfw="string",
region="string")
const ngfwLogProfileResource = new cloudngfwaws.NgfwLogProfile("ngfwLogProfileResource", {
accountId: "string",
advancedThreatLog: false,
cloudWatchMetricNamespace: "string",
cloudwatchMetricFields: ["string"],
firewallId: "string",
logConfig: {
logDestination: "string",
logDestinationType: "string",
logTypes: ["string"],
accountId: "string",
roleType: "string",
},
logDestinations: [{
destination: "string",
destinationType: "string",
logType: "string",
}],
ngfw: "string",
region: "string",
});
type: cloudngfwaws:NgfwLogProfile
properties:
accountId: string
advancedThreatLog: false
cloudWatchMetricNamespace: string
cloudwatchMetricFields:
- string
firewallId: string
logConfig:
accountId: string
logDestination: string
logDestinationType: string
logTypes:
- string
roleType: string
logDestinations:
- destination: string
destinationType: string
logType: string
ngfw: string
region: string
NgfwLogProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NgfwLogProfile resource accepts the following input properties:
- Account
Id string - The unique ID of the account.
- Advanced
Threat boolLog - Enable advanced threat logging.
- Cloud
Watch stringMetric Namespace - The CloudWatch metric namespace.
- Cloudwatch
Metric List<string>Fields - Cloudwatch metric fields.
- Firewall
Id string - The Firewall Id for the NGFW.
- Log
Config Pulumi.Cloud Ngfw Aws. Inputs. Ngfw Log Profile Log Config - Log configuration details.
- Log
Destinations List<Pulumi.Cloud Ngfw Aws. Inputs. Ngfw Log Profile Log Destination> - List of log destinations.
- Ngfw string
- The name of the NGFW.
- Region string
- The region of the NGFW.
- Account
Id string - The unique ID of the account.
- Advanced
Threat boolLog - Enable advanced threat logging.
- Cloud
Watch stringMetric Namespace - The CloudWatch metric namespace.
- Cloudwatch
Metric []stringFields - Cloudwatch metric fields.
- Firewall
Id string - The Firewall Id for the NGFW.
- Log
Config NgfwLog Profile Log Config Args - Log configuration details.
- Log
Destinations []NgfwLog Profile Log Destination Args - List of log destinations.
- Ngfw string
- The name of the NGFW.
- Region string
- The region of the NGFW.
- account_
id string - The unique ID of the account.
- advanced_
threat_ boollog - Enable advanced threat logging.
- cloud_
watch_ stringmetric_ namespace - The CloudWatch metric namespace.
- cloudwatch_
metric_ list(string)fields - Cloudwatch metric fields.
- firewall_
id string - The Firewall Id for the NGFW.
- log_
config object - Log configuration details.
- log_
destinations list(object) - List of log destinations.
- ngfw string
- The name of the NGFW.
- region string
- The region of the NGFW.
- account
Id String - The unique ID of the account.
- advanced
Threat BooleanLog - Enable advanced threat logging.
- cloud
Watch StringMetric Namespace - The CloudWatch metric namespace.
- cloudwatch
Metric List<String>Fields - Cloudwatch metric fields.
- firewall
Id String - The Firewall Id for the NGFW.
- log
Config NgfwLog Profile Log Config - Log configuration details.
- log
Destinations List<NgfwLog Profile Log Destination> - List of log destinations.
- ngfw String
- The name of the NGFW.
- region String
- The region of the NGFW.
- account
Id string - The unique ID of the account.
- advanced
Threat booleanLog - Enable advanced threat logging.
- cloud
Watch stringMetric Namespace - The CloudWatch metric namespace.
- cloudwatch
Metric string[]Fields - Cloudwatch metric fields.
- firewall
Id string - The Firewall Id for the NGFW.
- log
Config NgfwLog Profile Log Config - Log configuration details.
- log
Destinations NgfwLog Profile Log Destination[] - List of log destinations.
- ngfw string
- The name of the NGFW.
- region string
- The region of the NGFW.
- account_
id str - The unique ID of the account.
- advanced_
threat_ boollog - Enable advanced threat logging.
- cloud_
watch_ strmetric_ namespace - The CloudWatch metric namespace.
- cloudwatch_
metric_ Sequence[str]fields - Cloudwatch metric fields.
- firewall_
id str - The Firewall Id for the NGFW.
- log_
config NgfwLog Profile Log Config Args - Log configuration details.
- log_
destinations Sequence[NgfwLog Profile Log Destination Args] - List of log destinations.
- ngfw str
- The name of the NGFW.
- region str
- The region of the NGFW.
- account
Id String - The unique ID of the account.
- advanced
Threat BooleanLog - Enable advanced threat logging.
- cloud
Watch StringMetric Namespace - The CloudWatch metric namespace.
- cloudwatch
Metric List<String>Fields - Cloudwatch metric fields.
- firewall
Id String - The Firewall Id for the NGFW.
- log
Config Property Map - Log configuration details.
- log
Destinations List<Property Map> - List of log destinations.
- ngfw String
- The name of the NGFW.
- region String
- The region of the NGFW.
Outputs
All input properties are implicitly available as output properties. Additionally, the NgfwLogProfile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Token string - The update token.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Token string - The update token.
- id string
- The provider-assigned unique ID for this managed resource.
- update_
token string - The update token.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Token String - The update token.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Token string - The update token.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
token str - The update token.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Token String - The update token.
Look up Existing NgfwLogProfile Resource
Get an existing NgfwLogProfile 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?: NgfwLogProfileState, opts?: CustomResourceOptions): NgfwLogProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
advanced_threat_log: Optional[bool] = None,
cloud_watch_metric_namespace: Optional[str] = None,
cloudwatch_metric_fields: Optional[Sequence[str]] = None,
firewall_id: Optional[str] = None,
log_config: Optional[NgfwLogProfileLogConfigArgs] = None,
log_destinations: Optional[Sequence[NgfwLogProfileLogDestinationArgs]] = None,
ngfw: Optional[str] = None,
region: Optional[str] = None,
update_token: Optional[str] = None) -> NgfwLogProfilefunc GetNgfwLogProfile(ctx *Context, name string, id IDInput, state *NgfwLogProfileState, opts ...ResourceOption) (*NgfwLogProfile, error)public static NgfwLogProfile Get(string name, Input<string> id, NgfwLogProfileState? state, CustomResourceOptions? opts = null)public static NgfwLogProfile get(String name, Output<String> id, NgfwLogProfileState state, CustomResourceOptions options)resources: _: type: cloudngfwaws:NgfwLogProfile get: id: ${id}import {
to = cloudngfwaws_ngfw_log_profile.example
id = "${id}"
}
- 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.
- Account
Id string - The unique ID of the account.
- Advanced
Threat boolLog - Enable advanced threat logging.
- Cloud
Watch stringMetric Namespace - The CloudWatch metric namespace.
- Cloudwatch
Metric List<string>Fields - Cloudwatch metric fields.
- Firewall
Id string - The Firewall Id for the NGFW.
- Log
Config Pulumi.Cloud Ngfw Aws. Inputs. Ngfw Log Profile Log Config - Log configuration details.
- Log
Destinations List<Pulumi.Cloud Ngfw Aws. Inputs. Ngfw Log Profile Log Destination> - List of log destinations.
- Ngfw string
- The name of the NGFW.
- Region string
- The region of the NGFW.
- Update
Token string - The update token.
- Account
Id string - The unique ID of the account.
- Advanced
Threat boolLog - Enable advanced threat logging.
- Cloud
Watch stringMetric Namespace - The CloudWatch metric namespace.
- Cloudwatch
Metric []stringFields - Cloudwatch metric fields.
- Firewall
Id string - The Firewall Id for the NGFW.
- Log
Config NgfwLog Profile Log Config Args - Log configuration details.
- Log
Destinations []NgfwLog Profile Log Destination Args - List of log destinations.
- Ngfw string
- The name of the NGFW.
- Region string
- The region of the NGFW.
- Update
Token string - The update token.
- account_
id string - The unique ID of the account.
- advanced_
threat_ boollog - Enable advanced threat logging.
- cloud_
watch_ stringmetric_ namespace - The CloudWatch metric namespace.
- cloudwatch_
metric_ list(string)fields - Cloudwatch metric fields.
- firewall_
id string - The Firewall Id for the NGFW.
- log_
config object - Log configuration details.
- log_
destinations list(object) - List of log destinations.
- ngfw string
- The name of the NGFW.
- region string
- The region of the NGFW.
- update_
token string - The update token.
- account
Id String - The unique ID of the account.
- advanced
Threat BooleanLog - Enable advanced threat logging.
- cloud
Watch StringMetric Namespace - The CloudWatch metric namespace.
- cloudwatch
Metric List<String>Fields - Cloudwatch metric fields.
- firewall
Id String - The Firewall Id for the NGFW.
- log
Config NgfwLog Profile Log Config - Log configuration details.
- log
Destinations List<NgfwLog Profile Log Destination> - List of log destinations.
- ngfw String
- The name of the NGFW.
- region String
- The region of the NGFW.
- update
Token String - The update token.
- account
Id string - The unique ID of the account.
- advanced
Threat booleanLog - Enable advanced threat logging.
- cloud
Watch stringMetric Namespace - The CloudWatch metric namespace.
- cloudwatch
Metric string[]Fields - Cloudwatch metric fields.
- firewall
Id string - The Firewall Id for the NGFW.
- log
Config NgfwLog Profile Log Config - Log configuration details.
- log
Destinations NgfwLog Profile Log Destination[] - List of log destinations.
- ngfw string
- The name of the NGFW.
- region string
- The region of the NGFW.
- update
Token string - The update token.
- account_
id str - The unique ID of the account.
- advanced_
threat_ boollog - Enable advanced threat logging.
- cloud_
watch_ strmetric_ namespace - The CloudWatch metric namespace.
- cloudwatch_
metric_ Sequence[str]fields - Cloudwatch metric fields.
- firewall_
id str - The Firewall Id for the NGFW.
- log_
config NgfwLog Profile Log Config Args - Log configuration details.
- log_
destinations Sequence[NgfwLog Profile Log Destination Args] - List of log destinations.
- ngfw str
- The name of the NGFW.
- region str
- The region of the NGFW.
- update_
token str - The update token.
- account
Id String - The unique ID of the account.
- advanced
Threat BooleanLog - Enable advanced threat logging.
- cloud
Watch StringMetric Namespace - The CloudWatch metric namespace.
- cloudwatch
Metric List<String>Fields - Cloudwatch metric fields.
- firewall
Id String - The Firewall Id for the NGFW.
- log
Config Property Map - Log configuration details.
- log
Destinations List<Property Map> - List of log destinations.
- ngfw String
- The name of the NGFW.
- region String
- The region of the NGFW.
- update
Token String - The update token.
Supporting Types
NgfwLogProfileLogConfig, NgfwLogProfileLogConfigArgs
- Log
Destination string - The log destination details.
- Log
Destination stringType - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - Log
Types List<string> - The list of different log types that are wanted
- Account
Id string - Type of Role for log configuration
- Role
Type string - Type of Role for log configuration
- Log
Destination string - The log destination details.
- Log
Destination stringType - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - Log
Types []string - The list of different log types that are wanted
- Account
Id string - Type of Role for log configuration
- Role
Type string - Type of Role for log configuration
- log_
destination string - The log destination details.
- log_
destination_ stringtype - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log_
types list(string) - The list of different log types that are wanted
- account_
id string - Type of Role for log configuration
- role_
type string - Type of Role for log configuration
- log
Destination String - The log destination details.
- log
Destination StringType - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log
Types List<String> - The list of different log types that are wanted
- account
Id String - Type of Role for log configuration
- role
Type String - Type of Role for log configuration
- log
Destination string - The log destination details.
- log
Destination stringType - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log
Types string[] - The list of different log types that are wanted
- account
Id string - Type of Role for log configuration
- role
Type string - Type of Role for log configuration
- log_
destination str - The log destination details.
- log_
destination_ strtype - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log_
types Sequence[str] - The list of different log types that are wanted
- account_
id str - Type of Role for log configuration
- role_
type str - Type of Role for log configuration
- log
Destination String - The log destination details.
- log
Destination StringType - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log
Types List<String> - The list of different log types that are wanted
- account
Id String - Type of Role for log configuration
- role
Type String - Type of Role for log configuration
NgfwLogProfileLogDestination, NgfwLogProfileLogDestinationArgs
- Destination string
- The log destination details.
- Destination
Type string - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - Log
Type string - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
- Destination string
- The log destination details.
- Destination
Type string - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - Log
Type string - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
- destination string
- The log destination details.
- destination_
type string - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log_
type string - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
- destination String
- The log destination details.
- destination
Type String - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log
Type String - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
- destination string
- The log destination details.
- destination
Type string - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log
Type string - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
- destination str
- The log destination details.
- destination_
type str - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log_
type str - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
- destination String
- The log destination details.
- destination
Type String - The log destination type. Valid values are
S3,CloudWatchLogs, orKinesisDataFirehose. - log
Type String - The type of logs. Valid values are
TRAFFIC,THREAT, orDECRYPTION.
Import
import name is <account_id>:
$ pulumi import cloudngfwaws:index/ngfwLogProfile:NgfwLogProfile example 12345678:example-instance
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- cloudngfwaws pulumi/pulumi-cloudngfwaws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudngfwawsTerraform Provider.
published on Wednesday, Jul 22, 2026 by Pulumi