| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <[email protected]> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.ElastiCache.CreateCacheSecurityGroup
Description
The CreateCacheSecurityGroup action 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 (VPC). If you are creating a cache cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.
- createCacheSecurityGroup :: Text -> Text -> CreateCacheSecurityGroup
- data CreateCacheSecurityGroup
- ccsgCacheSecurityGroupName :: Lens' CreateCacheSecurityGroup Text
- ccsgDescription :: Lens' CreateCacheSecurityGroup Text
- createCacheSecurityGroupResponse :: Int -> CreateCacheSecurityGroupResponse
- data CreateCacheSecurityGroupResponse
- ccsgrsCacheSecurityGroup :: Lens' CreateCacheSecurityGroupResponse (Maybe CacheSecurityGroup)
- ccsgrsResponseStatus :: Lens' CreateCacheSecurityGroupResponse Int
Creating a Request
createCacheSecurityGroup Source #
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:
data CreateCacheSecurityGroup Source #
Represents the input of a CreateCacheSecurityGroup action.
See: createCacheSecurityGroup smart constructor.
Instances
Request Lenses
ccsgCacheSecurityGroupName :: Lens' CreateCacheSecurityGroup Text Source #
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 Source #
A description for the cache security group.
Destructuring the Response
createCacheSecurityGroupResponse Source #
Arguments
| :: Int | |
| -> 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 Source #
See: createCacheSecurityGroupResponse smart constructor.
Instances
Response Lenses
ccsgrsCacheSecurityGroup :: Lens' CreateCacheSecurityGroupResponse (Maybe CacheSecurityGroup) Source #
Undocumented member.
ccsgrsResponseStatus :: Lens' CreateCacheSecurityGroupResponse Int Source #
The response status code.