Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateCacheSecurityGroupCommand

Creates a new cache security group. Use a cache security group to control access to one or more clusters.

Cache security groups are only used when you are creating a cluster outside of an Amazon Virtual Private Cloud (Amazon VPC). If you are creating a cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.

example

Use a bare-bones client and the command you need to make an API call.

import { ElastiCacheClient, CreateCacheSecurityGroupCommand } from "@aws-sdk/client-elasticache"; // ES Modules import
// const { ElastiCacheClient, CreateCacheSecurityGroupCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import
const client = new ElastiCacheClient(config);
const command = new CreateCacheSecurityGroupCommand(input);
const response = await client.send(command);
see

CreateCacheSecurityGroupCommandInput for command's input shape.

see

CreateCacheSecurityGroupCommandOutput for command's response shape.

see

config for ElastiCacheClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateCacheSecurityGroupCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions