| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ElastiCache.CreateCacheSecurityGroup
Description
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.
Synopsis
- data CreateCacheSecurityGroup = CreateCacheSecurityGroup' {
- tags :: Maybe [Tag]
- cacheSecurityGroupName :: Text
- description :: Text
- newCreateCacheSecurityGroup :: Text -> Text -> CreateCacheSecurityGroup
- createCacheSecurityGroup_tags :: Lens' CreateCacheSecurityGroup (Maybe [Tag])
- createCacheSecurityGroup_cacheSecurityGroupName :: Lens' CreateCacheSecurityGroup Text
- createCacheSecurityGroup_description :: Lens' CreateCacheSecurityGroup Text
- data CreateCacheSecurityGroupResponse = CreateCacheSecurityGroupResponse' {}
- newCreateCacheSecurityGroupResponse :: Int -> CreateCacheSecurityGroupResponse
- createCacheSecurityGroupResponse_cacheSecurityGroup :: Lens' CreateCacheSecurityGroupResponse (Maybe CacheSecurityGroup)
- createCacheSecurityGroupResponse_httpStatus :: Lens' CreateCacheSecurityGroupResponse Int
Creating a Request
data CreateCacheSecurityGroup Source #
Represents the input of a CreateCacheSecurityGroup operation.
See: newCreateCacheSecurityGroup smart constructor.
Constructors
| CreateCacheSecurityGroup' | |
Fields
| |
Instances
newCreateCacheSecurityGroup Source #
Create a value of CreateCacheSecurityGroup with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:CreateCacheSecurityGroup', createCacheSecurityGroup_tags - A list of tags to be added to this resource. A tag is a key-value pair.
A tag key must be accompanied by a tag value, although null is accepted.
CreateCacheSecurityGroup, createCacheSecurityGroup_cacheSecurityGroupName - 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
CreateCacheSecurityGroup, createCacheSecurityGroup_description - A description for the cache security group.
Request Lenses
createCacheSecurityGroup_tags :: Lens' CreateCacheSecurityGroup (Maybe [Tag]) Source #
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
createCacheSecurityGroup_cacheSecurityGroupName :: 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
createCacheSecurityGroup_description :: Lens' CreateCacheSecurityGroup Text Source #
A description for the cache security group.
Destructuring the Response
data CreateCacheSecurityGroupResponse Source #
See: newCreateCacheSecurityGroupResponse smart constructor.
Constructors
| CreateCacheSecurityGroupResponse' | |
Fields
| |
Instances
newCreateCacheSecurityGroupResponse Source #
Create a value of CreateCacheSecurityGroupResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cacheSecurityGroup:CreateCacheSecurityGroupResponse', createCacheSecurityGroupResponse_cacheSecurityGroup - Undocumented member.
$sel:httpStatus:CreateCacheSecurityGroupResponse', createCacheSecurityGroupResponse_httpStatus - The response's http status code.
Response Lenses
createCacheSecurityGroupResponse_cacheSecurityGroup :: Lens' CreateCacheSecurityGroupResponse (Maybe CacheSecurityGroup) Source #
Undocumented member.
createCacheSecurityGroupResponse_httpStatus :: Lens' CreateCacheSecurityGroupResponse Int Source #
The response's http status code.