aws / amazon-finspace-examples

This repo contains sample code and sample notebooks to illustrate how to work with Amazon FinSpace
MIT No Attribution
20 stars 25 forks source link

Add .aws.stop_current_kx_cluster_creation #18

Closed peterlarson closed 11 months ago

peterlarson commented 11 months ago

Adds .aws.stop_current_kx_cluster_creation for compatibility with the library within FinSpace.

The library within FinSpace now supports an API called .aws.stop_current_kx_cluster_creation. This API only has an effect if called from the initialization script of a cluster, so the version added here takes no action, but logs a statement about what would have happened if it was called from on a cluster. (https://docs.aws.amazon.com/finspace/latest/userguide/interacting-with-kdb-loading-code.html)

The new API behaves the following way:

q).aws.stop_current_kx_cluster_creation[""]
"Cluster would be put in the CREATE_FAILED state if called from initialization script."

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.