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 subnet group.
Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).
Synopsis
- data CreateCacheSubnetGroup = CreateCacheSubnetGroup' {
- tags :: Maybe [Tag]
- cacheSubnetGroupName :: Text
- cacheSubnetGroupDescription :: Text
- subnetIds :: [Text]
- newCreateCacheSubnetGroup :: Text -> Text -> CreateCacheSubnetGroup
- createCacheSubnetGroup_tags :: Lens' CreateCacheSubnetGroup (Maybe [Tag])
- createCacheSubnetGroup_cacheSubnetGroupName :: Lens' CreateCacheSubnetGroup Text
- createCacheSubnetGroup_cacheSubnetGroupDescription :: Lens' CreateCacheSubnetGroup Text
- createCacheSubnetGroup_subnetIds :: Lens' CreateCacheSubnetGroup [Text]
- data CreateCacheSubnetGroupResponse = CreateCacheSubnetGroupResponse' {}
- newCreateCacheSubnetGroupResponse :: Int -> CreateCacheSubnetGroupResponse
- createCacheSubnetGroupResponse_cacheSubnetGroup :: Lens' CreateCacheSubnetGroupResponse (Maybe CacheSubnetGroup)
- createCacheSubnetGroupResponse_httpStatus :: Lens' CreateCacheSubnetGroupResponse Int
Creating a Request
data CreateCacheSubnetGroup Source #
Represents the input of a CreateCacheSubnetGroup
operation.
See: newCreateCacheSubnetGroup
smart constructor.
CreateCacheSubnetGroup' | |
|
Instances
newCreateCacheSubnetGroup Source #
:: Text | |
-> Text | |
-> CreateCacheSubnetGroup |
Create a value of CreateCacheSubnetGroup
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:CreateCacheSubnetGroup'
, createCacheSubnetGroup_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:cacheSubnetGroupName:CreateCacheSubnetGroup'
, createCacheSubnetGroup_cacheSubnetGroupName
- A name for the cache subnet group. This value is stored as a lowercase
string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example: mysubnetgroup
$sel:cacheSubnetGroupDescription:CreateCacheSubnetGroup'
, createCacheSubnetGroup_cacheSubnetGroupDescription
- A description for the cache subnet group.
$sel:subnetIds:CreateCacheSubnetGroup'
, createCacheSubnetGroup_subnetIds
- A list of VPC subnet IDs for the cache subnet group.
Request Lenses
createCacheSubnetGroup_tags :: Lens' CreateCacheSubnetGroup (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.
createCacheSubnetGroup_cacheSubnetGroupName :: Lens' CreateCacheSubnetGroup Text Source #
A name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example: mysubnetgroup
createCacheSubnetGroup_cacheSubnetGroupDescription :: Lens' CreateCacheSubnetGroup Text Source #
A description for the cache subnet group.
createCacheSubnetGroup_subnetIds :: Lens' CreateCacheSubnetGroup [Text] Source #
A list of VPC subnet IDs for the cache subnet group.
Destructuring the Response
data CreateCacheSubnetGroupResponse Source #
See: newCreateCacheSubnetGroupResponse
smart constructor.
CreateCacheSubnetGroupResponse' | |
|
Instances
Eq CreateCacheSubnetGroupResponse Source # | |
Read CreateCacheSubnetGroupResponse Source # | |
Show CreateCacheSubnetGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup | |
Generic CreateCacheSubnetGroupResponse Source # | |
NFData CreateCacheSubnetGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup rnf :: CreateCacheSubnetGroupResponse -> () # | |
type Rep CreateCacheSubnetGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheSubnetGroup type Rep CreateCacheSubnetGroupResponse = D1 ('MetaData "CreateCacheSubnetGroupResponse" "Amazonka.ElastiCache.CreateCacheSubnetGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "CreateCacheSubnetGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cacheSubnetGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheSubnetGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateCacheSubnetGroupResponse Source #
Create a value of CreateCacheSubnetGroupResponse
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:cacheSubnetGroup:CreateCacheSubnetGroupResponse'
, createCacheSubnetGroupResponse_cacheSubnetGroup
- Undocumented member.
$sel:httpStatus:CreateCacheSubnetGroupResponse'
, createCacheSubnetGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createCacheSubnetGroupResponse_cacheSubnetGroup :: Lens' CreateCacheSubnetGroupResponse (Maybe CacheSubnetGroup) Source #
Undocumented member.
createCacheSubnetGroupResponse_httpStatus :: Lens' CreateCacheSubnetGroupResponse Int Source #
The response's http status code.