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 CreateFirewallRuleGroupCommandProtected

Creates an empty DNS Firewall rule group for filtering DNS network traffic in a VPC. You can add rules to the new rule group by calling CreateFirewallRule.

Example

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

import { Route53ResolverClient, CreateFirewallRuleGroupCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import
// const { Route53ResolverClient, CreateFirewallRuleGroupCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS import
const client = new Route53ResolverClient(config);
const input = { // CreateFirewallRuleGroupRequest
CreatorRequestId: "STRING_VALUE", // required
Name: "STRING_VALUE", // required
Tags: [ // TagList
{ // Tag
Key: "STRING_VALUE", // required
Value: "STRING_VALUE", // required
},
],
};
const command = new CreateFirewallRuleGroupCommand(input);
const response = await client.send(command);
// { // CreateFirewallRuleGroupResponse
// FirewallRuleGroup: { // FirewallRuleGroup
// Id: "STRING_VALUE",
// Arn: "STRING_VALUE",
// Name: "STRING_VALUE",
// RuleCount: Number("int"),
// Status: "COMPLETE" || "DELETING" || "UPDATING",
// StatusMessage: "STRING_VALUE",
// OwnerId: "STRING_VALUE",
// CreatorRequestId: "STRING_VALUE",
// ShareStatus: "NOT_SHARED" || "SHARED_WITH_ME" || "SHARED_BY_ME",
// CreationTime: "STRING_VALUE",
// ModificationTime: "STRING_VALUE",
// },
// };

Param

CreateFirewallRuleGroupCommandInput

Returns

CreateFirewallRuleGroupCommandOutput

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

LimitExceededException (client fault)

The request caused one or more limits to be exceeded.

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