MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / main

Function main

python/example_code/redshift/redshift_scenario.py:329–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327
328# snippet-start:[python.example_code.redshift.redshift_scenario.RedshiftScenario.main]
329def main():
330 redshift_client = boto3.client("redshift")
331 redshift_data_client = boto3.client("redshift-data")
332 redshift_wrapper = RedshiftWrapper(redshift_client)
333 redshift_data_wrapper = RedshiftDataWrapper(redshift_data_client)
334 redshift_scenario = RedshiftScenario(redshift_wrapper, redshift_data_wrapper)
335 redshift_scenario.redhift_scenario(
336 f"{os.path.dirname(__file__)}/../../../resources/sample_files/movies.json"
337 )
338
339
340# snippet-end:[python.example_code.redshift.redshift_scenario.RedshiftScenario.main]

Callers 1

Calls 4

redhift_scenarioMethod · 0.95
RedshiftWrapperClass · 0.90
RedshiftDataWrapperClass · 0.90
RedshiftScenarioClass · 0.70

Tested by

no test coverage detected