Jump to Content

New API Documentation - Developer Preview Available

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.

Class GetResolverRulePolicyCommandProtected

Gets information about the Resolver rule policy for a specified rule. A Resolver rule policy includes the rule that you want to share with another account, the account that you want to share the rule with, and the Resolver operations that you want to allow the account to use.

Example

Use a bare-bones client and the command you need to make an API call.

import { Route53ResolverClient, GetResolverRulePolicyCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import
// const { Route53ResolverClient, GetResolverRulePolicyCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS import
const client = new Route53ResolverClient(config);
const input = { // GetResolverRulePolicyRequest
Arn: "STRING_VALUE", // required
};
const command = new GetResolverRulePolicyCommand(input);
const response = await client.send(command);
// { // GetResolverRulePolicyResponse
// ResolverRulePolicy: "STRING_VALUE",
// };

Param

GetResolverRulePolicyCommandInput

Returns

GetResolverRulePolicyCommandOutput

See

Throws

AccessDeniedException (client fault)

The current account doesn't have the IAM permissions required to perform the specified Resolver operation.

Throws

InternalServiceErrorException (client fault)

We encountered an unknown error. Try again in a few minutes.

Throws

InvalidParameterException (client fault)

One or more parameters in this request are not valid.

Throws

UnknownResourceException (client fault)

The specified resource doesn't exist.

Throws

Route53ResolverServiceException

Base exception class for all service exceptions from Route53Resolver service.

Hierarchy

Constructors

Properties

Methods