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
3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 | |