import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ElastiCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ElastiCacheClient"; import type { RevokeCacheSecurityGroupIngressMessage, RevokeCacheSecurityGroupIngressResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RevokeCacheSecurityGroupIngressCommand}. */ export interface RevokeCacheSecurityGroupIngressCommandInput extends RevokeCacheSecurityGroupIngressMessage { } /** * @public * * The output of {@link RevokeCacheSecurityGroupIngressCommand}. */ export interface RevokeCacheSecurityGroupIngressCommandOutput extends RevokeCacheSecurityGroupIngressResult, __MetadataBearer { } declare const RevokeCacheSecurityGroupIngressCommand_base: { new (input: RevokeCacheSecurityGroupIngressCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: RevokeCacheSecurityGroupIngressCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Revokes ingress from a cache security group. Use this operation to disallow access * from an Amazon EC2 security group that had been previously authorized.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, RevokeCacheSecurityGroupIngressCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, RevokeCacheSecurityGroupIngressCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import * // import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; * const config = {}; // type is ElastiCacheClientConfig * const client = new ElastiCacheClient(config); * const input = { // RevokeCacheSecurityGroupIngressMessage * CacheSecurityGroupName: "STRING_VALUE", // required * EC2SecurityGroupName: "STRING_VALUE", // required * EC2SecurityGroupOwnerId: "STRING_VALUE", // required * }; * const command = new RevokeCacheSecurityGroupIngressCommand(input); * const response = await client.send(command); * // { // RevokeCacheSecurityGroupIngressResult * // CacheSecurityGroup: { // CacheSecurityGroup * // OwnerId: "STRING_VALUE", * // CacheSecurityGroupName: "STRING_VALUE", * // Description: "STRING_VALUE", * // EC2SecurityGroups: [ // EC2SecurityGroupList * // { // EC2SecurityGroup * // Status: "STRING_VALUE", * // EC2SecurityGroupName: "STRING_VALUE", * // EC2SecurityGroupOwnerId: "STRING_VALUE", * // }, * // ], * // ARN: "STRING_VALUE", * // }, * // }; * * ``` * * @param RevokeCacheSecurityGroupIngressCommandInput - {@link RevokeCacheSecurityGroupIngressCommandInput} * @returns {@link RevokeCacheSecurityGroupIngressCommandOutput} * @see {@link RevokeCacheSecurityGroupIngressCommandInput} for command's `input` shape. * @see {@link RevokeCacheSecurityGroupIngressCommandOutput} for command's `response` shape. * @see {@link ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link AuthorizationNotFoundFault} (client fault) *

The specified Amazon EC2 security group is not authorized for the specified cache * security group.

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

The requested cache security group name does not refer to an existing cache security * group.

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

The current state of the cache security group does not allow deletion.

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

Two or more incompatible parameters were specified.

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

The value for a parameter is invalid.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @example DescribeCacheSecurityGroups * ```javascript * // Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group. * const input = { * CacheSecurityGroupName: "my-sec-grp", * EC2SecurityGroupName: "my-ec2-sec-grp", * EC2SecurityGroupOwnerId: "1234567890" * }; * const command = new RevokeCacheSecurityGroupIngressCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class RevokeCacheSecurityGroupIngressCommand extends RevokeCacheSecurityGroupIngressCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RevokeCacheSecurityGroupIngressMessage; output: RevokeCacheSecurityGroupIngressResult; }; sdk: { input: RevokeCacheSecurityGroupIngressCommandInput; output: RevokeCacheSecurityGroupIngressCommandOutput; }; }; }