put_resolver_query_log_config_policy

Route53Resolver.Client.put_resolver_query_log_config_policy(**kwargs)

Specifies an Amazon Web Services account that you want to share a query logging configuration with, the query logging configuration that you want to share, and the operations that you want the account to be able to perform on the configuration.

See also: AWS API Documentation

Request Syntax

response = client.put_resolver_query_log_config_policy(
    Arn='string',
    ResolverQueryLogConfigPolicy='string'
)
Parameters
  • Arn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the account that you want to share rules with.

  • ResolverQueryLogConfigPolicy (string) --

    [REQUIRED]

    An Identity and Access Management policy statement that lists the query logging configurations that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Actions section of the statement:

    • route53resolver:AssociateResolverQueryLogConfig
    • route53resolver:DisassociateResolverQueryLogConfig
    • route53resolver:ListResolverQueryLogConfigAssociations
    • route53resolver:ListResolverQueryLogConfigs

    In the Resource section of the statement, you specify the ARNs for the query logging configurations that you want to share with the account that you specified in Arn .

Return type

dict

Returns

Response Syntax

{
    'ReturnValue': True|False
}

Response Structure

  • (dict) --

    The response to a PutResolverQueryLogConfigPolicy request.

    • ReturnValue (boolean) --

      Whether the PutResolverQueryLogConfigPolicy request was successful.

Exceptions

  • Route53Resolver.Client.exceptions.InvalidPolicyDocument
  • Route53Resolver.Client.exceptions.InvalidParameterException
  • Route53Resolver.Client.exceptions.InvalidRequestException
  • Route53Resolver.Client.exceptions.UnknownResourceException
  • Route53Resolver.Client.exceptions.InternalServiceErrorException
  • Route53Resolver.Client.exceptions.AccessDeniedException