listAllowedNodeTypeModifications method
Lists all available node types that you can scale your Redis cluster's or replication group's current node type.
When you use the ModifyCacheCluster
or
ModifyReplicationGroup
operations to scale your cluster or
replication group, the value of the CacheNodeType
parameter
must be one of the node types returned by this operation.
May throw CacheClusterNotFoundFault. May throw ReplicationGroupNotFoundFault. May throw InvalidParameterCombinationException. May throw InvalidParameterValueException.
Parameter cacheClusterId
:
The name of the cluster you want to scale up to a larger node instanced
type. ElastiCache uses the cluster id to identify the current node type of
this cluster and from that to create a list of node types you can scale up
to.
Parameter replicationGroupId
:
The name of the replication group want to scale up to a larger node type.
ElastiCache uses the replication group id to identify the current node
type being used by this replication group, and from that to create a list
of node types you can scale up to.
Implementation
Future<AllowedNodeTypeModificationsMessage> listAllowedNodeTypeModifications({
String? cacheClusterId,
String? replicationGroupId,
}) async {
final $request = <String, dynamic>{};
cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg);
replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg);
final $result = await _protocol.send(
$request,
action: 'ListAllowedNodeTypeModifications',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ListAllowedNodeTypeModificationsMessage'],
shapes: shapes,
resultWrapper: 'ListAllowedNodeTypeModificationsResult',
);
return AllowedNodeTypeModificationsMessage.fromXml($result);
}