import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AuthorizeIpRulesRequest, AuthorizeIpRulesResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AuthorizeIpRulesCommand}. */ export interface AuthorizeIpRulesCommandInput extends AuthorizeIpRulesRequest { } /** * @public * * The output of {@link AuthorizeIpRulesCommand}. */ export interface AuthorizeIpRulesCommandOutput extends AuthorizeIpRulesResult, __MetadataBearer { } declare const AuthorizeIpRulesCommand_base: { new (input: AuthorizeIpRulesCommandInput): import("@smithy/core/client").CommandImpl; new (input: AuthorizeIpRulesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds one or more rules to the specified IP access control group.

*

This action gives users permission to access their WorkSpaces from the CIDR address * ranges specified in the rules.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, AuthorizeIpRulesCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, AuthorizeIpRulesCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import * // import type { WorkSpacesClientConfig } from "@aws-sdk/client-workspaces"; * const config = {}; // type is WorkSpacesClientConfig * const client = new WorkSpacesClient(config); * const input = { // AuthorizeIpRulesRequest * GroupId: "STRING_VALUE", // required * UserRules: [ // IpRuleList // required * { // IpRuleItem * ipRule: "STRING_VALUE", * ruleDesc: "STRING_VALUE", * }, * ], * }; * const command = new AuthorizeIpRulesCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param AuthorizeIpRulesCommandInput - {@link AuthorizeIpRulesCommandInput} * @returns {@link AuthorizeIpRulesCommandOutput} * @see {@link AuthorizeIpRulesCommandInput} for command's `input` shape. * @see {@link AuthorizeIpRulesCommandOutput} for command's `response` shape. * @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The user is not authorized to access a resource.

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

One or more parameter values are not valid.

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

The state of the resource is not valid for this operation.

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

Your resource limits have been exceeded.

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

The resource could not be found.

* * @throws {@link WorkSpacesServiceException} *

Base exception class for all service exceptions from WorkSpaces service.

* * * @public */ export declare class AuthorizeIpRulesCommand extends AuthorizeIpRulesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AuthorizeIpRulesRequest; output: {}; }; sdk: { input: AuthorizeIpRulesCommandInput; output: AuthorizeIpRulesCommandOutput; }; }; }