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 Amazon ElastiCache cache parameter group. An ElastiCache cache parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster or replication group using the CacheParameterGroup.
A newly created CacheParameterGroup is an exact duplicate of the default parameter group for the CacheParameterGroupFamily. To customize the newly created CacheParameterGroup you can change the values of specific parameters. For more information, see:
- ModifyCacheParameterGroup in the ElastiCache API Reference.
- Parameters and Parameter Groups in the ElastiCache User Guide.
Synopsis
- data CreateCacheParameterGroup = CreateCacheParameterGroup' {}
- newCreateCacheParameterGroup :: Text -> Text -> Text -> CreateCacheParameterGroup
- createCacheParameterGroup_tags :: Lens' CreateCacheParameterGroup (Maybe [Tag])
- createCacheParameterGroup_cacheParameterGroupName :: Lens' CreateCacheParameterGroup Text
- createCacheParameterGroup_cacheParameterGroupFamily :: Lens' CreateCacheParameterGroup Text
- createCacheParameterGroup_description :: Lens' CreateCacheParameterGroup Text
- data CreateCacheParameterGroupResponse = CreateCacheParameterGroupResponse' {}
- newCreateCacheParameterGroupResponse :: Int -> CreateCacheParameterGroupResponse
- createCacheParameterGroupResponse_cacheParameterGroup :: Lens' CreateCacheParameterGroupResponse (Maybe CacheParameterGroup)
- createCacheParameterGroupResponse_httpStatus :: Lens' CreateCacheParameterGroupResponse Int
Creating a Request
data CreateCacheParameterGroup Source #
Represents the input of a CreateCacheParameterGroup
operation.
See: newCreateCacheParameterGroup
smart constructor.
CreateCacheParameterGroup' | |
|
Instances
newCreateCacheParameterGroup Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateCacheParameterGroup |
Create a value of CreateCacheParameterGroup
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:CreateCacheParameterGroup'
, createCacheParameterGroup_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:cacheParameterGroupName:CreateCacheParameterGroup'
, createCacheParameterGroup_cacheParameterGroupName
- A user-specified name for the cache parameter group.
$sel:cacheParameterGroupFamily:CreateCacheParameterGroup'
, createCacheParameterGroup_cacheParameterGroupFamily
- The name of the cache parameter group family that the cache parameter
group can be used with.
Valid values are: memcached1.4
| memcached1.5
| memcached1.6
|
redis2.6
| redis2.8
| redis3.2
| redis4.0
| redis5.0
|
redis6.x
|
$sel:description:CreateCacheParameterGroup'
, createCacheParameterGroup_description
- A user-specified description for the cache parameter group.
Request Lenses
createCacheParameterGroup_tags :: Lens' CreateCacheParameterGroup (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.
createCacheParameterGroup_cacheParameterGroupName :: Lens' CreateCacheParameterGroup Text Source #
A user-specified name for the cache parameter group.
createCacheParameterGroup_cacheParameterGroupFamily :: Lens' CreateCacheParameterGroup Text Source #
The name of the cache parameter group family that the cache parameter group can be used with.
Valid values are: memcached1.4
| memcached1.5
| memcached1.6
|
redis2.6
| redis2.8
| redis3.2
| redis4.0
| redis5.0
|
redis6.x
|
createCacheParameterGroup_description :: Lens' CreateCacheParameterGroup Text Source #
A user-specified description for the cache parameter group.
Destructuring the Response
data CreateCacheParameterGroupResponse Source #
See: newCreateCacheParameterGroupResponse
smart constructor.
CreateCacheParameterGroupResponse' | |
|
Instances
Eq CreateCacheParameterGroupResponse Source # | |
Read CreateCacheParameterGroupResponse Source # | |
Show CreateCacheParameterGroupResponse Source # | |
Generic CreateCacheParameterGroupResponse Source # | |
NFData CreateCacheParameterGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheParameterGroup rnf :: CreateCacheParameterGroupResponse -> () # | |
type Rep CreateCacheParameterGroupResponse Source # | |
Defined in Amazonka.ElastiCache.CreateCacheParameterGroup type Rep CreateCacheParameterGroupResponse = D1 ('MetaData "CreateCacheParameterGroupResponse" "Amazonka.ElastiCache.CreateCacheParameterGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "CreateCacheParameterGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cacheParameterGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheParameterGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateCacheParameterGroupResponse Source #
Create a value of CreateCacheParameterGroupResponse
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:cacheParameterGroup:CreateCacheParameterGroupResponse'
, createCacheParameterGroupResponse_cacheParameterGroup
- Undocumented member.
$sel:httpStatus:CreateCacheParameterGroupResponse'
, createCacheParameterGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createCacheParameterGroupResponse_cacheParameterGroup :: Lens' CreateCacheParameterGroupResponse (Maybe CacheParameterGroup) Source #
Undocumented member.
createCacheParameterGroupResponse_httpStatus :: Lens' CreateCacheParameterGroupResponse Int Source #
The response's http status code.