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 |
Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration settings by specifying the settings and the new values.
Synopsis
- data UpdateCluster = UpdateCluster' {
- engineVersion :: Maybe Text
- securityGroupIds :: Maybe [Text]
- snsTopicArn :: Maybe Text
- snapshotWindow :: Maybe Text
- maintenanceWindow :: Maybe Text
- shardConfiguration :: Maybe ShardConfigurationRequest
- snapshotRetentionLimit :: Maybe Int
- replicaConfiguration :: Maybe ReplicaConfigurationRequest
- nodeType :: Maybe Text
- snsTopicStatus :: Maybe Text
- description :: Maybe Text
- aCLName :: Maybe Text
- parameterGroupName :: Maybe Text
- clusterName :: Text
- newUpdateCluster :: Text -> UpdateCluster
- updateCluster_engineVersion :: Lens' UpdateCluster (Maybe Text)
- updateCluster_securityGroupIds :: Lens' UpdateCluster (Maybe [Text])
- updateCluster_snsTopicArn :: Lens' UpdateCluster (Maybe Text)
- updateCluster_snapshotWindow :: Lens' UpdateCluster (Maybe Text)
- updateCluster_maintenanceWindow :: Lens' UpdateCluster (Maybe Text)
- updateCluster_shardConfiguration :: Lens' UpdateCluster (Maybe ShardConfigurationRequest)
- updateCluster_snapshotRetentionLimit :: Lens' UpdateCluster (Maybe Int)
- updateCluster_replicaConfiguration :: Lens' UpdateCluster (Maybe ReplicaConfigurationRequest)
- updateCluster_nodeType :: Lens' UpdateCluster (Maybe Text)
- updateCluster_snsTopicStatus :: Lens' UpdateCluster (Maybe Text)
- updateCluster_description :: Lens' UpdateCluster (Maybe Text)
- updateCluster_aCLName :: Lens' UpdateCluster (Maybe Text)
- updateCluster_parameterGroupName :: Lens' UpdateCluster (Maybe Text)
- updateCluster_clusterName :: Lens' UpdateCluster Text
- data UpdateClusterResponse = UpdateClusterResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newUpdateClusterResponse :: Int -> UpdateClusterResponse
- updateClusterResponse_cluster :: Lens' UpdateClusterResponse (Maybe Cluster)
- updateClusterResponse_httpStatus :: Lens' UpdateClusterResponse Int
Creating a Request
data UpdateCluster Source #
See: newUpdateCluster
smart constructor.
UpdateCluster' | |
|
Instances
Create a value of UpdateCluster
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:engineVersion:UpdateCluster'
, updateCluster_engineVersion
- The upgraded version of the engine to be run on the nodes. You can
upgrade to a newer engine version, but you cannot downgrade to an
earlier engine version. If you want to use an earlier engine version,
you must delete the existing cluster and create it anew with the earlier
engine version.
$sel:securityGroupIds:UpdateCluster'
, updateCluster_securityGroupIds
- The SecurityGroupIds to update
$sel:snsTopicArn:UpdateCluster'
, updateCluster_snsTopicArn
- The SNS topic ARN to update
$sel:snapshotWindow:UpdateCluster'
, updateCluster_snapshotWindow
- The daily time range (in UTC) during which MemoryDB begins taking a
daily snapshot of your cluster.
$sel:maintenanceWindow:UpdateCluster'
, updateCluster_maintenanceWindow
- The maintenance window to update
$sel:shardConfiguration:UpdateCluster'
, updateCluster_shardConfiguration
- The number of shards in the cluster
$sel:snapshotRetentionLimit:UpdateCluster'
, updateCluster_snapshotRetentionLimit
- The number of days for which MemoryDB retains automatic cluster
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.
$sel:replicaConfiguration:UpdateCluster'
, updateCluster_replicaConfiguration
- The number of replicas that will reside in each shard
$sel:nodeType:UpdateCluster'
, updateCluster_nodeType
- A valid node type that you want to scale this cluster up or down to.
$sel:snsTopicStatus:UpdateCluster'
, updateCluster_snsTopicStatus
- The status of the Amazon SNS notification topic. Notifications are sent
only if the status is active.
$sel:description:UpdateCluster'
, updateCluster_description
- The description of the cluster to update
$sel:aCLName:UpdateCluster'
, updateCluster_aCLName
- The Access Control List that is associated with the cluster
$sel:parameterGroupName:UpdateCluster'
, updateCluster_parameterGroupName
- The name of the parameter group to update
$sel:clusterName:UpdateCluster'
, updateCluster_clusterName
- The name of the cluster to update
Request Lenses
updateCluster_engineVersion :: Lens' UpdateCluster (Maybe Text) Source #
The upgraded version of the engine to be run on the nodes. You can upgrade to a newer engine version, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.
updateCluster_securityGroupIds :: Lens' UpdateCluster (Maybe [Text]) Source #
The SecurityGroupIds to update
updateCluster_snsTopicArn :: Lens' UpdateCluster (Maybe Text) Source #
The SNS topic ARN to update
updateCluster_snapshotWindow :: Lens' UpdateCluster (Maybe Text) Source #
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your cluster.
updateCluster_maintenanceWindow :: Lens' UpdateCluster (Maybe Text) Source #
The maintenance window to update
updateCluster_shardConfiguration :: Lens' UpdateCluster (Maybe ShardConfigurationRequest) Source #
The number of shards in the cluster
updateCluster_snapshotRetentionLimit :: Lens' UpdateCluster (Maybe Int) Source #
The number of days for which MemoryDB retains automatic cluster 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.
updateCluster_replicaConfiguration :: Lens' UpdateCluster (Maybe ReplicaConfigurationRequest) Source #
The number of replicas that will reside in each shard
updateCluster_nodeType :: Lens' UpdateCluster (Maybe Text) Source #
A valid node type that you want to scale this cluster up or down to.
updateCluster_snsTopicStatus :: Lens' UpdateCluster (Maybe Text) Source #
The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.
updateCluster_description :: Lens' UpdateCluster (Maybe Text) Source #
The description of the cluster to update
updateCluster_aCLName :: Lens' UpdateCluster (Maybe Text) Source #
The Access Control List that is associated with the cluster
updateCluster_parameterGroupName :: Lens' UpdateCluster (Maybe Text) Source #
The name of the parameter group to update
updateCluster_clusterName :: Lens' UpdateCluster Text Source #
The name of the cluster to update
Destructuring the Response
data UpdateClusterResponse Source #
See: newUpdateClusterResponse
smart constructor.
UpdateClusterResponse' | |
|
Instances
newUpdateClusterResponse Source #
Create a value of UpdateClusterResponse
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:cluster:UpdateClusterResponse'
, updateClusterResponse_cluster
- The updated cluster
$sel:httpStatus:UpdateClusterResponse'
, updateClusterResponse_httpStatus
- The response's http status code.
Response Lenses
updateClusterResponse_cluster :: Lens' UpdateClusterResponse (Maybe Cluster) Source #
The updated cluster
updateClusterResponse_httpStatus :: Lens' UpdateClusterResponse Int Source #
The response's http status code.