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.
Idawscc.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
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::Route53Resolver::ResolverQueryLoggingConfig.

Methods

NameResourceAccessible byRequired Params
create_resourceresolver_query_logging_configsINSERTregion
delete_resourceresolver_query_logging_configsDELETEIdentifier, region
list_resourcesresolver_query_logging_configs_list_onlySELECTregion
get_resourceresolver_query_logging_configsSELECTIdentifier, region

SELECT examples

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,
tags
FROM awscc.route53resolver.resolver_query_logging_configs
WHERE
region = '{{ region }}' AND
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 awscc.route53resolver.resolver_query_logging_configs (
Name,
DestinationArn,
Tags,
region
)
SELECT
'{{ name }}',
'{{ destination_arn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

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

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,
route53resolver:ListTagsForResource,
route53resolver:TagResource,
route53resolver:ListResolverQueryLogConfigs