Skip to main content

verified_access_groups

Creates, updates, deletes or gets a verified_access_group resource or lists verified_access_groups in a region

Overview

Nameverified_access_groups
TypeResource
DescriptionThe AWS::EC2::VerifiedAccessGroup resource creates an AWS EC2 Verified Access Group.
Idaws.ec2.verified_access_groups

Fields

NameDatatypeDescription
verified_access_group_idstringThe ID of the AWS Verified Access group.
verified_access_instance_idstringThe ID of the AWS Verified Access instance.
verified_access_group_arnstringThe ARN of the Verified Access group.
ownerstringThe AWS account number that owns the group.
creation_timestringTime this Verified Access Group was created.
last_updated_timestringTime this Verified Access Group was last updated.
descriptionstringA description for the AWS Verified Access group.
policy_documentstringThe AWS Verified Access policy document.
policy_enabledbooleanThe status of the Verified Access policy.
tagsarrayAn array of key-value pairs to apply to this resource.
sse_specificationobjectThe configuration options for customer provided KMS encryption.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTVerifiedAccessInstanceId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all verified_access_groups in a region.

SELECT
region,
verified_access_group_id,
verified_access_instance_id,
verified_access_group_arn,
owner,
creation_time,
last_updated_time,
description,
policy_document,
policy_enabled,
tags,
sse_specification
FROM aws.ec2.verified_access_groups
WHERE region = 'us-east-1';

Gets all properties from an individual verified_access_group.

SELECT
region,
verified_access_group_id,
verified_access_instance_id,
verified_access_group_arn,
owner,
creation_time,
last_updated_time,
description,
policy_document,
policy_enabled,
tags,
sse_specification
FROM aws.ec2.verified_access_groups
WHERE region = 'us-east-1' AND data__Identifier = '<VerifiedAccessGroupId>';

INSERT example

Use the following StackQL query and manifest file to create a new verified_access_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.verified_access_groups (
VerifiedAccessInstanceId,
region
)
SELECT
'{{ VerifiedAccessInstanceId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.verified_access_groups
WHERE data__Identifier = '<VerifiedAccessGroupId>'
AND region = 'us-east-1';

Permissions

To operate on the verified_access_groups resource, the following permissions are required:

Create

ec2:CreateVerifiedAccessGroup,
ec2:DescribeVerifiedAccessGroups,
ec2:GetVerifiedAccessGroupPolicy,
ec2:CreateTags,
ec2:DescribeTags,
kms:DescribeKey,
kms:RetireGrant,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt

Read

ec2:DescribeVerifiedAccessGroups,
ec2:GetVerifiedAccessGroupPolicy,
ec2:DescribeTags,
kms:DescribeKey,
kms:RetireGrant,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt

Update

ec2:ModifyVerifiedAccessGroup,
ec2:ModifyVerifiedAccessGroupPolicy,
ec2:DescribeVerifiedAccessGroups,
ec2:GetVerifiedAccessGroupPolicy,
ec2:DescribeTags,
ec2:DeleteTags,
ec2:CreateTags,
kms:DescribeKey,
kms:RetireGrant,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt

Delete

ec2:DeleteVerifiedAccessGroup,
ec2:DeleteTags,
ec2:DescribeVerifiedAccessGroups,
ec2:DescribeTags,
kms:DescribeKey,
kms:RetireGrant,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt

List

ec2:DescribeVerifiedAccessGroups,
ec2:DescribeTags,
kms:DescribeKey,
kms:RetireGrant,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt