amazonka-elasticache-1.6.0: Amazon ElastiCache SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElastiCache.ModifyReplicationGroup

Contents

Description

Modifies the settings for a replication group.

Important: Due to current limitations on Redis (cluster mode disabled), this operation or parameter is not supported on Redis (cluster mode enabled) replication groups.

Synopsis

Creating a Request

modifyReplicationGroup Source #

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 - Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure. Valid values: true | false Amazon ElastiCache for Redis does not support Multi-AZ with automatic failover on: * Redis versions earlier than 2.8.6. * Redis (cluster mode disabled): T1 and T2 cache node types. * Redis (cluster mode enabled): T1 node types.
  • mrgEngineVersion - The upgraded version of the cache engine to be run on the clusters in the replication group. Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version ), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing replication group and create it anew with the earlier engine version.
  • mrgCacheNodeType - A valid cache node type that you want to scale this replication group to.
  • mrgSnapshottingClusterId - The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Redis (cluster mode enabled) replication groups.
  • mrgSecurityGroupIds - Specifies the VPC Security Groups associated with the clusters in the replication group. This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).
  • mrgAutoMinorVersionUpgrade - This parameter is currently disabled.
  • mrgCacheParameterGroupName - 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.
  • mrgReplicationGroupDescription - A description for the replication group. Maximum length is 255 characters.
  • mrgSnapshotWindow - The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by SnapshottingClusterId . Example: 05:00-09:00 If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
  • mrgPrimaryClusterId - For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.
  • mrgPreferredMaintenanceWindow - Specifies the weekly time range during which maintenance on the 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:23:00-mon:01:30
  • mrgNodeGroupId - The name of the Node Group (called shard in the console).
  • mrgSnapshotRetentionLimit - The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
  • mrgNotificationTopicStatus - 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 - 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 , 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 - The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.
  • mrgCacheSecurityGroupNames - 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 clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC). Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default .
  • mrgReplicationGroupId - The identifier of the replication group to modify.

data ModifyReplicationGroup Source #

Represents the input of a ModifyReplicationGroups operation.

See: modifyReplicationGroup smart constructor.

Instances

Eq ModifyReplicationGroup Source # 
Data ModifyReplicationGroup Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyReplicationGroup -> c ModifyReplicationGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyReplicationGroup #

toConstr :: ModifyReplicationGroup -> Constr #

dataTypeOf :: ModifyReplicationGroup -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyReplicationGroup) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyReplicationGroup) #

gmapT :: (forall b. Data b => b -> b) -> ModifyReplicationGroup -> ModifyReplicationGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyReplicationGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyReplicationGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyReplicationGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyReplicationGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyReplicationGroup -> m ModifyReplicationGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyReplicationGroup -> m ModifyReplicationGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyReplicationGroup -> m ModifyReplicationGroup #

Read ModifyReplicationGroup Source # 
Show ModifyReplicationGroup Source # 
Generic ModifyReplicationGroup Source # 
Hashable ModifyReplicationGroup Source # 
NFData ModifyReplicationGroup Source # 

Methods

rnf :: ModifyReplicationGroup -> () #

AWSRequest ModifyReplicationGroup Source # 
ToHeaders ModifyReplicationGroup Source # 
ToPath ModifyReplicationGroup Source # 
ToQuery ModifyReplicationGroup Source # 
type Rep ModifyReplicationGroup Source # 
type Rep ModifyReplicationGroup = D1 * (MetaData "ModifyReplicationGroup" "Network.AWS.ElastiCache.ModifyReplicationGroup" "amazonka-elasticache-1.6.0-4uuZWL7zhxxEXFvtkJRku9" False) (C1 * (MetaCons "ModifyReplicationGroup'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgAutomaticFailoverEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_mrgEngineVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgCacheNodeType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_mrgSnapshottingClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgSecurityGroupIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_mrgAutoMinorVersionUpgrade") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgCacheParameterGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgReplicationGroupDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_mrgSnapshotWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgPrimaryClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_mrgPreferredMaintenanceWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgNodeGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_mrgSnapshotRetentionLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgNotificationTopicStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_mrgApplyImmediately") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgNotificationTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgCacheSecurityGroupNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_mrgReplicationGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))))
type Rs ModifyReplicationGroup Source # 

Request Lenses

mrgAutomaticFailoverEnabled :: Lens' ModifyReplicationGroup (Maybe Bool) Source #

Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure. Valid values: true | false Amazon ElastiCache for Redis does not support Multi-AZ with automatic failover on: * Redis versions earlier than 2.8.6. * Redis (cluster mode disabled): T1 and T2 cache node types. * Redis (cluster mode enabled): T1 node types.

mrgEngineVersion :: Lens' ModifyReplicationGroup (Maybe Text) Source #

The upgraded version of the cache engine to be run on the clusters in the replication group. Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version ), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing replication group and create it anew with the earlier engine version.

mrgCacheNodeType :: Lens' ModifyReplicationGroup (Maybe Text) Source #

A valid cache node type that you want to scale this replication group to.

mrgSnapshottingClusterId :: Lens' ModifyReplicationGroup (Maybe Text) Source #

The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Redis (cluster mode enabled) replication groups.

mrgSecurityGroupIds :: Lens' ModifyReplicationGroup [Text] Source #

Specifies the VPC Security Groups associated with the clusters in the replication group. This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).

mrgAutoMinorVersionUpgrade :: Lens' ModifyReplicationGroup (Maybe Bool) Source #

This parameter is currently disabled.

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.

mrgReplicationGroupDescription :: Lens' ModifyReplicationGroup (Maybe Text) Source #

A description for the replication group. Maximum length is 255 characters.

mrgSnapshotWindow :: Lens' ModifyReplicationGroup (Maybe Text) Source #

The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by SnapshottingClusterId . Example: 05:00-09:00 If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

mrgPrimaryClusterId :: Lens' ModifyReplicationGroup (Maybe Text) Source #

For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.

mrgPreferredMaintenanceWindow :: Lens' ModifyReplicationGroup (Maybe Text) Source #

Specifies the weekly time range during which maintenance on the 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:23:00-mon:01:30

mrgNodeGroupId :: Lens' ModifyReplicationGroup (Maybe Text) Source #

The name of the Node Group (called shard in the console).

mrgSnapshotRetentionLimit :: Lens' ModifyReplicationGroup (Maybe Int) Source #

The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is 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 , 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 are sent.

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 clusters running outside of an Amazon Virtual Private Cloud (Amazon 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.

Instances

Eq ModifyReplicationGroupResponse Source # 
Data ModifyReplicationGroupResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyReplicationGroupResponse -> c ModifyReplicationGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyReplicationGroupResponse #

toConstr :: ModifyReplicationGroupResponse -> Constr #

dataTypeOf :: ModifyReplicationGroupResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyReplicationGroupResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyReplicationGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> ModifyReplicationGroupResponse -> ModifyReplicationGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyReplicationGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyReplicationGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyReplicationGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyReplicationGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyReplicationGroupResponse -> m ModifyReplicationGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyReplicationGroupResponse -> m ModifyReplicationGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyReplicationGroupResponse -> m ModifyReplicationGroupResponse #

Read ModifyReplicationGroupResponse Source # 
Show ModifyReplicationGroupResponse Source # 
Generic ModifyReplicationGroupResponse Source # 
NFData ModifyReplicationGroupResponse Source # 
type Rep ModifyReplicationGroupResponse Source # 
type Rep ModifyReplicationGroupResponse = D1 * (MetaData "ModifyReplicationGroupResponse" "Network.AWS.ElastiCache.ModifyReplicationGroup" "amazonka-elasticache-1.6.0-4uuZWL7zhxxEXFvtkJRku9" False) (C1 * (MetaCons "ModifyReplicationGroupResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mrgrsReplicationGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ReplicationGroup))) (S1 * (MetaSel (Just Symbol "_mrgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses