Skip to main content

verified_access_group_policies

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

Overview

Nameverified_access_group_policies
TypeResource
Idaws.ec2.verified_access_group_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_group_policyselectVerifiedAccessGroupId, regionDryRunShows the contents of the Verified Access policy associated with the group.
modify_verified_access_group_policyupdateVerifiedAccessGroupId, regionPolicyEnabled, PolicyDocument, ClientToken, DryRun, SseSpecificationModifies the specified Amazon Web Services Verified Access group 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
VerifiedAccessGroupIdstringThe ID of the Verified Access group.
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

Shows the contents of the Verified Access policy associated with the group.

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

UPDATE examples

Modifies the specified Amazon Web Services Verified Access group policy.

UPDATE aws.ec2.verified_access_group_policies
SET
-- No updatable properties
WHERE
VerifiedAccessGroupId = '{{ VerifiedAccessGroupId }}' --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;