Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
CreateCacheSecurityGroup' | |
|
Instances
newCreateCacheSecurityGroup Source #
:: Text | |
-> Text | |
-> CreateCacheSecurityGroup |
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.
$sel:cacheSecurityGroupName: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
$sel:description: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.
CreateCacheSecurityGroupResponse' | |
|
Instances
Eq CreateCacheSecurityGroupResponse Source # | |
Read CreateCacheSecurityGroupResponse Source # | |
Show CreateCacheSecurityGroupResponse Source # | |
Generic CreateCacheSecurityGroupResponse Source # | |
NFData CreateCacheSecurityGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheSecurityGroup rnf :: CreateCacheSecurityGroupResponse -> () # | |
type Rep CreateCacheSecurityGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheSecurityGroup type Rep CreateCacheSecurityGroupResponse = D1 ('MetaData "CreateCacheSecurityGroupResponse" "Amazonka.ElastiCache.CreateCacheSecurityGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "CreateCacheSecurityGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cacheSecurityGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheSecurityGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.