Skip to main content

proxy_rules

Creates, updates, deletes, gets or lists a proxy_rules resource.

Overview

Nameproxy_rules
TypeResource
Idaws.network_firewall.proxy_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
proxy_ruleobjectIndividual rules that define match conditions and actions for application-layer traffic. Rules specify what to inspect (domains, headers, methods) and what action to take (allow, deny, alert).
update_tokenstringA token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy rule. The token marks the state of the proxy rule resource at the time of the request. To make changes to the proxy rule, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy rule again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token. (pattern: <code>^([0-9a-f]{8})-([0-9a-f]{4}-){3}([0-9a-f]{12})$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_proxy_ruleselectregionReturns the data objects for the specified proxy configuration for the specified proxy rule group.
create_proxy_rulesinsertregionCreates Network Firewall ProxyRule resources. Attaches new proxy rule(s) to an existing proxy rule group. To retrieve information about individual proxy rules, use DescribeProxyRuleGroup and DescribeProxyRule.
update_proxy_ruleupdateregion, ProxyRuleName, UpdateTokenUpdates the properties of the specified proxy rule.
update_proxy_rule_prioritiesupdateregion, RuleGroupRequestPhase, UpdateTokenUpdates proxy rule priorities within a proxy rule group.
delete_proxy_rulesdeleteregionDeletes the specified ProxyRule(s). currently attached to a ProxyRuleGroup

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the data objects for the specified proxy configuration for the specified proxy rule group.

SELECT
proxy_rule,
update_token
FROM aws.network_firewall.proxy_rules
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates Network Firewall ProxyRule resources. Attaches new proxy rule(s) to an existing proxy rule group. To retrieve information about individual proxy rules, use DescribeProxyRuleGroup and DescribeProxyRule.

INSERT INTO aws.network_firewall.proxy_rules (
ProxyRuleGroupArn,
ProxyRuleGroupName,
Rules,
region
)
SELECT
'{{ ProxyRuleGroupArn }}',
'{{ ProxyRuleGroupName }}',
'{{ Rules }}',
'{{ region }}'
RETURNING
proxy_rule_group,
update_token
;

UPDATE examples

Updates the properties of the specified proxy rule.

UPDATE aws.network_firewall.proxy_rules
SET
ProxyRuleGroupName = '{{ ProxyRuleGroupName }}',
ProxyRuleGroupArn = '{{ ProxyRuleGroupArn }}',
ProxyRuleName = '{{ ProxyRuleName }}',
Description = '{{ Description }}',
Action = '{{ Action }}',
AddConditions = '{{ AddConditions }}',
RemoveConditions = '{{ RemoveConditions }}',
UpdateToken = '{{ UpdateToken }}'
WHERE
region = '{{ region }}' --required
AND ProxyRuleName = '{{ ProxyRuleName }}' --required
AND UpdateToken = '{{ UpdateToken }}' --required
RETURNING
proxy_rule,
removed_conditions,
update_token;

DELETE examples

Deletes the specified ProxyRule(s). currently attached to a ProxyRuleGroup

DELETE FROM aws.network_firewall.proxy_rules
WHERE region = '{{ region }}' --required
;