updateCluster method
Future<UpdateClusterResponse>
updateCluster({
- required String clusterArn,
- required NetworkType networkType,
Updates an existing cluster. You can only update the network type of a cluster.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter clusterArn :
The Amazon Resource Name (ARN) of the cluster.
Parameter networkType :
The network type of the cluster. NetworkType can be one of the following:
IPV4, DUALSTACK.
Implementation
Future<UpdateClusterResponse> updateCluster({
required String clusterArn,
required NetworkType networkType,
}) async {
final $payload = <String, dynamic>{
'ClusterArn': clusterArn,
'NetworkType': networkType.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/cluster',
exceptionFnMap: _exceptionFns,
);
return UpdateClusterResponse.fromJson(response);
}