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.
Idawscc.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.

For more information, see AWS::EC2::VerifiedAccessGroup.

Methods

NameResourceAccessible byRequired Params
create_resourceverified_access_groupsINSERTVerifiedAccessInstanceId, region
delete_resourceverified_access_groupsDELETEIdentifier, region
update_resourceverified_access_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesverified_access_groups_list_onlySELECTregion
get_resourceverified_access_groupsSELECTIdentifier, region

SELECT examples

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 awscc.ec2.verified_access_groups
WHERE
region = '{{ region }}' AND
Identifier = '{{ verified_access_group_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.ec2.verified_access_groups (
VerifiedAccessInstanceId,
region
)
SELECT
'{{ verified_access_instance_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.ec2.verified_access_groups
SET PatchDocument = string('{{ {
"VerifiedAccessInstanceId": verified_access_instance_id,
"Description": description,
"PolicyDocument": policy_document,
"PolicyEnabled": policy_enabled,
"Tags": tags,
"SseSpecification": sse_specification
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ verified_access_group_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.verified_access_groups
WHERE
Identifier = '{{ verified_access_group_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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