How to use associate_resolver_query_log_config method in localstack

Best Python code snippet using localstack_python

client.pyi

Source:client.pyi Github

copy

Full Screen

...173 Adds IP addresses to an inbound or an outbound Resolver endpoint.174 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.associate_resolver_endpoint_ip_address)175 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#associate_resolver_endpoint_ip_address)176 """177 def associate_resolver_query_log_config(178 self, *, ResolverQueryLogConfigId: str, ResourceId: str179 ) -> AssociateResolverQueryLogConfigResponseTypeDef:180 """181 Associates an Amazon VPC with a specified query logging configuration.182 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.associate_resolver_query_log_config)183 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#associate_resolver_query_log_config)184 """185 def associate_resolver_rule(186 self, *, ResolverRuleId: str, VPCId: str, Name: str = None187 ) -> AssociateResolverRuleResponseTypeDef:188 """189 Associates a Resolver rule with a VPC.190 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.associate_resolver_rule)191 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#associate_resolver_rule)192 """193 def can_paginate(self, operation_name: str) -> bool:194 """195 Check if an operation can be paginated.196 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.can_paginate)197 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#can_paginate)198 """199 def close(self) -> None:200 """201 Closes underlying endpoint connections.202 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.close)203 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#close)204 """205 def create_firewall_domain_list(206 self, *, CreatorRequestId: str, Name: str, Tags: List["TagTypeDef"] = None207 ) -> CreateFirewallDomainListResponseTypeDef:208 """209 Creates an empty firewall domain list for use in DNS Firewall rules.210 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.create_firewall_domain_list)211 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#create_firewall_domain_list)212 """213 def create_firewall_rule(214 self,215 *,216 CreatorRequestId: str,217 FirewallRuleGroupId: str,218 FirewallDomainListId: str,219 Priority: int,220 Action: ActionType,221 Name: str,222 BlockResponse: BlockResponseType = None,223 BlockOverrideDomain: str = None,224 BlockOverrideDnsType: Literal["CNAME"] = None,225 BlockOverrideTtl: int = None226 ) -> CreateFirewallRuleResponseTypeDef:227 """228 Creates a single DNS Firewall rule in the specified rule group, using the229 specified domain list.230 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.create_firewall_rule)231 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#create_firewall_rule)232 """233 def create_firewall_rule_group(234 self, *, CreatorRequestId: str, Name: str, Tags: List["TagTypeDef"] = None235 ) -> CreateFirewallRuleGroupResponseTypeDef:236 """237 Creates an empty DNS Firewall rule group for filtering DNS network traffic in a238 VPC.239 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.create_firewall_rule_group)240 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#create_firewall_rule_group)241 """242 def create_resolver_endpoint(243 self,244 *,245 CreatorRequestId: str,246 SecurityGroupIds: List[str],247 Direction: ResolverEndpointDirectionType,248 IpAddresses: List["IpAddressRequestTypeDef"],249 Name: str = None,250 Tags: List["TagTypeDef"] = None251 ) -> CreateResolverEndpointResponseTypeDef:252 """253 Creates a Resolver endpoint.254 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.create_resolver_endpoint)255 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#create_resolver_endpoint)256 """257 def create_resolver_query_log_config(258 self,259 *,260 Name: str,261 DestinationArn: str,262 CreatorRequestId: str,263 Tags: List["TagTypeDef"] = None264 ) -> CreateResolverQueryLogConfigResponseTypeDef:265 """266 Creates a Resolver query logging configuration, which defines where you want267 Resolver to save DNS query logs that originate in your VPCs.268 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.create_resolver_query_log_config)269 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#create_resolver_query_log_config)270 """271 def create_resolver_rule(272 self,273 *,274 CreatorRequestId: str,275 RuleType: RuleTypeOptionType,276 DomainName: str,277 Name: str = None,278 TargetIps: List["TargetAddressTypeDef"] = None,279 ResolverEndpointId: str = None,280 Tags: List["TagTypeDef"] = None281 ) -> CreateResolverRuleResponseTypeDef:282 """283 For DNS queries that originate in your VPCs, specifies which Resolver endpoint284 the queries pass through, one domain name that you want to forward to your285 network, and the IP addresses of the DNS resolvers in your network.286 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.create_resolver_rule)287 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#create_resolver_rule)288 """289 def delete_firewall_domain_list(290 self, *, FirewallDomainListId: str291 ) -> DeleteFirewallDomainListResponseTypeDef:292 """293 Deletes the specified domain list.294 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.delete_firewall_domain_list)295 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#delete_firewall_domain_list)296 """297 def delete_firewall_rule(298 self, *, FirewallRuleGroupId: str, FirewallDomainListId: str299 ) -> DeleteFirewallRuleResponseTypeDef:300 """301 Deletes the specified firewall rule.302 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.delete_firewall_rule)303 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#delete_firewall_rule)304 """305 def delete_firewall_rule_group(306 self, *, FirewallRuleGroupId: str307 ) -> DeleteFirewallRuleGroupResponseTypeDef:308 """309 Deletes the specified firewall rule group.310 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.delete_firewall_rule_group)311 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#delete_firewall_rule_group)312 """313 def delete_resolver_endpoint(314 self, *, ResolverEndpointId: str315 ) -> DeleteResolverEndpointResponseTypeDef:316 """317 Deletes a Resolver endpoint.318 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.delete_resolver_endpoint)319 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#delete_resolver_endpoint)320 """321 def delete_resolver_query_log_config(322 self, *, ResolverQueryLogConfigId: str323 ) -> DeleteResolverQueryLogConfigResponseTypeDef:324 """325 Deletes a query logging configuration.326 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.delete_resolver_query_log_config)327 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#delete_resolver_query_log_config)328 """329 def delete_resolver_rule(self, *, ResolverRuleId: str) -> DeleteResolverRuleResponseTypeDef:330 """331 Deletes a Resolver rule.332 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.delete_resolver_rule)333 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#delete_resolver_rule)334 """335 def disassociate_firewall_rule_group(336 self, *, FirewallRuleGroupAssociationId: str337 ) -> DisassociateFirewallRuleGroupResponseTypeDef:338 """339 Disassociates a FirewallRuleGroup from a VPC, to remove DNS filtering from the340 VPC.341 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.disassociate_firewall_rule_group)342 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#disassociate_firewall_rule_group)343 """344 def disassociate_resolver_endpoint_ip_address(345 self, *, ResolverEndpointId: str, IpAddress: "IpAddressUpdateTypeDef"346 ) -> DisassociateResolverEndpointIpAddressResponseTypeDef:347 """348 Removes IP addresses from an inbound or an outbound Resolver endpoint.349 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.disassociate_resolver_endpoint_ip_address)350 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#disassociate_resolver_endpoint_ip_address)351 """352 def disassociate_resolver_query_log_config(353 self, *, ResolverQueryLogConfigId: str, ResourceId: str354 ) -> DisassociateResolverQueryLogConfigResponseTypeDef:355 """356 Disassociates a VPC from a query logging configuration.357 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.disassociate_resolver_query_log_config)358 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#disassociate_resolver_query_log_config)359 """360 def disassociate_resolver_rule(361 self, *, VPCId: str, ResolverRuleId: str362 ) -> DisassociateResolverRuleResponseTypeDef:363 """364 Removes the association between a specified Resolver rule and a specified VPC.365 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/route53resolver.html#Route53Resolver.Client.disassociate_resolver_rule)366 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_route53resolver/client.html#disassociate_resolver_rule)...

Full Screen

Full Screen

ALE_single_account.py

Source:ALE_single_account.py Github

copy

Full Screen

...268 logging.info("Route 53 Query Logging Created. Resource ID:" + r53_query_log_id)269 for vpc in r53_working_list:270 logging.info("Associating " + vpc + " with the created Route 53 Query Logging.")271 logging.info("AssociateResolverQueryLogConfig")272 activate_r53_logs = route53resolver.associate_resolver_query_log_config(273 ResolverQueryLogConfigId=r53_query_log_id,274 ResourceId=vpc275 )276 except Exception as exception_handle:277 logging.error(exception_handle)278# 6. Turn on S3 Logging.279def s3_logs(region_list, unique_end):280 """Function to turn on S3 Logs for Buckets"""281 for aws_region in region_list:282 logging.info("Checking for S3 Logging on for Buckets in region " + aws_region + ".")283 account_number = sts.get_caller_identity()["Account"]284 s3 = boto3.client('s3', region_name=aws_region)285 try:286 S3List: list = []...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful