- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ListManagedRuleSetsCommand
Retrieves the managed rule sets that you own.
This is intended for use only by vendors of managed rule sets. Vendors are Amazon Web Services and Amazon Web Services Marketplace sellers.
Vendors, you can use the managed rule set APIs to provide controlled rollout of your versioned managed rule group offerings for your customers. The APIs are ListManagedRuleSets
, GetManagedRuleSet
, PutManagedRuleSetVersions
, and UpdateManagedRuleSetVersionExpiryDate
.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { WAFV2Client, ListManagedRuleSetsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
// const { WAFV2Client, ListManagedRuleSetsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
const client = new WAFV2Client(config);
const input = { // ListManagedRuleSetsRequest
Scope: "CLOUDFRONT" || "REGIONAL", // required
NextMarker: "STRING_VALUE",
Limit: Number("int"),
};
const command = new ListManagedRuleSetsCommand(input);
const response = await client.send(command);
// { // ListManagedRuleSetsResponse
// NextMarker: "STRING_VALUE",
// ManagedRuleSets: [ // ManagedRuleSetSummaries
// { // ManagedRuleSetSummary
// Name: "STRING_VALUE",
// Id: "STRING_VALUE",
// Description: "STRING_VALUE",
// LockToken: "STRING_VALUE",
// ARN: "STRING_VALUE",
// LabelNamespace: "STRING_VALUE",
// },
// ],
// };
ListManagedRuleSetsCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Scope Required | Scope | undefined | Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
|
Limit | number | undefined | The maximum number of objects that you want WAF to return for this request. If more objects are available, in the response, WAF provides a |
NextMarker | string | undefined | When you request a list of objects with a |
ListManagedRuleSetsCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
ManagedRuleSets | ManagedRuleSetSummary[] | undefined | Your managed rule sets. If you specified a |
NextMarker | string | undefined | When you request a list of objects with a |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
WAFInternalErrorException | server | Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request. |
WAFInvalidOperationException | client | The operation isn't valid. |
WAFInvalidParameterException | client | The operation failed because WAF didn't recognize a parameter in the request. For example:
|
WAFV2ServiceException | Base exception class for all service exceptions from WAFV2 service. |