Skip to main content

verified_access_endpoint_policies

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

Overview

Nameverified_access_endpoint_policies
TypeResource
Idaws.ec2.verified_access_endpoint_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policy_documentstringThe Verified Access policy document.
policy_enabledbooleanThe status of the Verified Access policy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_verified_access_endpoint_policyselectVerifiedAccessEndpointId, regionDryRunGet the Verified Access policy associated with the endpoint.
modify_verified_access_endpoint_policyupdateVerifiedAccessEndpointId, regionPolicyEnabled, PolicyDocument, ClientToken, DryRun, SseSpecificationModifies the specified Amazon Web Services Verified Access endpoint policy.

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
VerifiedAccessEndpointIdstringThe ID of the Verified Access endpoint.
regionstringAWS region (default: us-east-1)
ClientTokenstringA unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring idempotency.
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.
PolicyDocumentstringThe Verified Access policy document.
PolicyEnabledbooleanThe status of the Verified Access policy.
SseSpecificationobjectThe options for server side encryption.

SELECT examples

Get the Verified Access policy associated with the endpoint.

SELECT
policy_document,
policy_enabled
FROM aws.ec2.verified_access_endpoint_policies
WHERE VerifiedAccessEndpointId = '{{ VerifiedAccessEndpointId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;

UPDATE examples

Modifies the specified Amazon Web Services Verified Access endpoint policy.

UPDATE aws.ec2.verified_access_endpoint_policies
SET
-- No updatable properties
WHERE
VerifiedAccessEndpointId = '{{ VerifiedAccessEndpointId }}' --required
AND region = '{{ region }}' --required
AND PolicyEnabled = {{ PolicyEnabled}}
AND PolicyDocument = '{{ PolicyDocument}}'
AND ClientToken = '{{ ClientToken}}'
AND DryRun = {{ DryRun}}
AND SseSpecification = '{{ SseSpecification}}'
RETURNING
policy_document,
policy_enabled,
sse_specification;