Skip to main content

firewall_policies

Creates, updates, deletes or gets a firewall_policy resource or lists firewall_policies in a region

Overview

Namefirewall_policies
TypeResource
DescriptionResource type definition for AWS::NetworkFirewall::FirewallPolicy
Idaws.networkfirewall.firewall_policies

Fields

NameDatatypeDescription
firewall_policy_namestring
firewall_policy_arnstringA resource ARN.
firewall_policyobjectResource type definition for AWS::NetworkFirewall::FirewallPolicy
firewall_policy_idstring
descriptionstring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTFirewallPolicyName, FirewallPolicy, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all firewall_policies in a region.

SELECT
region,
firewall_policy_name,
firewall_policy_arn,
firewall_policy,
firewall_policy_id,
description,
tags
FROM aws.networkfirewall.firewall_policies
WHERE region = 'us-east-1';

Gets all properties from an individual firewall_policy.

SELECT
region,
firewall_policy_name,
firewall_policy_arn,
firewall_policy,
firewall_policy_id,
description,
tags
FROM aws.networkfirewall.firewall_policies
WHERE region = 'us-east-1' AND data__Identifier = '<FirewallPolicyArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.networkfirewall.firewall_policies (
FirewallPolicyName,
FirewallPolicy,
region
)
SELECT
'{{ FirewallPolicyName }}',
'{{ FirewallPolicy }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

network-firewall:CreateFirewallPolicy,
network-firewall:DescribeFirewallPolicy,
network-firewall:ListTLSInspectionConfigurations,
network-firewall:TagResource,
network-firewall:ListRuleGroups

Read

network-firewall:DescribeFirewallPolicy,
network-firewall:ListTagsForResources

Update

network-firewall:UpdateFirewallPolicy,
network-firewall:DescribeFirewallPolicy,
network-firewall:TagResource,
network-firewall:UntagResource,
network-firewall:ListRuleGroups,
network-firewall:ListTLSInspectionConfigurations

Delete

network-firewall:DeleteFirewallPolicy,
network-firewall:DescribeFirewallPolicy,
network-firewall:UntagResource

List

network-firewall:ListFirewallPolicies