Skip to main content

resolver_query_logging_config_associations

Creates, updates, deletes or gets a resolver_query_logging_config_association resource or lists resolver_query_logging_config_associations in a region

Overview

Nameresolver_query_logging_config_associations
TypeResource
DescriptionResource schema for AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation.
Idaws.route53resolver.resolver_query_logging_config_associations

Fields

NameDatatypeDescription
idstringId
resolver_query_log_config_idstringResolverQueryLogConfigId
resource_idstringResourceId
statusstringResolverQueryLogConfigAssociationStatus
errorstringResolverQueryLogConfigAssociationError
error_messagestringResolverQueryLogConfigAssociationErrorMessage
creation_timestringRfc3339TimeString
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resolver_query_logging_config_associations in a region.

SELECT
region,
id,
resolver_query_log_config_id,
resource_id,
status,
error,
error_message,
creation_time
FROM aws.route53resolver.resolver_query_logging_config_associations
WHERE region = 'us-east-1';

Gets all properties from an individual resolver_query_logging_config_association.

SELECT
region,
id,
resolver_query_log_config_id,
resource_id,
status,
error,
error_message,
creation_time
FROM aws.route53resolver.resolver_query_logging_config_associations
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.route53resolver.resolver_query_logging_config_associations (
ResolverQueryLogConfigId,
ResourceId,
region
)
SELECT
'{{ ResolverQueryLogConfigId }}',
'{{ ResourceId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.route53resolver.resolver_query_logging_config_associations
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

resolverquerylogging:AssociateConfig,
resolverquerylogging:GetConfigAssociation,
route53resolver:AssociateResolverQueryLogConfig,
ec2:DescribeVpcs,
route53resolver:GetResolverQueryLogConfigAssociation

Read

resolverquerylogging:GetConfigAssociation,
route53resolver:GetResolverQueryLogConfigAssociation

Delete

resolverquerylogging:DisassociateConfig,
resolverquerylogging:ListConfigAssociation,
route53resolver:DisassociateResolverQueryLogConfig,
route53resolver:ListResolverQueryLogConfigAssociations,
route53resolver:GetResolverQueryLogConfigAssociation

List

resolverquerylogging:ListConfigAssociations,
route53resolver:ListResolverQueryLogConfigAssociations