verified_access_groups
Creates, updates, deletes or gets a verified_access_group
resource or lists verified_access_groups
in a region
Overview
Name | verified_access_groups |
Type | Resource |
Description | The AWS::EC2::VerifiedAccessGroup resource creates an AWS EC2 Verified Access Group. |
Id | aws.ec2.verified_access_groups |
Fields
Name | Datatype | Description |
---|---|---|
verified_access_group_id | string | The ID of the AWS Verified Access group. |
verified_access_instance_id | string | The ID of the AWS Verified Access instance. |
verified_access_group_arn | string | The ARN of the Verified Access group. |
owner | string | The AWS account number that owns the group. |
creation_time | string | Time this Verified Access Group was created. |
last_updated_time | string | Time this Verified Access Group was last updated. |
description | string | A description for the AWS Verified Access group. |
policy_document | string | The AWS Verified Access policy document. |
policy_enabled | boolean | The status of the Verified Access policy. |
tags | array | An array of key-value pairs to apply to this resource. |
sse_specification | object | The configuration options for customer provided KMS encryption. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | VerifiedAccessInstanceId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.verified_access_groups (
VerifiedAccessInstanceId,
region
)
SELECT
'{{ VerifiedAccessInstanceId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.verified_access_groups (
VerifiedAccessInstanceId,
Description,
PolicyDocument,
PolicyEnabled,
Tags,
SseSpecification,
region
)
SELECT
'{{ VerifiedAccessInstanceId }}',
'{{ Description }}',
'{{ PolicyDocument }}',
'{{ PolicyEnabled }}',
'{{ Tags }}',
'{{ SseSpecification }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: verified_access_group
props:
- name: VerifiedAccessInstanceId
value: '{{ VerifiedAccessInstanceId }}'
- name: Description
value: '{{ Description }}'
- name: PolicyDocument
value: '{{ PolicyDocument }}'
- name: PolicyEnabled
value: '{{ PolicyEnabled }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: SseSpecification
value:
KmsKeyArn: '{{ KmsKeyArn }}'
CustomerManagedKeyEnabled: '{{ CustomerManagedKeyEnabled }}'
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