Skip to main content

resolver_query_logging_configs

Creates, updates, deletes or gets a resolver_query_logging_config resource or lists resolver_query_logging_configs in a region

Overview

Nameresolver_query_logging_configs
TypeResource
DescriptionResource schema for AWS::Route53Resolver::ResolverQueryLoggingConfig.
Idaws.route53resolver.resolver_query_logging_configs

Fields

NameDatatypeDescription
idstringResourceId
owner_idstringAccountId
statusstringResolverQueryLogConfigStatus, possible values are CREATING, CREATED, DELETED AND FAILED.
share_statusstringShareStatus, possible values are NOT_SHARED, SHARED_WITH_ME, SHARED_BY_ME.
association_countintegerCount
arnstringArn
namestringResolverQueryLogConfigName
creator_request_idstringThe id of the creator request.
destination_arnstringdestination arn
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_configs in a region.

SELECT
region,
id,
owner_id,
status,
share_status,
association_count,
arn,
name,
creator_request_id,
destination_arn,
creation_time
FROM aws.route53resolver.resolver_query_logging_configs
WHERE region = 'us-east-1';

Gets all properties from an individual resolver_query_logging_config.

SELECT
region,
id,
owner_id,
status,
share_status,
association_count,
arn,
name,
creator_request_id,
destination_arn,
creation_time
FROM aws.route53resolver.resolver_query_logging_configs
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 resource, using stack-deploy.

/*+ create */
INSERT INTO aws.route53resolver.resolver_query_logging_configs (
Name,
DestinationArn,
region
)
SELECT
'{{ Name }}',
'{{ DestinationArn }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

resolverquerylogging:CreateConfig,
resolverquerylogging:GetConfig,
route53resolver:CreateResolverQueryLogConfig,
route53resolver:GetResolverQueryLogConfig,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
iam:CreateServiceLinkedRole

Read

resolverquerylogging:GetConfig,
route53resolver:GetResolverQueryLogConfig

Delete

resolverquerylogging:DeleteConfig,
resolverquerylogging:ListConfig,
route53resolver:DeleteResolverQueryLogConfig,
route53resolver:ListResolverQueryLogConfigs

List

resolverquerylogging:ListConfig,
route53resolver:ListResolverQueryLogConfigs