Best Python code snippet using localstack_python
aws_stack.py
Source:aws_stack.py
...1028 pattern = "arn:aws:route53resolver:%s:%s:firewall-rule-group-association/%s"1029 return _resource_arn(id, pattern, account_id=account_id, region_name=region_name)1030def get_trace_id():1031 return f"1-{get_random_hex(8)}-{get_random_hex(24)}"1032def get_resolver_query_log_config_arn(id: str, account_id: str = None, region_name: str = None):1033 pattern = "arn:aws:route53resolver:%s:%s:resolver-query-log-config/%s"...
provider.py
Source:provider.py
...473 ) -> CreateResolverQueryLogConfigResponse:474 validate_destination_arn(destination_arn)475 region_details = Route53ResolverBackend.get()476 id = get_resolver_query_log_config_id()477 arn = aws_stack.get_resolver_query_log_config_arn(id)478 resolver_query_log_config: ResolverQueryLogConfig = ResolverQueryLogConfig(479 Id=id,480 Arn=arn,481 Name=name,482 AssociationCount=0,483 Status="CREATED",484 OwnerId=context.account_id,485 ShareStatus="NOT_SHARED",486 DestinationArn=destination_arn,487 CreatorRequestId=creator_request_id,488 CreationTime=datetime.now(timezone.utc).isoformat(),489 )490 region_details.resolver_query_log_configs[id] = resolver_query_log_config491 route53resolver_backends[context.region].tagger.tag_resource(arn, tags or [])...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!