src/modules/s3/deploy-utils/create_s3_document_connector.py [35:51]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def list_component_type_ids(iottwinmaker, workspace_id):
    componentTypeIds = []
    response = iottwinmaker.list_component_types(workspaceId = workspace_id)
    nextToken = response.get('nextToken')
    for componentType in response['componentTypeSummaries']:
        componentTypeIds.append(componentType['componentTypeId'])

    while nextToken is not None:
        response = iottwinmaker.list_component_types(workspaceId = workspace_id, nextToken = nextToken)
        nextToken = response.get('nextToken')
        for componentType in response['componentTypeSummaries']:
            componentTypeIds.append(componentType['componentTypeId'])

    return componentTypeIds


def main():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/modules/snowflake/deploy-utils/create_snowflake_connector.py [43:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def list_component_type_ids(iottwinmaker, workspace_id):
    componentTypeIds = []
    response = iottwinmaker.list_component_types(workspaceId = workspace_id)
    nextToken = response.get('nextToken')
    for componentType in response['componentTypeSummaries']:
        componentTypeIds.append(componentType['componentTypeId'])

    while nextToken is not None:
        response = iottwinmaker.list_component_types(workspaceId = workspace_id, nextToken = nextToken)
        nextToken = response.get('nextToken')
        for componentType in response['componentTypeSummaries']:
            componentTypeIds.append(componentType['componentTypeId'])

    return componentTypeIds


def main():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



