in configurations/RedshiftConfigTestingLambda.py [0:0]
def pause_cluster(client, cluster_identifier, redshift_cluster_index, auto_pause):
if auto_pause and redshift_cluster_index > 0:
try:
client.pause_cluster(ClusterIdentifier=cluster_identifier)
except be.ClientError as e:
if e.response['Error']['Code'] == 'InvalidClusterState':
print(e.response['Error']['Code'])
else:
raise
return "initiated"
else:
return "auto_pause config is false"