import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutRuleGroupsNamespaceRequest, PutRuleGroupsNamespaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutRuleGroupsNamespaceCommand}. */ export interface PutRuleGroupsNamespaceCommandInput extends PutRuleGroupsNamespaceRequest { } /** * @public * * The output of {@link PutRuleGroupsNamespaceCommand}. */ export interface PutRuleGroupsNamespaceCommandOutput extends PutRuleGroupsNamespaceResponse, __MetadataBearer { } declare const PutRuleGroupsNamespaceCommand_base: { new (input: PutRuleGroupsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutRuleGroupsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.

The combined length of a rule group namespace and a rule group name cannot exceed 721 UTF-8 bytes.

Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use CreateRuleGroupsNamespace.

You can't use this operation to add tags to an existing rule groups namespace. Instead, use TagResource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AmpClient, PutRuleGroupsNamespaceCommand } from "@aws-sdk/client-amp"; // ES Modules import * // const { AmpClient, PutRuleGroupsNamespaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import * // import type { AmpClientConfig } from "@aws-sdk/client-amp"; * const config = {}; // type is AmpClientConfig * const client = new AmpClient(config); * const input = { // PutRuleGroupsNamespaceRequest * workspaceId: "STRING_VALUE", // required * name: "STRING_VALUE", // required * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * clientToken: "STRING_VALUE", * }; * const command = new PutRuleGroupsNamespaceCommand(input); * const response = await client.send(command); * // { // PutRuleGroupsNamespaceResponse * // name: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // status: { // RuleGroupsNamespaceStatus * // statusCode: "STRING_VALUE", // required * // statusReason: "STRING_VALUE", * // }, * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param PutRuleGroupsNamespaceCommandInput - {@link PutRuleGroupsNamespaceCommandInput} * @returns {@link PutRuleGroupsNamespaceCommandOutput} * @see {@link PutRuleGroupsNamespaceCommandInput} for command's `input` shape. * @see {@link PutRuleGroupsNamespaceCommandOutput} for command's `response` shape. * @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The request would cause an inconsistent state.

* * @throws {@link InternalServerException} (server fault) *

An unexpected error occurred during the processing of the request.

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

The request references a resources that doesn't exist.

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

Completing the request would cause a service quota to be exceeded.

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

The request was denied due to request throttling.

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

The input fails to satisfy the constraints specified by an Amazon Web Services service.

* * @throws {@link AmpServiceException} *

Base exception class for all service exceptions from Amp service.

* * * @public */ export declare class PutRuleGroupsNamespaceCommand extends PutRuleGroupsNamespaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutRuleGroupsNamespaceRequest; output: PutRuleGroupsNamespaceResponse; }; sdk: { input: PutRuleGroupsNamespaceCommandInput; output: PutRuleGroupsNamespaceCommandOutput; }; }; }