Skip to main content

logging_configurations

Creates, updates, deletes or gets a logging_configuration resource or lists logging_configurations in a region

Overview

Namelogging_configurations
TypeResource
DescriptionResource type definition for AWS::NetworkFirewall::LoggingConfiguration
Idaws.networkfirewall.logging_configurations

Fields

NameDatatypeDescription
firewall_namestring
firewall_arnstringA resource ARN.
logging_configurationobjectResource type definition for AWS::NetworkFirewall::LoggingConfiguration
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTFirewallArn, LoggingConfiguration, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all logging_configurations in a region.

SELECT
region,
firewall_name,
firewall_arn,
logging_configuration
FROM aws.networkfirewall.logging_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual logging_configuration.

SELECT
region,
firewall_name,
firewall_arn,
logging_configuration
FROM aws.networkfirewall.logging_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<FirewallArn>';

INSERT example

Use the following StackQL query and manifest file to create a new logging_configuration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.networkfirewall.logging_configurations (
FirewallArn,
LoggingConfiguration,
region
)
SELECT
'{{ FirewallArn }}',
'{{ LoggingConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkfirewall.logging_configurations
WHERE data__Identifier = '<FirewallArn>'
AND region = 'us-east-1';

Permissions

To operate on the logging_configurations resource, the following permissions are required:

Create

logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:ListLogDeliveries,
s3:PutBucketPolicy,
s3:GetBucketPolicy,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
iam:CreateServiceLinkedRole,
firehose:TagDeliveryStream,
network-firewall:UpdateLoggingConfiguration,
network-firewall:DescribeLoggingConfiguration

Read

logs:GetLogDelivery,
logs:ListLogDeliveries,
network-firewall:DescribeLoggingConfiguration

Update

logs:CreateLogDelivery,
logs:DeleteLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:ListLogDeliveries,
s3:PutBucketPolicy,
s3:GetBucketPolicy,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
iam:CreateServiceLinkedRole,
firehose:TagDeliveryStream,
network-firewall:UpdateLoggingConfiguration,
network-firewall:DescribeLoggingConfiguration

Delete

logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:GetLogDelivery,
network-firewall:UpdateLoggingConfiguration,
network-firewall:DescribeLoggingConfiguration

List

logs:GetLogDelivery,
logs:ListLogDeliveries,
network-firewall:DescribeLoggingConfiguration