def update()

in functions/source/kendra_custom_resource/kendra_custom_resource.py [0:0]


def update(*_):
    """
    Helper function for resource updates.
    Updates are not supported for Kendra custom resource.
    :param _: Unused
    :return: None
    """
    cft_response = cloudformation_client.describe_stacks(
        StackName=helper.StackId
    )
    stack_status = cft_response['Stacks'][0]['StackStatus']
    if stack_status == 'UPDATE_IN_PROGRESS':
        raise Exception("Updates are not supported for Kendra Custom Resource")
    return helper.PhysicalResourceId  # Return if update rollback is in progress