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 GetFirewallRuleGroupPolicyCommandProtected

Returns the Identity and Access Management (Amazon Web Services IAM) policy for sharing the specified rule group. You can use the policy to share the rule group using Resource Access Manager (RAM).

Example

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

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

Param

GetFirewallRuleGroupPolicyCommandInput

Returns

GetFirewallRuleGroupPolicyCommandOutput

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

ResourceNotFoundException (client fault)

The specified resource doesn't exist.

Throws

ThrottlingException (client fault)

The request was throttled. Try again in a few minutes.

Throws

ValidationException (client fault)

You have provided an invalid command. Supported values are ADD, REMOVE, or REPLACE a domain.

Throws

Route53ResolverServiceException

Base exception class for all service exceptions from Route53Resolver service.

Hierarchy

Constructors

Properties

Methods