in configurations/RedshiftConfigTestingLambda.py [0:0]
def update_wlm_config(client, cluster_identifier, wlm_config_s3_path):
if wlm_config_s3_path is None or wlm_config_s3_path == "N/A":
return "N/A"
else:
wlm_config = get_json_config_from_s3(wlm_config_s3_path)
print("Changing {} parameter group wlm : {}".format(cluster_identifier, wlm_config))
client.modify_cluster_parameter_group(
ParameterGroupName=cluster_identifier,
Parameters=[
{
'ParameterName': 'wlm_json_configuration',
'ParameterValue': json.dumps(wlm_config),
'ApplyType': 'dynamic',
'IsModifiable': True
},
])
return "initiated"