amazonka-elasticache-1.4.5: Amazon ElastiCache SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElastiCache.CreateCacheSecurityGroup

Contents

Description

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

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

Synopsis

Creating a Request

createCacheSecurityGroup #

Creates a value of CreateCacheSecurityGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ccsgCacheSecurityGroupName - A name for the cache security group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word Default. Example: mysecuritygroup
  • ccsgDescription - A description for the cache security group.

data CreateCacheSecurityGroup #

Represents the input of a CreateCacheSecurityGroup operation.

See: createCacheSecurityGroup smart constructor.

Instances

Eq CreateCacheSecurityGroup # 
Data CreateCacheSecurityGroup # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateCacheSecurityGroup -> c CreateCacheSecurityGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateCacheSecurityGroup #

toConstr :: CreateCacheSecurityGroup -> Constr #

dataTypeOf :: CreateCacheSecurityGroup -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateCacheSecurityGroup) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateCacheSecurityGroup) #

gmapT :: (forall b. Data b => b -> b) -> CreateCacheSecurityGroup -> CreateCacheSecurityGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateCacheSecurityGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateCacheSecurityGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateCacheSecurityGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateCacheSecurityGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateCacheSecurityGroup -> m CreateCacheSecurityGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCacheSecurityGroup -> m CreateCacheSecurityGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCacheSecurityGroup -> m CreateCacheSecurityGroup #

Read CreateCacheSecurityGroup # 
Show CreateCacheSecurityGroup # 
Generic CreateCacheSecurityGroup # 
Hashable CreateCacheSecurityGroup # 
NFData CreateCacheSecurityGroup # 
AWSRequest CreateCacheSecurityGroup # 
ToQuery CreateCacheSecurityGroup # 
ToPath CreateCacheSecurityGroup # 
ToHeaders CreateCacheSecurityGroup # 
type Rep CreateCacheSecurityGroup # 
type Rep CreateCacheSecurityGroup = D1 (MetaData "CreateCacheSecurityGroup" "Network.AWS.ElastiCache.CreateCacheSecurityGroup" "amazonka-elasticache-1.4.5-Ai9oTU2RTbj2M0sGqfSNp8" False) (C1 (MetaCons "CreateCacheSecurityGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccsgCacheSecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccsgDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateCacheSecurityGroup # 

Request Lenses

ccsgCacheSecurityGroupName :: Lens' CreateCacheSecurityGroup Text #

A name for the cache security group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word Default. Example: mysecuritygroup

ccsgDescription :: Lens' CreateCacheSecurityGroup Text #

A description for the cache security group.

Destructuring the Response

createCacheSecurityGroupResponse #

Creates a value of CreateCacheSecurityGroupResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateCacheSecurityGroupResponse #

See: createCacheSecurityGroupResponse smart constructor.

Instances

Eq CreateCacheSecurityGroupResponse # 
Data CreateCacheSecurityGroupResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateCacheSecurityGroupResponse -> c CreateCacheSecurityGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateCacheSecurityGroupResponse #

toConstr :: CreateCacheSecurityGroupResponse -> Constr #

dataTypeOf :: CreateCacheSecurityGroupResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateCacheSecurityGroupResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateCacheSecurityGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateCacheSecurityGroupResponse -> CreateCacheSecurityGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateCacheSecurityGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateCacheSecurityGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateCacheSecurityGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateCacheSecurityGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateCacheSecurityGroupResponse -> m CreateCacheSecurityGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCacheSecurityGroupResponse -> m CreateCacheSecurityGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCacheSecurityGroupResponse -> m CreateCacheSecurityGroupResponse #

Read CreateCacheSecurityGroupResponse # 
Show CreateCacheSecurityGroupResponse # 
Generic CreateCacheSecurityGroupResponse # 
NFData CreateCacheSecurityGroupResponse # 
type Rep CreateCacheSecurityGroupResponse # 
type Rep CreateCacheSecurityGroupResponse = D1 (MetaData "CreateCacheSecurityGroupResponse" "Network.AWS.ElastiCache.CreateCacheSecurityGroup" "amazonka-elasticache-1.4.5-Ai9oTU2RTbj2M0sGqfSNp8" False) (C1 (MetaCons "CreateCacheSecurityGroupResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccsgrsCacheSecurityGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CacheSecurityGroup))) (S1 (MetaSel (Just Symbol "_ccsgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses