import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetManagedRuleSetRequest, GetManagedRuleSetResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetManagedRuleSetCommand}. */ export interface GetManagedRuleSetCommandInput extends GetManagedRuleSetRequest { } /** * @public * * The output of {@link GetManagedRuleSetCommand}. */ export interface GetManagedRuleSetCommandOutput extends GetManagedRuleSetResponse, __MetadataBearer { } declare const GetManagedRuleSetCommand_base: { new (input: GetManagedRuleSetCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetManagedRuleSetCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves the specified managed rule set.

* *

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 * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WAFV2Client, GetManagedRuleSetCommand } from "@aws-sdk/client-wafv2"; // ES Modules import * // const { WAFV2Client, GetManagedRuleSetCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import * // import type { WAFV2ClientConfig } from "@aws-sdk/client-wafv2"; * const config = {}; // type is WAFV2ClientConfig * const client = new WAFV2Client(config); * const input = { // GetManagedRuleSetRequest * Name: "STRING_VALUE", // required * Scope: "CLOUDFRONT" || "REGIONAL", // required * Id: "STRING_VALUE", // required * }; * const command = new GetManagedRuleSetCommand(input); * const response = await client.send(command); * // { // GetManagedRuleSetResponse * // ManagedRuleSet: { // ManagedRuleSet * // Name: "STRING_VALUE", // required * // Id: "STRING_VALUE", // required * // ARN: "STRING_VALUE", // required * // Description: "STRING_VALUE", * // PublishedVersions: { // PublishedVersions * // "": { // ManagedRuleSetVersion * // AssociatedRuleGroupArn: "STRING_VALUE", * // Capacity: Number("long"), * // ForecastedLifetime: Number("int"), * // PublishTimestamp: new Date("TIMESTAMP"), * // LastUpdateTimestamp: new Date("TIMESTAMP"), * // ExpiryTimestamp: new Date("TIMESTAMP"), * // }, * // }, * // RecommendedVersion: "STRING_VALUE", * // LabelNamespace: "STRING_VALUE", * // }, * // LockToken: "STRING_VALUE", * // }; * * ``` * * @param GetManagedRuleSetCommandInput - {@link GetManagedRuleSetCommandInput} * @returns {@link GetManagedRuleSetCommandOutput} * @see {@link GetManagedRuleSetCommandInput} for command's `input` shape. * @see {@link GetManagedRuleSetCommandOutput} for command's `response` shape. * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape. * * @throws {@link WAFInternalErrorException} (server fault) *

Your request is valid, but WAF couldn’t perform the operation because of a system * problem. Retry your request.

* * @throws {@link WAFInvalidOperationException} (client fault) *

The operation isn't valid.

* * @throws {@link WAFInvalidParameterException} (client fault) *

The operation failed because WAF didn't recognize a parameter in the request. For * example:

*
    *
  • *

    You specified a parameter name or value that isn't valid.

    *
  • *
  • *

    Your nested statement isn't valid. You might have tried to nest a statement that * can’t be nested.

    *
  • *
  • *

    You tried to update a WebACL with a DefaultAction that * isn't among the types available at DefaultAction.

    *
  • *
  • *

    Your request references an ARN that is malformed, or corresponds to a resource * with which a web ACL can't be associated.

    *
  • *
* * @throws {@link WAFNonexistentItemException} (client fault) *

WAF couldn’t perform the operation because your resource doesn't exist. * If you've just created a resource that you're using in this operation, you might * just need to wait a few minutes. It can take from a few seconds to a number of minutes * for changes to propagate.

* * @throws {@link WAFV2ServiceException} *

Base exception class for all service exceptions from WAFV2 service.

* * * @public */ export declare class GetManagedRuleSetCommand extends GetManagedRuleSetCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetManagedRuleSetRequest; output: GetManagedRuleSetResponse; }; sdk: { input: GetManagedRuleSetCommandInput; output: GetManagedRuleSetCommandOutput; }; }; }