update_cluster
¶
update_cluster(
cluster_name: String,
*,
config_overrides: Optional[MemoryDBClientConfig] = None,
description: Optional[String] = None,
security_group_ids: Optional[SecurityGroupIdsList] = None,
maintenance_window: Optional[String] = None,
sns_topic_arn: Optional[String] = None,
sns_topic_status: Optional[String] = None,
parameter_group_name: Optional[String] = None,
snapshot_window: Optional[String] = None,
snapshot_retention_limit: Optional[IntegerOptional] = None,
node_type: Optional[String] = None,
engine: Optional[String] = None,
engine_version: Optional[String] = None,
replica_configuration: Optional[ReplicaConfigurationRequest] = None,
shard_configuration: Optional[ShardConfigurationRequest] = None,
acl_name: Optional[ACLName] = None,
ip_discovery: Optional[IpDiscovery] = None,
) -> UpdateClusterResponse
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.
Parameters:
-
cluster_name(String) –The name of the cluster to update.
-
description(Optional[String], default:None) –The description of the cluster to update.
-
security_group_ids(Optional[SecurityGroupIdsList], default:None) –The SecurityGroupIds to update.
-
maintenance_window(Optional[String], default:None) –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
dddare:-
sun -
mon -
tue -
wed -
thu -
fri -
sat
Example:
sun:23:00-mon:01:30 -
-
sns_topic_arn(Optional[String], default:None) –The SNS topic ARN to update.
-
sns_topic_status(Optional[String], default:None) –The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.
-
parameter_group_name(Optional[String], default:None) –The name of the parameter group to update.
-
snapshot_window(Optional[String], default:None) –The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your cluster.
-
snapshot_retention_limit(Optional[IntegerOptional], default:None) –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.
-
node_type(Optional[String], default:None) –A valid node type that you want to scale this cluster up or down to.
-
engine(Optional[String], default:None) –The name of the engine to be used for the cluster.
-
engine_version(Optional[String], default:None) –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.
-
replica_configuration(Optional[ReplicaConfigurationRequest], default:None) –The number of replicas that will reside in each shard.
-
shard_configuration(Optional[ShardConfigurationRequest], default:None) –The number of shards in the cluster.
-
acl_name(Optional[ACLName], default:None) –The Access Control List that is associated with the cluster.
-
ip_discovery(Optional[IpDiscovery], default:None) –The mechanism for discovering IP addresses for the cluster discovery protocol. Valid values are 'ipv4' or 'ipv6'. When set to 'ipv4', cluster discovery functions such as cluster slots, cluster shards, and cluster nodes will return IPv4 addresses for cluster nodes. When set to 'ipv6', the cluster discovery functions return IPv6 addresses for cluster nodes. The value must be compatible with the NetworkType parameter. If not specified, the default is 'ipv4'.
Raises:
-
ACLNotFoundFault–The specified ACL does not exist.
-
ClusterNotFoundFault–The specified cluster does not exist.
-
ClusterQuotaForCustomerExceededFault–The request cannot be processed because it would exceed the maximum number of clusters allowed for this customer.
-
InvalidACLStateFault–The ACL is not in a valid state for the requested operation.
-
InvalidClusterStateFault–The cluster is not in a valid state for the requested operation.
-
InvalidKMSKeyFault–The specified KMS key is not valid or accessible.
-
InvalidNodeStateFault–The node is not in a valid state for the requested operation.
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
InvalidVPCNetworkStateFault–The VPC network is not in a valid state for the requested operation.
-
NodeQuotaForClusterExceededFault–The request cannot be processed because it would exceed the maximum number of nodes allowed for this cluster.
-
NodeQuotaForCustomerExceededFault–The request cannot be processed because it would exceed the maximum number of nodes allowed for this customer.
-
NoOperationFault–The requested operation would result in no changes.
-
ParameterGroupNotFoundFault–The specified parameter group does not exist.
-
ServiceLinkedRoleNotFoundFault–The required service-linked role was not found.
-
ShardsPerClusterQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of shards allowed per cluster.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/memory_db.py
3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 | |