Skip to main content

verified_access_instances

Creates, updates, deletes or gets a verified_access_instance resource or lists verified_access_instances in a region

Overview

Nameverified_access_instances
TypeResource
DescriptionThe AWS::EC2::VerifiedAccessInstance resource creates an AWS EC2 Verified Access Instance.
Idawscc.ec2.verified_access_instances

Fields

NameDatatypeDescription
verified_access_instance_idstringThe ID of the AWS Verified Access instance.
verified_access_trust_providersarrayAWS Verified Access trust providers.
verified_access_trust_provider_idsarrayThe IDs of the AWS Verified Access trust providers.
creation_timestringTime this Verified Access Instance was created.
last_updated_timestringTime this Verified Access Instance was last updated.
descriptionstringA description for the AWS Verified Access instance.
logging_configurationsobjectThe configuration options for AWS Verified Access instances.
tagsarrayAn array of key-value pairs to apply to this resource.
fips_enabledbooleanIndicates whether FIPS is enabled
cidr_endpoints_custom_sub_domainstringIntroduce CidrEndpointsCustomSubDomain property to represent the domain (say, ava.my-company.com)
cidr_endpoints_custom_sub_domain_name_serversarrayProperty to represent the name servers assoicated with the domain that AVA manages (say, ['ns1.amazonaws.com', 'ns2.amazonaws.com', 'ns3.amazonaws.com', 'ns4.amazonaws.com']).
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceverified_access_instancesINSERTregion
delete_resourceverified_access_instancesDELETEIdentifier, region
update_resourceverified_access_instancesUPDATEIdentifier, PatchDocument, region
list_resourcesverified_access_instances_list_onlySELECTregion
get_resourceverified_access_instancesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual verified_access_instance.

SELECT
region,
verified_access_instance_id,
verified_access_trust_providers,
verified_access_trust_provider_ids,
creation_time,
last_updated_time,
description,
logging_configurations,
tags,
fips_enabled,
cidr_endpoints_custom_sub_domain,
cidr_endpoints_custom_sub_domain_name_servers
FROM awscc.ec2.verified_access_instances
WHERE
region = '{{ region }}' AND
Identifier = '{{ verified_access_instance_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.ec2.verified_access_instances (
VerifiedAccessTrustProviders,
VerifiedAccessTrustProviderIds,
Description,
LoggingConfigurations,
Tags,
FipsEnabled,
CidrEndpointsCustomSubDomain,
region
)
SELECT
'{{ verified_access_trust_providers }}',
'{{ verified_access_trust_provider_ids }}',
'{{ description }}',
'{{ logging_configurations }}',
'{{ tags }}',
'{{ fips_enabled }}',
'{{ cidr_endpoints_custom_sub_domain }}',
'{{ 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_instance resource, using stack-deploy.

/*+ update */
UPDATE awscc.ec2.verified_access_instances
SET PatchDocument = string('{{ {
"VerifiedAccessTrustProviders": verified_access_trust_providers,
"VerifiedAccessTrustProviderIds": verified_access_trust_provider_ids,
"Description": description,
"LoggingConfigurations": logging_configurations,
"Tags": tags,
"FipsEnabled": fips_enabled,
"CidrEndpointsCustomSubDomain": cidr_endpoints_custom_sub_domain
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ verified_access_instance_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.verified_access_instances
WHERE
Identifier = '{{ verified_access_instance_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_instances resource, the following permissions are required:

ec2:CreateVerifiedAccessInstance,
ec2:AttachVerifiedAccessTrustProvider,
ec2:ModifyVerifiedAccessInstanceLoggingConfiguration,
ec2:DescribeVerifiedAccessInstances,
ec2:DescribeVerifiedAccessInstanceLoggingConfigurations,
ec2:DetachVerifiedAccessTrustProvider,
ec2:DeleteVerifiedAccessInstance,
ec2:CreateTags,
ec2:DescribeTags,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:PutDestination,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutLogEvents,
logs:DescribeLogStreams,
s3:listBuckets,
s3:PutObject,
s3:GetBucketPolicy,
s3:PutBucketPolicy,
logs:DescribeLogGroups,
logs:PutResourcePolicy,
firehose:TagDeliveryStream,
logs:DescribeResourcePolicies,
iam:CreateServiceLinkedRole,
verified-access:AllowVerifiedAccess