Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The ModifyReplicationGroup action modifies the settings for a replication group.
See: AWS API Reference for ModifyReplicationGroup.
- modifyReplicationGroup :: Text -> ModifyReplicationGroup
- data ModifyReplicationGroup
- mrgAutomaticFailoverEnabled :: Lens' ModifyReplicationGroup (Maybe Bool)
- mrgEngineVersion :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgSnapshottingClusterId :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgSecurityGroupIds :: Lens' ModifyReplicationGroup [Text]
- mrgAutoMinorVersionUpgrade :: Lens' ModifyReplicationGroup (Maybe Bool)
- mrgReplicationGroupDescription :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgCacheParameterGroupName :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgSnapshotWindow :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgPrimaryClusterId :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgPreferredMaintenanceWindow :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgSnapshotRetentionLimit :: Lens' ModifyReplicationGroup (Maybe Int)
- mrgNotificationTopicStatus :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgApplyImmediately :: Lens' ModifyReplicationGroup (Maybe Bool)
- mrgNotificationTopicARN :: Lens' ModifyReplicationGroup (Maybe Text)
- mrgCacheSecurityGroupNames :: Lens' ModifyReplicationGroup [Text]
- mrgReplicationGroupId :: Lens' ModifyReplicationGroup Text
- modifyReplicationGroupResponse :: Int -> ModifyReplicationGroupResponse
- data ModifyReplicationGroupResponse
- mrgrsReplicationGroup :: Lens' ModifyReplicationGroupResponse (Maybe ReplicationGroup)
- mrgrsStatus :: Lens' ModifyReplicationGroupResponse Int
Creating a Request
Creates a value of ModifyReplicationGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mrgAutomaticFailoverEnabled
mrgEngineVersion
mrgSnapshottingClusterId
mrgSecurityGroupIds
mrgAutoMinorVersionUpgrade
mrgReplicationGroupDescription
mrgCacheParameterGroupName
mrgSnapshotWindow
mrgPrimaryClusterId
mrgPreferredMaintenanceWindow
mrgSnapshotRetentionLimit
mrgNotificationTopicStatus
mrgApplyImmediately
mrgNotificationTopicARN
mrgCacheSecurityGroupNames
mrgReplicationGroupId
data ModifyReplicationGroup Source
Represents the input of a ModifyReplicationGroups action.
See: modifyReplicationGroup
smart constructor.
Request Lenses
mrgAutomaticFailoverEnabled :: Lens' ModifyReplicationGroup (Maybe Bool) Source
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.
Valid values: true
| false
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
mrgEngineVersion :: Lens' ModifyReplicationGroup (Maybe Text) Source
The upgraded version of the cache engine to be run on the cache clusters in the replication group.
mrgSnapshottingClusterId :: Lens' ModifyReplicationGroup (Maybe Text) Source
The cache cluster ID that will be used as the daily snapshot source for the replication group.
mrgSecurityGroupIds :: Lens' ModifyReplicationGroup [Text] Source
Specifies the VPC Security Groups associated with the cache clusters in the replication group.
This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).
mrgAutoMinorVersionUpgrade :: Lens' ModifyReplicationGroup (Maybe Bool) Source
This parameter is currently disabled.
mrgReplicationGroupDescription :: Lens' ModifyReplicationGroup (Maybe Text) Source
A description for the replication group. Maximum length is 255 characters.
mrgCacheParameterGroupName :: Lens' ModifyReplicationGroup (Maybe Text) Source
The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
mrgSnapshotWindow :: Lens' ModifyReplicationGroup (Maybe Text) Source
The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.
Example: '05:00-09:00'
If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.
mrgPrimaryClusterId :: Lens' ModifyReplicationGroup (Maybe Text) Source
If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.
mrgPreferredMaintenanceWindow :: Lens' ModifyReplicationGroup (Maybe Text) Source
Specifies the weekly time range during which maintenance on the cache
cluster is performed. It is specified as a range in the format
ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window
is a 60 minute period. Valid values for ddd
are:
sun
mon
tue
wed
thu
fri
sat
Example: 'sun:05:00-sun:09:00'
mrgSnapshotRetentionLimit :: Lens' ModifyReplicationGroup (Maybe Int) Source
The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
mrgNotificationTopicStatus :: Lens' ModifyReplicationGroup (Maybe Text) Source
The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.
Valid values: active
| inactive
mrgApplyImmediately :: Lens' ModifyReplicationGroup (Maybe Bool) Source
If true
, this parameter causes the modifications in this request and
any pending modifications to be applied, asynchronously and as soon as
possible, regardless of the PreferredMaintenanceWindow setting for the
replication group.
If false
, then changes to the nodes in the replication group are
applied on the next maintenance reboot, or the next failure reboot,
whichever occurs first.
Valid values: true
| false
Default: false
mrgNotificationTopicARN :: Lens' ModifyReplicationGroup (Maybe Text) Source
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.
The Amazon SNS topic owner must be same as the replication group owner.
mrgCacheSecurityGroupNames :: Lens' ModifyReplicationGroup [Text] Source
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.
This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).
Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".
mrgReplicationGroupId :: Lens' ModifyReplicationGroup Text Source
The identifier of the replication group to modify.
Destructuring the Response
modifyReplicationGroupResponse Source
Creates a value of ModifyReplicationGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifyReplicationGroupResponse Source
See: modifyReplicationGroupResponse
smart constructor.
Response Lenses
mrgrsReplicationGroup :: Lens' ModifyReplicationGroupResponse (Maybe ReplicationGroup) Source
Undocumented member.
mrgrsStatus :: Lens' ModifyReplicationGroupResponse Int Source
The response status code.