Skip to main content

proxy_rule_groups

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

Overview

Nameproxy_rule_groups
TypeResource
Idaws.network_firewall.proxy_rule_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
proxy_rule_groupobjectThe configuration for the specified proxy rule group.
update_tokenstringA token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy rule group. The token marks the state of the proxy rule group resource at the time of the request. To make changes to the proxy rule group, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule group 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 group 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_rule_groupselectregionReturns the data objects for the specified proxy rule group.
list_proxy_rule_groupsselectregionRetrieves the metadata for the proxy rule groups that you have defined. Depending on your setting for max results and the number of proxy rule groups, a single call might not return the full list.
create_proxy_rule_groupinsertregion, ProxyRuleGroupNameCreates an Network Firewall ProxyRuleGroup Collections of related proxy filtering rules. Rule groups help you manage and reuse sets of rules across multiple proxy configurations. To manage a proxy rule group's tags, use the standard Amazon Web Services resource tagging operations, ListTagsForResource, TagResource, and UntagResource. To retrieve information about proxy rule groups, use ListProxyRuleGroups and DescribeProxyRuleGroup. To retrieve information about individual proxy rules, use DescribeProxyRuleGroup and DescribeProxyRule.
update_proxy_rule_group_prioritiesupdateregion, RuleGroups, UpdateTokenUpdates proxy rule group priorities within a proxy configuration.
delete_proxy_rule_groupdeleteregionDeletes the specified 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 rule group.

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

INSERT examples

Creates an Network Firewall ProxyRuleGroup Collections of related proxy filtering rules. Rule groups help you manage and reuse sets of rules across multiple proxy configurations. To manage a proxy rule group's tags, use the standard Amazon Web Services resource tagging operations, ListTagsForResource, TagResource, and UntagResource. To retrieve information about proxy rule groups, use ListProxyRuleGroups and DescribeProxyRuleGroup. To retrieve information about individual proxy rules, use DescribeProxyRuleGroup and DescribeProxyRule.

INSERT INTO aws.network_firewall.proxy_rule_groups (
ProxyRuleGroupName,
Description,
Rules,
Tags,
region
)
SELECT
'{{ ProxyRuleGroupName }}' /* required */,
'{{ Description }}',
'{{ Rules }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
proxy_rule_group,
update_token
;

UPDATE examples

Updates proxy rule group priorities within a proxy configuration.

UPDATE aws.network_firewall.proxy_rule_groups
SET
ProxyConfigurationName = '{{ ProxyConfigurationName }}',
ProxyConfigurationArn = '{{ ProxyConfigurationArn }}',
RuleGroups = '{{ RuleGroups }}',
UpdateToken = '{{ UpdateToken }}'
WHERE
region = '{{ region }}' --required
AND RuleGroups = '{{ RuleGroups }}' --required
AND UpdateToken = '{{ UpdateToken }}' --required
RETURNING
proxy_rule_groups,
update_token;

DELETE examples

Deletes the specified ProxyRuleGroup.

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