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

Fields

NameDatatypeDescription
idstringId
resolver_query_log_config_idstringResolverQueryLogConfigId
resource_idstringResourceId
statusstringResolverQueryLogConfigAssociationStatus
errorstringResolverQueryLogConfigAssociationError
error_messagestringResolverQueryLogConfigAssociationErrorMessage
creation_timestringRfc3339TimeString
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceresolver_query_logging_config_associationsINSERTregion
delete_resourceresolver_query_logging_config_associationsDELETEIdentifier, region
list_resourcesresolver_query_logging_config_associations_list_onlySELECTregion
get_resourceresolver_query_logging_config_associationsSELECTIdentifier, region

SELECT examples

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 awscc.route53resolver.resolver_query_logging_config_associations
WHERE
region = '{{ region }}' AND
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 awscc.route53resolver.resolver_query_logging_config_associations (
ResolverQueryLogConfigId,
ResourceId,
region
)
SELECT
'{{ resolver_query_log_config_id }}',
'{{ resource_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.route53resolver.resolver_query_logging_config_associations
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_config_associations resource, the following permissions are required:

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