Skip to main content

proxies

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

Overview

Nameproxies
TypeResource
Idaws.network_firewall.proxies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
proxyobjectProxy attached to a NAT gateway.
update_tokenstringA token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy. The token marks the state of the proxy resource at the time of the request. To make changes to the proxy, you provide the token in your request. Network Firewall uses the token to ensure that the proxy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy 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_proxyselectregionReturns the data objects for the specified proxy.
list_proxiesselectregionRetrieves the metadata for the proxies that you have defined. Depending on your setting for max results and the number of proxies, a single call might not return the full list.
create_proxyinsertregion, ProxyName, NatGatewayId, TlsInterceptPropertiesCreates an Network Firewall Proxy Attaches a Proxy configuration to a NAT Gateway. To manage a proxy's tags, use the standard Amazon Web Services resource tagging operations, ListTagsForResource, TagResource, and UntagResource. To retrieve information about proxies, use ListProxies and DescribeProxy.
update_proxyupdateregion, NatGatewayId, UpdateTokenUpdates the properties of the specified proxy.
update_proxy_settingsupdateregionModifies the proxy listener configuration of a proxy mode firewall. Proxy mode firewalls are created with NoSourcePreservation set to TRUE. Use this operation to change the ports and protocols on which the firewall's proxy listens for traffic.
delete_proxydeleteregionDeletes the specified Proxy. Detaches a Proxy configuration from a NAT Gateway.

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.

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

INSERT examples

Creates an Network Firewall Proxy Attaches a Proxy configuration to a NAT Gateway. To manage a proxy's tags, use the standard Amazon Web Services resource tagging operations, ListTagsForResource, TagResource, and UntagResource. To retrieve information about proxies, use ListProxies and DescribeProxy.

INSERT INTO aws.network_firewall.proxies (
ProxyName,
NatGatewayId,
ProxyConfigurationName,
ProxyConfigurationArn,
ListenerProperties,
TlsInterceptProperties,
Tags,
region
)
SELECT
'{{ ProxyName }}' /* required */,
'{{ NatGatewayId }}' /* required */,
'{{ ProxyConfigurationName }}',
'{{ ProxyConfigurationArn }}',
'{{ ListenerProperties }}',
'{{ TlsInterceptProperties }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
proxy,
update_token
;

UPDATE examples

Updates the properties of the specified proxy.

UPDATE aws.network_firewall.proxies
SET
NatGatewayId = '{{ NatGatewayId }}',
ProxyName = '{{ ProxyName }}',
ProxyArn = '{{ ProxyArn }}',
ListenerPropertiesToAdd = '{{ ListenerPropertiesToAdd }}',
ListenerPropertiesToRemove = '{{ ListenerPropertiesToRemove }}',
TlsInterceptProperties = '{{ TlsInterceptProperties }}',
UpdateToken = '{{ UpdateToken }}'
WHERE
region = '{{ region }}' --required
AND NatGatewayId = '{{ NatGatewayId }}' --required
AND UpdateToken = '{{ UpdateToken }}' --required
RETURNING
proxy,
update_token;

DELETE examples

Deletes the specified Proxy. Detaches a Proxy configuration from a NAT Gateway.

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