We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Lists the Resolver rules that were created using the current Amazon Web Services account.
Use a bare-bones client and the command you need to make an API call.
import { Route53ResolverClient, ListResolverRulesCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import// const { Route53ResolverClient, ListResolverRulesCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS importconst client = new Route53ResolverClient(config);const input = { // ListResolverRulesRequest MaxResults: Number("int"), NextToken: "STRING_VALUE", Filters: [ // Filters { // Filter Name: "STRING_VALUE", Values: [ // FilterValues "STRING_VALUE", ], }, ],};const command = new ListResolverRulesCommand(input);const response = await client.send(command);// { // ListResolverRulesResponse// NextToken: "STRING_VALUE",// MaxResults: Number("int"),// ResolverRules: [ // ResolverRules// { // ResolverRule// Id: "STRING_VALUE",// CreatorRequestId: "STRING_VALUE",// Arn: "STRING_VALUE",// DomainName: "STRING_VALUE",// Status: "COMPLETE" || "DELETING" || "UPDATING" || "FAILED",// StatusMessage: "STRING_VALUE",// RuleType: "FORWARD" || "SYSTEM" || "RECURSIVE",// Name: "STRING_VALUE",// TargetIps: [ // TargetList// { // TargetAddress// Ip: "STRING_VALUE",// Port: Number("int"),// Ipv6: "STRING_VALUE",// },// ],// ResolverEndpointId: "STRING_VALUE",// OwnerId: "STRING_VALUE",// ShareStatus: "NOT_SHARED" || "SHARED_WITH_ME" || "SHARED_BY_ME",// CreationTime: "STRING_VALUE",// ModificationTime: "STRING_VALUE",// },// ],// };
ListResolverRulesCommandInput
ListResolverRulesCommandOutput
input
response
config
InternalServiceErrorException (client fault)
We encountered an unknown error. Try again in a few minutes.
InvalidNextTokenException (client fault)
The value that you specified for NextToken in a List request isn't valid.
NextToken
List
InvalidParameterException (client fault)
One or more parameters in this request are not valid.
InvalidRequestException (client fault)
The request is invalid.
ThrottlingException (client fault)
The request was throttled. Try again in a few minutes.
Route53ResolverServiceException
Base exception class for all service exceptions from Route53Resolver service.
Readonly
Static
Lists the Resolver rules that were created using the current Amazon Web Services account.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListResolverRulesCommandInput
Returns
ListResolverRulesCommandOutput
See
input
shape.response
shape.config
shape.Throws
InternalServiceErrorException (client fault)
We encountered an unknown error. Try again in a few minutes.
Throws
InvalidNextTokenException (client fault)
The value that you specified for
NextToken
in aList
request isn't valid.Throws
InvalidParameterException (client fault)
One or more parameters in this request are not valid.
Throws
InvalidRequestException (client fault)
The request is invalid.
Throws
ThrottlingException (client fault)
The request was throttled. Try again in a few minutes.
Throws
Route53ResolverServiceException
Base exception class for all service exceptions from Route53Resolver service.