def create_api_integration()

in customer-stack/create-resources.py [0:0]


def create_api_integration(snowflake_cursor, api_integration_name, api_gateway_role_arn, api_gateway_url):
    logger.info("Creating API Integration [api_integration_name=%s, api_gateway_role_arn=%s, api_gateway_url=%s]",
                api_integration_name, api_gateway_role_arn, api_gateway_url)

    api_integration_str = ("create or replace api integration \"%s\" \
    api_provider = aws_api_gateway \
    api_aws_role_arn = '%s' \
    api_allowed_prefixes = ('%s') \
    enabled = true \
    ") % (api_integration_name, api_gateway_role_arn, api_gateway_url)

    snowflake_cursor.execute(api_integration_str)