Best Python code snippet using localstack_python
get_resolver_rule.py
Source:get_resolver_rule.py
...119 resolver_rule_id=self.resolver_rule_id,120 rule_type=self.rule_type,121 share_status=self.share_status,122 tags=self.tags)123def get_resolver_rule(domain_name: Optional[str] = None,124 name: Optional[str] = None,125 resolver_endpoint_id: Optional[str] = None,126 resolver_rule_id: Optional[str] = None,127 rule_type: Optional[str] = None,128 tags: Optional[Mapping[str, str]] = None,129 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResolverRuleResult:130 """131 `route53.ResolverRule` provides details about a specific Route53 Resolver rule.132 ## Example Usage133 The following example shows how to get a Route53 Resolver rule based on its associated domain name and rule type.134 ```python135 import pulumi136 import pulumi_aws as aws137 example = aws.route53.get_resolver_rule(domain_name="subdomain.example.com",138 rule_type="SYSTEM")139 ```140 :param str domain_name: The domain name the desired resolver rule forwards DNS queries for. Conflicts with `resolver_rule_id`.141 :param str name: The friendly name of the desired resolver rule. Conflicts with `resolver_rule_id`.142 :param str resolver_endpoint_id: The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with `resolver_rule_id`.143 :param str resolver_rule_id: The ID of the desired resolver rule. Conflicts with `domain_name`, `name`, `resolver_endpoint_id` and `rule_type`.144 :param str rule_type: The rule type of the desired resolver rule. Valid values are `FORWARD`, `SYSTEM` and `RECURSIVE`. Conflicts with `resolver_rule_id`.145 :param Mapping[str, str] tags: A map of tags assigned to the resolver rule.146 """147 __args__ = dict()148 __args__['domainName'] = domain_name149 __args__['name'] = name150 __args__['resolverEndpointId'] = resolver_endpoint_id151 __args__['resolverRuleId'] = resolver_rule_id152 __args__['ruleType'] = rule_type153 __args__['tags'] = tags154 if opts is None:155 opts = pulumi.InvokeOptions()156 if opts.version is None:157 opts.version = _utilities.get_version()158 __ret__ = pulumi.runtime.invoke('aws:route53/getResolverRule:getResolverRule', __args__, opts=opts, typ=GetResolverRuleResult).value159 return AwaitableGetResolverRuleResult(160 arn=__ret__.arn,161 domain_name=__ret__.domain_name,162 id=__ret__.id,163 name=__ret__.name,164 owner_id=__ret__.owner_id,165 resolver_endpoint_id=__ret__.resolver_endpoint_id,166 resolver_rule_id=__ret__.resolver_rule_id,167 rule_type=__ret__.rule_type,168 share_status=__ret__.share_status,169 tags=__ret__.tags)170@_utilities.lift_output_func(get_resolver_rule)171def get_resolver_rule_output(domain_name: Optional[pulumi.Input[Optional[str]]] = None,172 name: Optional[pulumi.Input[Optional[str]]] = None,173 resolver_endpoint_id: Optional[pulumi.Input[Optional[str]]] = None,174 resolver_rule_id: Optional[pulumi.Input[Optional[str]]] = None,175 rule_type: Optional[pulumi.Input[Optional[str]]] = None,176 tags: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,177 opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResolverRuleResult]:178 """179 `route53.ResolverRule` provides details about a specific Route53 Resolver rule.180 ## Example Usage181 The following example shows how to get a Route53 Resolver rule based on its associated domain name and rule type.182 ```python183 import pulumi184 import pulumi_aws as aws185 example = aws.route53.get_resolver_rule(domain_name="subdomain.example.com",186 rule_type="SYSTEM")187 ```188 :param str domain_name: The domain name the desired resolver rule forwards DNS queries for. Conflicts with `resolver_rule_id`.189 :param str name: The friendly name of the desired resolver rule. Conflicts with `resolver_rule_id`.190 :param str resolver_endpoint_id: The ID of the outbound resolver endpoint of the desired resolver rule. Conflicts with `resolver_rule_id`.191 :param str resolver_rule_id: The ID of the desired resolver rule. Conflicts with `domain_name`, `name`, `resolver_endpoint_id` and `rule_type`.192 :param str rule_type: The rule type of the desired resolver rule. Valid values are `FORWARD`, `SYSTEM` and `RECURSIVE`. Conflicts with `resolver_rule_id`.193 :param Mapping[str, str] tags: A map of tags assigned to the resolver rule.194 """...
__main__.py
Source:__main__.py
1import pulumi2import pulumi_aws as aws3example = aws.route53.get_resolver_rule(domain_name="subdomain.example.com",...
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!!