Skip to main content

client_vpn_authorization_rules

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

Overview

Nameclient_vpn_authorization_rules
TypeResource
Idaws.ec2.client_vpn_authorization_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_allbooleanIndicates whether the authorization rule grants access to all clients.
client_vpn_endpoint_idstringThe ID of the Client VPN endpoint with which the authorization rule is associated.
descriptionstringA brief description of the authorization rule.
destination_cidrstringThe IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
group_idstringThe ID of the Active Directory group to which the authorization rule grants access.
statusstringThe current state of the authorization rule.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_client_vpn_authorization_rulesselectClientVpnEndpointId, regionDryRun, NextToken, Filter, MaxResultsDescribes the authorization rules for a specified Client VPN endpoint.

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
ClientVpnEndpointIdstringThe ID of the Client VPN endpoint.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters. Filter names and values are case-sensitive. description - The description of the authorization rule. destination-cidr - The CIDR of the network to which the authorization rule applies. group-id - The ID of the Active Directory group to which the authorization rule grants access.
MaxResultsintegerThe maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the nextToken value.
NextTokenstringThe token to retrieve the next page of results.

SELECT examples

Describes the authorization rules for a specified Client VPN endpoint.

SELECT
access_all,
client_vpn_endpoint_id,
description,
destination_cidr,
group_id,
status
FROM aws.ec2.client_vpn_authorization_rules
WHERE ClientVpnEndpointId = '{{ ClientVpnEndpointId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND NextToken = '{{ NextToken }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
;