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 UpdateResolverRuleCommandProtected

Updates settings for a specified Resolver rule. ResolverRuleId is required, and all other parameters are optional. If you don't specify a parameter, it retains its current value.

Example

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

import { Route53ResolverClient, UpdateResolverRuleCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import
// const { Route53ResolverClient, UpdateResolverRuleCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS import
const client = new Route53ResolverClient(config);
const input = { // UpdateResolverRuleRequest
ResolverRuleId: "STRING_VALUE", // required
Config: { // ResolverRuleConfig
Name: "STRING_VALUE",
TargetIps: [ // TargetList
{ // TargetAddress
Ip: "STRING_VALUE",
Port: Number("int"),
Ipv6: "STRING_VALUE",
},
],
ResolverEndpointId: "STRING_VALUE",
},
};
const command = new UpdateResolverRuleCommand(input);
const response = await client.send(command);
// { // UpdateResolverRuleResponse
// ResolverRule: { // 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",
// },
// };

Param

UpdateResolverRuleCommandInput

Returns

UpdateResolverRuleCommandOutput

See

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

InvalidRequestException (client fault)

The request is invalid.

Throws

LimitExceededException (client fault)

The request caused one or more limits to be exceeded.

Throws

ResourceNotFoundException (client fault)

The specified resource doesn't exist.

Throws

ResourceUnavailableException (client fault)

The specified resource isn't available.

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.

Hierarchy

Constructors

Properties

Methods